FAQ FAQ   Search Search   Memberlist Memberlist   Usergroups Usergroups   Register Register 
PhpBB- & WordPress- antispam.com
Home of the Antispam for all fields mod ! 
  Profile Profile   Log in to check your private messages Log in to check your private messages  Log inLog in 

 PhpBB- & WordPress- antispam.com Forum Index » [PhpBB2] Submit a bug » Max websites per post and spamcheck level
  The time now is Wed May 23, 2018 7:46 pm 

 Post new topic   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic  
Author Message
PostPosted: Tue Jan 08, 2008 9:05 am    Post subject: Max websites per post and spamcheck level  Reply with quote  

Quimbly



Joined: 08 Jan 2008
Posts: 6

Antispam: 1.2.8
PhpBB: 2.0.22

In the admin panel, on the Antispam 'management' page, in the 'Optional Settings' section, the 'Max websites per post' value and the 'Spamcheck level' are somehow related.

If I change the max websites to 1, it sets the spamcheck level to 1. And it doesn't appear to save the value if I set the spamcheck level higher than 1.

???

Also, I would like to be able to set the max websites to 0. So, that new users, before they bypass the antispam filters, cannot include any links in a message they post. However, settings this to 0 causes all posts to get rejected, regardless of any links being included or not.

TOP View user's profileSend private message  BOTTOM
PostPosted: Tue Jan 08, 2008 10:48 am    Post subject:  Reply with quote  

ramon fincken
Site Admin


Joined: 11 Dec 2006
Posts: 269
Location: A'dam/Diemen, The Netherlands

Many thanks for reporting these 2 bugs !



in order to reject all links a count of 1 is enough right now

here's the method:
Code:
   if ($board_config[mod_spamcheck_maxsites] == 1) {
      // 1.2.7 Check max websites
      // Partially re-coded from : http://www.phpbb.com/community/viewtopic.php?f=16&t=360188&start=30&st=0&sk=t&sd=a
      preg_match_all("/http:\/\/|ftp:\/\/|www|[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/si", $txt, $out, PREG_SET_ORDER);
      if (count($out) > $board_config[mod_spamcheck_maxsitescount]) {
         message_die(GENERAL_MESSAGE, sprintf('Antispam Mod installed: Too many websites or urls entered'));
      }
   }

_________________
Phpbbantispam founder, available for freelance WordPress coding.

PhpBB2 mod: http://www.phpbbantispam.com/viewtopic.php?t=1
WordPress plugin: http://wordpress.org/extend/plugins/antispam-for-all-fields/
Project files & mailinglist: https://sourceforge.net/projects/phpbbantispam/

TOP View user's profileSend private messageVisit poster's website  BOTTOM
PostPosted: Wed Jan 09, 2008 10:06 pm    Post subject:  Reply with quote  

Quimbly



Joined: 08 Jan 2008
Posts: 6

This looks to me that it will only reject posts with more than one URL:
Code:
if (count($out) > $board_config[mod_spamcheck_maxsitescount]) {
         message_die(GENERAL_MESSAGE, sprintf('Antispam Mod installed: Too many websites or urls entered'));


Regardless, logically, you should have to specify 0 as the maximum number of allowed URLS. A maximum number of 1 means that they should be able to post 1 URL and be ok.

TOP View user's profileSend private message  BOTTOM
PostPosted: Sat May 24, 2008 6:09 pm    Post subject:  Reply with quote  

ramon fincken
Site Admin


Joined: 11 Dec 2006
Posts: 269
Location: A'dam/Diemen, The Netherlands

This one is fixed
Quote:
If I change the max websites to 1, it sets the spamcheck level to 1. And it doesn't appear to save the value if I set the spamcheck level higher than 1.


>>
http://phpbbantispam.com/viewtopic.php?p=466#466


could you try to replace te code line with
Code:
if (count($out) > 0 && (count($out) > $board_config['mod_spamcheck_maxsitescount'])) {


and see what happens if you set it to zero and post just some words?
_________________
Phpbbantispam founder, available for freelance WordPress coding.

PhpBB2 mod: http://www.phpbbantispam.com/viewtopic.php?t=1
WordPress plugin: http://wordpress.org/extend/plugins/antispam-for-all-fields/
Project files & mailinglist: https://sourceforge.net/projects/phpbbantispam/

TOP View user's profileSend private messageVisit poster's website  BOTTOM
 Post new topic   This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour

Display posts from previous:   
 PhpBB- & WordPress- antispam.com Forum Index » [PhpBB2] Submit a bug » Max websites per post and spamcheck level
 
 Page 1 of 1
 
 
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Jump to:  


     Powered by phpBB © 2001, 2005 phpBB Group | Template Neon | Snelle Managed WordPress webhosting