News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

Anti-Spam Links

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

Previous topic - Next topic

IchBin™

Make sure your post.php has all the necessary edits. In particular this is the spot where that variable is created.

SELECT IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time, m.body, m.smileys_enabled, m.id_msg, IFNULL(mem.posts, 0) AS postcount, IFNULL(m.id_member, 0) AS poster_id
IchBin™        TinyPortal

impreza

#121
great mod but I have a problem with links from the code - if it does not work well because it's a text link and it changes the link points to a code
Portal Totemat - artykuły i filmy - treści w postaci artykułów i filmów.

Texan78

Quote from: ChalkCat on September 18, 2012, 03:55:37 PM
Is there any way to exclude certain members, so for example, newbies who are known to us can post links without problem?

I am needing the same thing.

Need a way to exclude certain groups.

I have the downloads mod and I have developers trying to upload scripts and they can't because this mod is blocking them. They don't post in the forums, they just upload scripts so their post count can't be raised first. They have to be added to a certain group manually in order to upload scripts so I know they are trusted members.

So anyway to exclude certain member groups or can this feature be added?

-Thanks

Texan78

Quote from: Texan78 on February 06, 2013, 04:15:38 PM
Quote from: ChalkCat on September 18, 2012, 03:55:37 PM
Is there any way to exclude certain members, so for example, newbies who are known to us can post links without problem?

I am needing the same thing.

Need a way to exclude certain groups.

I have the downloads mod and I have developers trying to upload scripts and they can't because this mod is blocking them. They don't post in the forums, they just upload scripts so their post count can't be raised first. They have to be added to a certain group manually in order to upload scripts so I know they are trusted members.

So anyway to exclude certain member groups or can this feature be added?

-Thanks

In the meantime I have found a small work around.

Click on the users profile and then under modify profile on click on account settings.

From there you have the abaility to manual set a users post count. Just set it to where it clears the settings of your Anti-Spam Links.

Still would be nice to have a feature it exclude certain member groups as I can see this being tedious to have to manually add posts to members.

-Thanks

impreza

Quote from: fiver on May 14, 2010, 01:49:20 AM
For BBC "Code", instead of Select it's become

Code:  newbielink:javascript:void(0); [nonactive]

Any fix please? Thanks.

This is still broken
Portal Totemat - artykuły i filmy - treści w postaci artykułów i filmów.

ElDudo

This is an AWESOME plugin!

It has saved me from headaches supervising spam in our new forum. It's a shame the plugin seems to be no longer supported (last updated in 2011) because I would be willing to contribute some money for updates of this plugin. The ability to restrict the posting of links on users depending on their post count is priceless and perhaps this could be a great addition to the core in-built system of SMF for upcoming updates? Also, the making of external links nofollow is great too as it helps deter spam big time.

Anyway, I cannot post threads since I'm new, so I would like to ask here this simple question I have. Currently, I have used this plugin to set my external links posted by users to be nofollow; however, the links have a red text displaying nofollow next to the links which discourages users from clicking links in my forum; the feedback I get is that people think that the links are dangerous or contain viruses and what not since they have nofollow text next to them (my forum is not webmaster related so users don't know what nofollow means). I believe this forum also has the text nofollow (in red) next to external links so many of you will be aware of what I mean.

My question is, is there any quick way to remove the text nofollow from being displayed next to external links? I still want the links to continue being nofollow, but simply NOT have the red text nofollow next to them so that my forum members are OK with clicking the links. Surely this minor modification to the functionality of the plugin must consist of simply changing a couple of lines in the code but I have been looking for answers to no avail.

I would really appreciate any help please. I only use a couple of plugins on my site, and this one is a must have.

Thanks!!  8)

IchBin™

You should be able to change the $txt string that is put in the Themes/default/languages/Modifications.english.php file for this. Or Modifications.english-utf8.php if you're using utf8 on your forum.
$txt['anti_spam_links_nofollow'] = '[nofollow]';

Compatibility with SMF 2.0 RC5 pretty much means it's compatible with SMF2.0.x. It just needs to be updated to reflect that. Looks like Customize team is falling behind on their mods. :o

If you need to remove the red color you'll probably have to alter the part of the code taht is put in Subs.php IIRC. It looks like it has a span with the css class associated with it to make it red. You can likely just remove that.
IchBin™        TinyPortal

ElDudo

Thanks so much for the help IchBin™.

I am actually getting back to SMF after leaving the project aside for 6 weeks due to work and I'm working hard to build the actual user base, so apologies if this question is obvious, but where do I find  ---> Themes/default/languages/Modifications.english.php ??

