News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Anti-Spam Links

Started by SMF Customization Team, February 04, 2010, 05:41:18 PM

Previous topic - Next topic

nadeem34

Quote from: SychO on November 12, 2018, 11:13:59 AM
You can manually change it to this:

// 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/

SychO

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

nadeem34

Quote from: SychO 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 ?

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/

Owdy

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

SychO

Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

wylekk

Will there be an update for SMF 2.1 RC2?

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

SychO

Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

wylekk

The mod works on SMF 2.1 RC2 :)
Not compatible with SMF-Redirector mod :-\

shadav

 :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
QuoteSorry, 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?

Arantor

Nope. Just make more posts.

shadav

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:

Arantor

You could even just change your post count...

shadav


kilk

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

shadav

there's a typo in the install

it's looking for file
$languagedir/Modifications-utf8.english.php
instead of
$languagedir/Modifications.english-utf8.php

I'm assuming at some point in time these files were renamed and it got overlooked in the installer

SychO

Thank you for the report, it should be fixed soon.
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

vbgamer45

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

Kolya

This mod may prevent posting plain links. But it does nothing about linked text. This will always go through.

Arantor

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.

Kolya

You're right, that was my mistake testing with a local URL. Thanks for the correction.
And thanks for this useful mod.

Advertisement: