Advertisement:

Author Topic: Anti-Spam Links  (Read 86449 times)

Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 65
    • https://web.facebook.com/gotryus/ on Facebook
    • Creative Ways to make money fast
Re: Anti-Spam Links
« Reply #200 on: November 14, 2018, 01:25:05 AM »
You can manually change it to this:

Code: [Select]
// Start of Anti-Spam-Links mod

$posts = $memberContext[$message['id_member']]['is_guest'] ? 0 : $memberContext[$message['id_member']]['posts'];

// End of Anti-Spam-Links mod

// Run BBC interpreter on the message.
$message['body'] = '<!-- google_ad_section_start -->' . parse_bbc(parse_acronyms($message['body']), $message['smileys_enabled'], $message['id_msg'], NULL, (int) $message['id_member'], $posts) . '<!-- google_ad_section_end -->';

But in the future, both this mod and the ads mod you have will have errors in the un-installation process, so take backups and remember the manual change you're making here.

Firstly thank you so much for your reply.
I changed the code as you said. but the problem is that this package is installed but not working I put (Post count under which members cannot post external links=20) but every member can post links even under 20 post or above 20 posts.
Creative ways to make money fast
https://gotryus.com/

Offline SychO

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,997
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Anti-Spam Links
« Reply #201 on: November 14, 2018, 11:47:21 AM »
The mod probably didn't setup correctly then, are you sure there were no other errors during the installation process ? also are there any errors in your forum's error log ?
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze


Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 65
    • https://web.facebook.com/gotryus/ on Facebook
    • Creative Ways to make money fast
Re: Anti-Spam Links
« Reply #202 on: November 21, 2018, 12:34:32 AM »
The mod probably didn't setup correctly then, are you sure there were no other errors during the installation process ? also are there any errors in your forum's error log ?

I see no error in my forum's log. During the installation process, it shows the error. I continued the installation and changed the code manually that was not replacing with another code
Creative ways to make money fast
https://gotryus.com/

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,641
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @jaoler on Twitter
Re: Anti-Spam Links
« Reply #203 on: July 27, 2019, 02:52:15 PM »
Code: [Select]
index.php?topic=8854.msg55329
8: Undefined index: anti_spam_links_guests
File: /var/www/vhosts/*****/Sources/Subs.php
Line: 2537
Whats that?
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline SychO

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,997
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Anti-Spam Links
« Reply #204 on: July 27, 2019, 02:54:00 PM »
Whats that?

I believe the mod needs updating.
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze


Offline wylekk

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
    • WYLEK.RU
Re: Anti-Spam Links
« Reply #205 on: January 02, 2020, 07:35:44 AM »
Will there be an update for SMF 2.1 RC2?

Есть ли подобные моды?

Offline SychO

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,997
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Anti-Spam Links
« Reply #206 on: January 02, 2020, 07:56:19 AM »
Yes there will be
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze


Offline wylekk

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
    • WYLEK.RU
Re: Anti-Spam Links
« Reply #207 on: January 08, 2020, 05:55:46 AM »
The mod works on SMF 2.1 RC2 :)
Not compatible with SMF-Redirector mod :-\

Offline shadav

  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,350
  • Gender: Female
    • shadav on Facebook
    • leashadav on GitHub
    • Ask The Muslims: A Place To Ask Honest Questions and Receive Respectful Answers
Re: Anti-Spam Links
« Reply #208 on: June 06, 2020, 05:26:44 PM »
 :laugh: um.....any way to ignore for the admns

starting a new project and installed this
I currently only have 1 post, and have the mod set that under 5 posts user can't make external links

bwahahahaha
Quote
Sorry, you are not allowed to post external links.

ermmmmmm.....any way to set permissions for this to allow admins and/or special groups to bypass it?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Anti-Spam Links
« Reply #209 on: June 06, 2020, 05:30:31 PM »
Nope. Just make more posts.
No good deed goes unpunished
All helpful urges should be circumvented

Offline shadav

  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,350
  • Gender: Female
    • shadav on Facebook
    • leashadav on GitHub
    • Ask The Muslims: A Place To Ask Honest Questions and Receive Respectful Answers
Re: Anti-Spam Links
« Reply #210 on: June 06, 2020, 05:51:41 PM »
well that kinda sucks....
but then I guess in a live instance this really wouldn't be an issue hardly at all....
it's a nice mod nontheless, just kind of funny that the admin can't post links  :laugh: :laugh:

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Anti-Spam Links
« Reply #211 on: June 06, 2020, 05:53:43 PM »
You could even just change your post count...
No good deed goes unpunished
All helpful urges should be circumvented


Offline kilk

  • Semi-Newbie
  • *
  • Posts: 25
    • Elddem The MMORPG
Re: Anti-Spam Links
« Reply #213 on: June 09, 2020, 04:03:23 PM »
Love this mod! Good work OP!
Elddem The MMORPG - https://www.elddem.com | Denarius (D) Cryptocurrrency - https://www.denarius.io | BlockForums - Cryptocurrency Community Forums - https://www.blockforums.org

Offline shadav

  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,350
  • Gender: Female
    • shadav on Facebook
    • leashadav on GitHub
    • Ask The Muslims: A Place To Ask Honest Questions and Receive Respectful Answers
Re: Anti-Spam Links
« Reply #214 on: July 19, 2020, 03:29:00 PM »
there's a typo in the install

it's looking for file
Code: [Select]
$languagedir/Modifications-utf8.english.phpinstead of
Code: [Select]
$languagedir/Modifications.english-utf8.php
I'm assuming at some point in time these files were renamed and it got overlooked in the installer

Offline SychO

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,997
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Anti-Spam Links
« Reply #215 on: July 19, 2020, 03:47:25 PM »
Thank you for the report, it should be fixed soon.
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze


Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,503
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Anti-Spam Links
« Reply #216 on: July 19, 2020, 04:28:51 PM »
Version 1.0.2
!Fixes install on modifications.english-utf8.php
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 Kolya

  • Full Member
  • ***
  • Posts: 483
  • systemshock.org
Re: Anti-Spam Links
« Reply #217 on: August 30, 2020, 06:53:20 PM »
This mod may prevent posting plain links. But it does nothing about linked text. This will always go through.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Anti-Spam Links
« Reply #218 on: August 30, 2020, 07:07:54 PM »
Links back to the site it's hosted on will *always* work. That's explicitly covered.

Also, the regex handling at the end looks like it matches all links, not just bare URLs as links.
No good deed goes unpunished
All helpful urges should be circumvented

Offline Kolya

  • Full Member
  • ***
  • Posts: 483
  • systemshock.org
Re: Anti-Spam Links
« Reply #219 on: August 31, 2020, 04:47:27 AM »
You're right, that was my mistake testing with a local URL. Thanks for the correction.
And thanks for this useful mod.