Advertisement:

Author Topic: Anti-Spam Links - Updated for SMF 2.0 RC5  (Read 69725 times)

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,089
  • Gender: Male
    • Kindred-999 on GitHub
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #180 on: May 10, 2016, 09:36:14 PM »
Save it with a value

Then resave with 0
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline MobileCS

  • Jr. Member
  • **
  • Posts: 153
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #181 on: May 11, 2016, 12:18:51 PM »
Thank you, that did the trick.

Offline macrob

  • Semi-Newbie
  • *
  • Posts: 31
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #182 on: May 19, 2016, 06:24:51 PM »
Great mod :)
Unfortunately i have a small  problem with it.  My error log i full of:

8: Undefined variable: poster_id
File: /forum/Sources/Subs.php
Line: 2454

Which is:
Code: [Select]
: elseif ((($poster_id === 0 && $modSettings['anti_spam_links_guests'] == 3) || (!empty($poster_id) && !empty($modSettings['anti_spam_links_nofollowlinks']) && $posts != '' && $posts < $modSettings['anti_spam_links_nofollowlinks'])) && strpos($message, '<a href') !== false)   
and:

8: Undefined variable: poster_id
File: /forum/Sources/Subs.php
Line: 2450


Code: [Select]
==>2450: if ((($poster_id === 0 && $modSettings['anti_spam_links_guests'] == 2) || (!empty($poster_id) && !empty($modSettings['anti_spam_links_newbielinks']) && $posts != '' && $posts < $modSettings['anti_spam_links_newbielinks'])) && strpos($message, '<a href') !== false)
Thanks for your help.

Offline BSD2000

  • Semi-Newbie
  • *
  • Posts: 13
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #183 on: July 13, 2017, 08:54:57 AM »
I realize this is an old post and so far, this mod is working great on my site, but I was wondering - could this be easily modified to prevent spammers from using URL's in the subject of a post?

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,992
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #184 on: July 13, 2017, 09:13:00 AM »
What would you like to happen? If a url is entered in the subject line?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline BSD2000

  • Semi-Newbie
  • *
  • Posts: 13
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #185 on: July 13, 2017, 09:53:33 AM »
Maybe an error message when they click post stating that URL's in the subject are not allowed, much like the error message that appears if you click post with an empty subject and/or message body.

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,992
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #186 on: July 13, 2017, 09:59:44 AM »
I can probably do a code that gives an error message if http:// or https:// is found in the subject line?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline BSD2000

  • Semi-Newbie
  • *
  • Posts: 13
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #187 on: July 13, 2017, 10:03:38 AM »
Yep, that's it - maybe use an expression match to find the http:// or https:// anywhere in the subject text, just in case they try to pad the beginning of the subject with spaces. The Anti-Spam Links mod works great at discouraging spammers posting links in the body of the message, but they get around that by putting the URL as the subject.

I think if they see no way of posting their URL, they will most likely give up and move on to an easier website.

If there isn't a mod already for something like this, I think it would make a nice addition to the arsenal of spam prevention mods, or maybe an added feature to the Anti-Spam Links mod.   :)

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,992
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #188 on: July 13, 2017, 10:09:16 AM »
I replied to your other post.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 50
    • https://web.facebook.com/Discusscryptocurrency/ on Facebook
    • Best cryptocurrency Forum
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #189 on: April 15, 2018, 01:16:35 PM »
Anybody knows how can I change the default message?

"Sorry you are not allowed to post external links"
Best Cryptocurrency Forum, Ethereum, Bitcoin Community https://discusscryptocurrency.com/

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,089
  • Gender: Male
    • Kindred-999 on GitHub
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #190 on: April 15, 2018, 01:26:26 PM »
Modifications.english.ohp
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 50
    • https://web.facebook.com/Discusscryptocurrency/ on Facebook
    • Best cryptocurrency Forum
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #191 on: May 18, 2018, 08:02:24 AM »
I am using Anti-spam links mod and i have set it up to a member can post link after making 20 posts.

Now i want to display a message to newbie member when he/she try to post links like this
" You must make 20 post to insert an external link"

Although the default message is else.

How can i change the default message to my own above text
Best Cryptocurrency Forum, Ethereum, Bitcoin Community https://discusscryptocurrency.com/

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,723
  • Gender: Male
    • i30 Owners Club
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #192 on: May 18, 2018, 08:18:56 AM »
Have a look in your theme folder for Modifications.english.php - the text strings should be in that file

Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 50
    • https://web.facebook.com/Discusscryptocurrency/ on Facebook
    • Best cryptocurrency Forum
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #193 on: May 19, 2018, 01:43:46 PM »
Quote
Have a look in your theme folder for Modifications.english.php - the text strings should be in that file

i can't locate that file in my theme folder. I did try from packages==>anti spam links==>modification.xml here i changed the default message but it's not working even if changed the same text appears when a user post external link
Best Cryptocurrency Forum, Ethereum, Bitcoin Community https://discusscryptocurrency.com/

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,723
  • Gender: Male
    • i30 Owners Club
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #194 on: May 19, 2018, 01:49:27 PM »
It might be Modifications.your_language.php, but there will be a Modifications.xxx.php file in your theme's folder.

Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 50
    • https://web.facebook.com/Discusscryptocurrency/ on Facebook
    • Best cryptocurrency Forum
Re: Anti-Spam Links - Updated for SMF 2.0 RC5
« Reply #195 on: May 19, 2018, 02:14:24 PM »
Thanks i found that file in themes==>languages==modification.english.php

Best Cryptocurrency Forum, Ethereum, Bitcoin Community https://discusscryptocurrency.com/