News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Anti-Spam Links

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

Previous topic - Next topic

GohighVoltage

Hi, Great Mod.

Can you explain how the settings work:

    Anti-Spam-Links Mod Settings
Post count under which members cannot post external links
[Excludes any http://www.gohighvoltage.com/forum links]
(Use 0 to disable)
Post count under which members external links are shown [nonactive] and without http://
[Excludes any http://www.gohighvoltage.com/forum links]
(Use 0 to disable)
Post count under which members external links are set [nofollow]
[Excludes any http://www.gohighvoltage.com/forum links]
(Use 0 to disable)


What does 0 Disable do?    And if I put say, 5, in here,  does that allow users to post links after 5 posts?    What do you recommend for each of these settings?

Thanks!

GohighVoltage

Are those number negative 1, 10, 25?   Or just 1,10,25


MaXiForum.cz


More-to-life

Great Mod Thank You

I have a few questions
The "newbielink" in front of the nofollow url is annoying can I get rid of it?

When using the search function on SMF the links are all is active is this a bug?
UK Bike Forum - The biggest motorcycle forum magazine in Wales UK.
Gear Up Magazine - Gear Up Motorcycle Magazine.
United Bikers UK Motorcycle Forum - A Brand New UK Bike Forum.
Used Cars South Wales - Search For Your Next Used Car In Laleston, Bridgend, South Wales.
Bikers Of Wales Motorcycle Website - Motorbike Info
Honda - Honda UK

More-to-life

OK Many Thanks

I'll take a look & if I do it I'll post here
UK Bike Forum - The biggest motorcycle forum magazine in Wales UK.
Gear Up Magazine - Gear Up Motorcycle Magazine.
United Bikers UK Motorcycle Forum - A Brand New UK Bike Forum.
Used Cars South Wales - Search For Your Next Used Car In Laleston, Bridgend, South Wales.
Bikers Of Wales Motorcycle Website - Motorbike Info
Honda - Honda UK

More-to-life

Ive changed the "newbielink" its in modifications english

Is there any way of letting some URLS through like say YouTube?
UK Bike Forum - The biggest motorcycle forum magazine in Wales UK.
Gear Up Magazine - Gear Up Motorcycle Magazine.
United Bikers UK Motorcycle Forum - A Brand New UK Bike Forum.
Used Cars South Wales - Search For Your Next Used Car In Laleston, Bridgend, South Wales.
Bikers Of Wales Motorcycle Website - Motorbike Info
Honda - Honda UK

DrBermant

I am having a problem with a conflict between Share This Topic and Anit-Spam Links. The anti-spam tool seems to be in use on this forum and is awesome. With the no links until x posts, there is no problem. The issue comes up with nonactive or nofollow options enabled. All of the links of the social linking options are turned into a mess best described with a screen shot included. The short one is with the working links. The long image is the mess. I would prefer to be able to have social linking even on a newbee first post. I would prefer to enable options like nofollow and nonactive. The current site is a 2RC5 with only post count no linking enabled.

I am not sure where to post to fix, so I am putting this request for help in both mod's sections. Your thoughts and comments would be appreciated.

Michael Bermant, M.D.

the site I am asking about is

http://www.abodybeautiful.com/forum/index.php
Board Certified
American Board Plastic Surgery
Plastic Surgery Encyclopedia
A Body Beautiful Plastic Surgery Forum

DrBermant

Quote from: Arantor on March 13, 2011, 04:06:06 PM
There is no way to fix that without seriously rewriting this mod.
Too bad, both are great features. It would be nice to have access to both. I wonder if there is a post pane that the poster is putting the post in. It would be nice to have this mod in that post panel and the social links in a higher window component. Is this mod being put in a very high location that no social link mod will work or am I wrong about there being a post panel that the posts go in?

Thank you for taking the time to answer.

Michael Bermant, M.D.
Board Certified
American Board Plastic Surgery
Plastic Surgery Encyclopedia
A Body Beautiful Plastic Surgery Forum

DrBermant

Quote from: Arantor on March 13, 2011, 06:35:56 PM
Oh... wait a minute. That's something else going on that I wasn't expecting, I misread what it was doing.

The issue is that the other mod needs to not inject the code into the post itself before parsing the content. I know why it does it, it makes it work with far fewer edits to the system.

They have posted a fix to the mod conflict here:

http://www.simplemachines.org/community/index.php?topic=334955.msg2988094#msg2988094

you need to use several posts to get the final result:

http://www.abodybeautiful.com/forum/index.php/topic,197.msg224.html#msg224

It works fine. Thank you.

Now for a second question. Is it possible to have a second or third site that it [Excludes any http://www.abodybeautiful.com/forum links]. For instance I would like to exclude the no follow or nonactive links to:

http://www.plasticsurgery4u.com

and

http://www.thesurgerystore.com

other components of this extended resource. I split up the forum from my Plastic Surgery Encyclopedia and split the Surgery store from both due to requirements of Honcode. You can see why I would like this detail in the example I posted. My student in the office posted a link to my site, and I would like such posted links to be active and followed by the search engines. My thoughts would be to permit let us say up to 2 or 3 such additional sites in the mod panel.

Manual edits would be OK, but even more awesome would be an option for the mod, in the mod panel to add other domains to be so enabled.

Sorry if this has been requested before, I did search and came up with nothing. 

Again thank you for your help. You have a great mod.

Michael Bermant, M.D.
Board Certified
American Board Plastic Surgery
Plastic Surgery Encyclopedia
A Body Beautiful Plastic Surgery Forum

Makar

how to do that would be any message with a link that required approval by a moderator ?

Sorry for my english

Blade_Runner

I kept getting the following error messages when I install this mod with RC5. Guests are not allowed to make posts and I have disable mod for guest.

----------------------------------------------------------
http://modcarclub.com/forums/index.php?topic=102.0;prev_next=prev
8: Undefined index: anti_spam_links_guestsFile: /home/xxx/public_html/modcarclub.com/forums/Sources/Subs.php
Line: 2490

http://modcarclub.com/forums/index.php?topic=102.0;prev_next=prev
8: Undefined index: anti_spam_links_guestsFile: /home/xxx/public_html/modcarclub.com/forums/Sources/Subs.php
Line: 2486

http://modcarclub.com/forums/index.php?topic=176.0;prev_next=prev
8: Undefined index: anti_spam_links_guestsFile: /home/xxx/public_html/modcarclub.com/forums/Sources/Subs.php
Line: 2490

http://modcarclub.com/forums/index.php?topic=176.0;prev_next=prev
8: Undefined index: anti_spam_links_guestsFile: /home/xxx/public_html/modcarclub.com/forums/Sources/Subs.php
Line: 2486

----------------------------------------------------------
Line 2486 and 2490 are the two lines for this mod.
   // Links get made non-active with newbielinks prefix
   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)
      $message = preg_replace('~<a href="(?!' . preg_quote($boardurl) . ')([^"]*?)"(?:[^>]*?)>(?:.*?)</a>~i', $txt['anti_spam_links_newbielink'] . '$1 <span class="alert smalltext" title="' . sprintf($txt['anti_spam_links_newbielinks_info'], $modSettings['anti_spam_links_newbielinks']) . '">' . $txt['anti_spam_links_nonactive'] . '</span>', $message);

   // Links get rel="nofollow" so no page rank for you.
   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)
      $message = preg_replace('~(<a)( href="(?!' . preg_quote($boardurl) . ')(?:[^"]*?)"(?:[^>]*?)\>(?:.*?)</a>)~i', '$1 rel="nofollow"$2 <span class="alert smalltext" title="' . sprintf($txt['anti_spam_links_nofollowlinks_info'], $modSettings['anti_spam_links_nofollowlinks']) . '">' . $txt['anti_spam_links_nofollow'] . '</span>', $message);

   // End of Anti-Spam-Links mod
----------------------------------------------------------

Any help is greatly appreciated.


Sleezy

SMFNew Advocate for SMFNew (Dagger)

Oldiesmann

#74
I just installed this on my forum, but am having a few problems with it.

I have it set so that users who have never posted cannot post links, and users who have less than 5 posts will get the "newbielink:" treatment.

However, it's changed the links in all of my posts to "newbielink". If I edit it via the quick modify and save it again, it'll show up correctly, but only until I view the post again. I've disabled that option for now because it's not working properly, but I would like to leave that in there just in case the spamtards figure out the trick to posting links...
Michael Eshom
Christian Metal Fans

DrBermant

I seem to have a problem with the:

QuoteEXCLUDES yoursite.com links, so only use on any part of *.yoursite.com

Check this example attachment. It uses the following test post with 3 different level posters:
Quote
http://www.plasticsurgery4u.com is a link to a site that can be listed, but does not actually work in the post.

http://www.abodybeautiful.com/plastic_surgery_forum/forum_navigation.html is a link on this site, it also does not work.

but

http://www.abodybeautiful.com/forum/index.php is a link in the forum that works just fine.

Now any link in the forum folder "http://www.abodybeautiful.com/forum/" works just fine. But pages on the same site such as:

http://www.abodybeautiful.com/plastic_surgery_forum/forum_navigation.html gets flagged as if it is coming from another site. Is there a setting that can be changed to fix this? I am not able to move the forum to a higher level in the site as it would screw up the search engine work done so far.

In addition, can the mod be adapted to permit selecting other sites to bless such as the (EXCLUDES yoursite.com links, so only use on any part of *.yoursite.com)?

This last feature would also address higher root links from the same domain if they could be added in the adm section.

Another feature that would be nice if there also could be a group selection for the mod in addition to the post count. That way a particular group could be assigned a certain linking method no matter what the post count.

Thank you for any assistance and help in this matter.

Michael Bermant, M.D.
Board Certified
American Board Plastic Surgery
Plastic Surgery Encyclopedia
A Body Beautiful Plastic Surgery Forum

Enc0der

^^^ +1 for the "exclude any domain.com/FOLDER" issue.
The forum is almost never in the root folder of the domain, but in its own folder, e.g. "http://www.simplemachines.org/community".
You don't want to nofollow links to your own website, e.g. "http://www.simplemachines.org/"...

Apllicmz

Update portuguese files
thank you

<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
global $boardurl;
$txt['anti_spam_links'] = 'Configura&ccedil;&otilde;es do Mod Anti-Spam-Links';
$txt['error_anti_spam_links_nolinks_guest'] = 'Desculpa, Visitantes n&atilde;o tem permiss&atilde;o para postar links externos.';
$txt['error_anti_spam_links_nolinks_member'] = 'Desculpa, voc&ecirc; n&atilde;o tem permiss&atilde;o para postar links externos.';
$txt['anti_spam_links_newbielink'] = ' newbielink:';
$txt['anti_spam_links_nonactive'] = '[nonactive]';
$txt['anti_spam_links_newbielinks_info'] = 'Para refrear as mensagens de spam, liga&ccedil;&otilde;es externas s&atilde;o [inativo] até %1$s postes';
$txt['anti_spam_links_nofollowlinks_info'] = 'Para refrear as mensagens de spam, liga&ccedil;&otilde;es externas s&atilde;o definidas [nofollow] (que significa que nenhum pagerank) até %1$s postes';
$txt['anti_spam_links_nofollow'] = '[nofollow]';
$txt['anti_spam_links_nolinks'] = 'Contagem de Postes em que os membros n&atilde;o pode postar links externos';
$txt['anti_spam_links_newbielinks'] = 'Contagem de Postes em que os membros s&atilde;o mostrados links externos [inativos] e sem http://';
$txt['anti_spam_links_nofollowlinks'] = 'Ccontagem de Postes em que os membros links externos s&atilde;o definidos [nofollow]';
$txt['anti_spam_links_zero_disable'] = '[Excluir qualquer ' . $boardurl . ' links]<br />(Use 0 para desativar)';
$txt['anti_spam_links_guests'] = 'Visitantes... ';
$txt['anti_spam_links_guests_opt0'] = '(Desativar o mod para visitantes)';
$txt['anti_spam_links_guests_opt1'] = 'n&atilde;o pode postar links';
$txt['anti_spam_links_guests_opt2'] = 'links s&atilde;o mostrados [nonactive]';
$txt['anti_spam_links_guests_opt3'] = 'links s&atilde;o definidos [nofollow]';
]]></add>
        </operation>
    </file>




vbgamer45

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

jekwumoore

I just upgraded to smf 2.0  will this mod work on it?
we rule the world

Advertisement: