-

Stopping URL's does not work

For the Anti-Spam ACP 2.0.x Mod Only
Forum rules
To receive support you must become a donor unless otherwise specified in the release topic.

Please read these topics for more information:
Web Services/Support/Private Mod Access - Support status beginning Oct 1

Stopping URL's does not work

Postby Keefy » Sat Jul 18, 2009 12:27 am

Thanks for a great mod ive had it on my site for a while now and all seems to work ok accept a while back we started getting some new users (think they are human) joining now and again and posting a link.. (i will put it in the code brackets so it is not clickable)

Code: Select all
Google are owned by Mafia: http://mafiawww.com


In the ACP ive got the links set to - Set According to Post Count 10

ive checked and doubled checked the functions_post.php and all the code is added there, the only other kind of mod i have is the one that asks if you are human - yes or no.

Oh and my version of Anti-Spam ACP is up to date.

Any ideas ????

Thanks
Keefy
Member
Member
 
Posts: 3
Joined: Sat Jul 18, 2009 12:20 am
Blog: View Blog (0)

Re: Stopping URL's does not work

Postby EXreaction » Sat Jul 18, 2009 10:46 am

So you put that domain in the spam words list and set the spam words post count to 10?

Did you check the other spam words settings? By default the system is disabled in the ACP.
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: Stopping URL's does not work

Postby Keefy » Sun Jul 19, 2009 1:35 am

Ooops :P EXreaction

Ive not got a spam words list or spam words settings where is this ???

This is what i have in my ACP

Anti Spam
General Settings
Inactive Userlist
Profile Options
Spam Log

In the General settings i have the Posting Settings for URL/Links in posts: Set According to Post Count - set to 10
Keefy
Member
Member
 
Posts: 3
Joined: Sat Jul 18, 2009 12:20 am
Blog: View Blog (0)

Re: Stopping URL's does not work

Postby EXreaction » Sun Jul 19, 2009 10:17 am

Oh, this is for phpBB2. I don't see why you'd have that issue, but I've not done anything with phpBB2 for a very long time and do not remember how that mod was setup anymore.
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: Stopping URL's does not work

Postby Keefy » Sun Jul 19, 2009 4:55 pm

I have this in my functions_post.php if it helps. i really need to get this to work.

Code: Select all
// Start Anti-Spam ACP MOD
   if ( ($userdata['user_level'] != ADMIN) && ($userdata['user_level'] != MOD) )
   {
      if ( ($board_config['as_acp_posting_url'] == 'off') || ( ($board_config['as_acp_posting_url'] == 'post count') && ( ($userdata['user_posts'] < $board_config['as_acp_posting_url_post']) || ($userdata['user_id'] == ANONYMOUS) ) ) || ( ($board_config['as_acp_posting_url'] == 'guest') && ($userdata['user_id'] == ANONYMOUS) ) )
      {
         if ( (preg_match("%((http://|https://|ftp://|file://|www\.)[^\s]+?)(.*)%isU", $message)) || (preg_match("%([^\s]+?(\.com|\.org|\.net|\.biz|\.info|\.name|\.ru|\.ws|\.de))%", $message)) )
         {
            if ($board_config['as_acp_posting_url'] == 'off')
            {
               $error_msg .= $lang['Url_Not_Allowed'];
            }
            else if( ($board_config['as_acp_posting_url'] == 'guest') || ($userdata['user_id'] == ANONYMOUS) )
            {
               $error_msg .= $lang['Url_Not_Allowed_Guests'];
            }
            else
            {
               $error_msg .= sprintf($lang['Url_Not_Allowed_Count'], $board_config['as_acp_posting_url_post']);
            }

            if ($board_config['as_acp_log_message_posting'])
            {
               log_spam($message, (empty($username)) ? $userdata['username'] : $username, $userdata['user_id'], $userdata['user_email'], $lang['During_Posting'], sprintf($lang['Not_Test_Email_Header'], $lang['Posting']));
            }
         }
      }
   }
// End Anti-Spam ACP MOD


Not done any PHP programming but i looked through the code, should 1 of them off statements be on ?
Keefy
Member
Member
 
Posts: 3
Joined: Sat Jul 18, 2009 12:20 am
Blog: View Blog (0)

Re: Stopping URL's does not work

Postby EXreaction » Sun Jul 19, 2009 5:16 pm

Sorry, but I really don't give support for phpBB2 anymore, last I used that it was working and I am not sure why it would not work for you.
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)


Return to Anti-Spam ACP



Who is online

Users browsing this forum: No registered users and 0 guests

cron