Version: 1.10, by kall
Developer Last Online: Aug 2021
Version: 3.5.0
Rating:
Released: 08-06-2005
Last Update: 08-29-2005
Installs: 139
Uses Plugins
No support by the author.
In the first cooperative move for nearly ten years, the major search engines have unveiled a new indexing command for web authors that they all recognize, one that they hope will help reduce the link and comment spam that plagues many web sites....due to removing the point of doing it in the first place.
The new "nofollow" attribute that can be associated with links was originated as an idea by Google in late 2004 and MSN and Yahoo, as well as major blogging vendors have jumped onboard.
The Nofollow Attribute
The new attribute is called "nofollow" with rel="nofollow" being the format inserted within an anchor tag.
When added to any link, it will effectively serve as a flag to tell the search engines that the link has not been explictly approved by the site owner, and therefore "not follow" it, or not use the referring page's (on your site) Page Rank in any way.
For example, this is how the HTML markup for an ordinary link might look:
Quote:
<a href="http://www.somedomain.com/page.html">My forums are the best lol lol lol click here!!</a>
This is how the link would look after the nofollow attribute has been added, with the attribute portion shown in bold
Quote:
<a href="http://www.somedomain.com/page.html" rel="nofollow">My forums are the best lol lol lol click here!!</a>
Once added, the search engines supporting the attribute will understand that the link has not been approved by the site owner.
Think of it as a way to flag to them, "I didn't post this link -- someone else did, don't associate me with it."
Quote:
Originally Posted by Alkatraz
If Google sees nofollow as part of a link, it will:
1. NOT follow through to that page.
2. NOT count the link in calculating PageRank link popularity scores.
3. NOT count the anchor text in determining what terms the page being linked to is relevant for.
The site that is being linked to will gain nothing from the link, so the whole point of doing it in the first place is removed.
This will affect URLs in posts, as well as signatures...anything that goes through the bbcodeparse function as far as I can tell/guess, and will work recursively, or whatever the word is that means 'it will affect all existing posts and signatures'...or it did for me anyway.
To change the conditional number of posts, alter
PHP Code:
OR $post['posts'] > 50)
to whatever you like.
I can't see how this could be done as a plugin, but if anyone wants to point out how, that would be nicer....YAY Kirby!
Now all you need to do is unzip the attached file, upload the plugin using your Admin CP - Plugin System - Plugin Manager!
Relax, safe in the knowledge that spammers linking from your site are doing so for no reason whatsoever.
To remove the old version:
File to modify: 1
1/ Open your includes/class_bbcode.php file
Find:
PHP Code:
// standard URL hyperlink
//return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
global $post;
if (is_member_of($post, 6) //Admins are exempt
OR is_member_of($post, 5) //Mods are exempt
OR is_member_of($post, 7) //SuperMods are exempt
OR $post['posts'] > 50) // People with over 50 posts are exempt
{
// standard URL hyperlink
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
}
else
{
return "<a href=\"$rightlink\" rel=\"nofollow\" target=\"_blank\">$text</a>";
}
}
Replace with:
PHP Code:
// standard URL hyperlink
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
}
2/ Save and Upload.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Will this make ALL links in forum posts get the attribute? Because it would be nice if links posted by admins or mods would not get it since they often link to other pages within our own site.
Will this make ALL links in forum posts get the attribute? Because it would be nice if links posted by admins or mods would not get it since they often link to other pages within our own site.
Let's look at the bit in the first post that controls who has their posts/signatures "nofollow"'ed:
PHP Code:
if (is_member_of($post, 6) //Admins are exempt
OR is_member_of($post, 5) //Mods are exempt
OR is_member_of($post, 7) //SuperMods are exempt
OR $post['posts'] > 50) // People with over 50 posts are exempt
Working fine for me. I have min posts set to 50 (51 promotes members to another usergroup) and several usergroups exempted.
Look at the signature for this user f.ex. as opposed to the moderator posting on that thread. Here is a user with 50 posts.
(this is where "View Selection Source" in Firefox comes in handy)
Rather odd. It's simply not working for me whatsoever. I've removed the if clause completely and had it apply the nofollow bit to all links but no luck!
Might this have something to do with vb's parsed post caching?