I just logged in quickly on my SMF forum as an Admin but could not find that file. Do I have to log into my webhosting root panel (Cpanel) instead to find it there? I have done all modifications so far (minor ones) just by modifying the theme from my Admin panel in SMF and by installing the few mods I have so far. I'm really wary of editing stuff on Cpanel so I would rather ask this question to ensure I go in correctly (I will of course back up before etc).

I'm using the Firox theme BTW and the forum is in English. Also I simply would like to have the actual text -- nofollow -- erased from next to all external links, not just have the fonts go back to the default postbit color. It's the actual nofollow text that puts my forum users from clicking links.

Lastly, the mod is working great on my 2.0.6 installation, FWIW to anyone being wary of this mod being behind on SMF updates.

Many thanks again, really appreciate it. I own a couple other forums with other forum software and I find SMF way easier to modify minor stuff as a webmaster. In fact, I don't see much of an extra benefit from Vbulletin when compared to SMF or Mybb and I'm finding SMF runs somewhat faster than Vbulletin  ;D ;D

IchBin™

You find the file Modifications.english.php on your server in your control panel (CPanel for most people). Yes you have to alter that file directly to change the link text that you want to change. The path I showed you should be the path from where ever your forum is installed.

If you want to change nofollow to just be erased, then you'll make this change to the line:
Currently the line should like this:
$txt['anti_spam_links_nofollow'] = '[nofollow]';

After you have changed it, it should look like this:
$txt['anti_spam_links_nofollow'] = '';

I think that should do what you need.
IchBin™        TinyPortal

ElDudo

IchBin™ thanks so much buddy! It worked, just that tiny modification.

May I ask, when I upgrade SMF or the mod (if it is updated in the future), will I have any problems since the nofollow was removed from Modifications.english.php ?? Should I put back the nofollow whenever I update to avoid any complications?

Anyway, this mod is awesome and really helps us webmasters to control spam (I've disallow links from everyone with less than 50 posts LOL no spam ever since). IMO this mod should be integrated in the core of SMF, really helpful!

I appreciate the community effort and how all of you are contributing to make SMF. I would like to give a donation to this mod and the developers, or if this mod belongs to the SMF team. Just a donation to pay for coffees and red bulls for the day  :D Please let me know an official Paypal account to send a donation or however you guys want to do it through Paypal.

Cheers

IchBin™

You'll notice right away after an upgrade if your change was overwritten. However, SMF should not overright that file during the normal updates between minor version like 2.0.5 to 2.0.6. If you do a major upgrade like 2.0 to 2.1 that could be possible. If you upgrade the mod, you will likely need to make the change again.

Do make a donation to SMF feel free to take a look here.
http://www.simplemachines.org/contribute/donate.php

Depending on how much you donate you may also qualify here:
http://www.simplemachines.org/charter/
IchBin™        TinyPortal

ElDudo

Thanks for the reply!

I have just donated the $49.95 to contribute for developing costs etc It said that I would have a badge on my avatar or something like that? I haven't received any email to confirm, just my payment is confirmed.

Anyway, I'm happy to have contributed $49.95 even if I don't have a badge  ;D Keep up the effort folks, SMF is really up there with the top dogs! Happy to contribute in some way to this community.

Cheers

EDIT: I have the badge now  8)

IchBin™

IchBin™        TinyPortal

freestyler7

So I can not hang the links until it exceeds 5 post?

Kindred

Слова
Украина

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

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

johnpaul2k2

I just noticed something concerning this great mod

if Visitor Mask or embedded his/her link in this form



[url=Your LINK]   TOPIC [/url]




it wouldn't catch the link?

any solution?


Matthew K.

This modification is generating undefined errors in Subs.php.

Modification XML Files:

Code (Find) Select
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)
Code (Replace) Select
if ((($poster_id === 0 && !empty($modSettings['anti_spam_links_guests']) && $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)

Code (Find) 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)
Code (Replace) Select
elseif ((($poster_id === 0 && !empty($modSettings['anti_spam_links_guests']) && $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)

Oh...also, the install and uninstall for ranges are 2.0 - 2.99.99 which should be 2.0 - 2.0.99 so that it isn't automatically marked as compatible with future 2.x versions like 2.1...

supmener

Hi, Sorry for bad Inglish. How add nofollow for links not only for guests and for admin to? And I want noffolow only for external, not internal.
SMF 2.0.8. SimpleAds, More Spiders, Spoiler, Optimus Brave, Piwik Analytics, Spiders Don't Increase Topic Views, External and NoFollow All Links, Allow Access while in Maintenance Mode. I think set in the future: https://github.com/Spuds/SMF-ILA [nofollow]

Kindred

Слова
Украина

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

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: