The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Apply "rel=nofollow" attribute to all parsed URLs Details »» | ||||||||||||||||||||||||||||||
Apply "rel=nofollow" attribute to all parsed URLs
Developer Last Online: Aug 2021
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:
Quote:
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:
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:
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:
Replace with: PHP Code:
Show Your Support
|
Comments |
#102
|
|||
|
|||
unfortunately doesnt work for me @3.6.7PL1
i think there is something wrong with the condition if (is_member_of($post, 5, 6, 7) OR $post['posts'] > 50) ^^ seems somehow wrong...?? $post[dont_we_need_some_group_entry_here?] anyone any idea? |
#103
|
|||
|
|||
Added this to www.vwdforum.com
works, (when I check "view source code") however also for internal links. Anyone found a solution yet? |
#104
|
|||
|
|||
Do Not Work
|
#105
|
||||
|
||||
That's probably not a good idea, working can be useful to bring food into the house, and keep the house paid for. I work.
|
#106
|
|||
|
|||
Ok, you choose not to, but as stated above, it has its rewards
|
#107
|
|||
|
|||
I'm running three forums where this works in some instances and not in others.... I have already checked and double checked my user group id numbers to make sure there are not any regular users comming up in groups 5, 6, or 7 but I still find that in some instances the added no follow works on posts and signatures but some instances it just doesn't.... A user will have 3 posts and it will not add the nofollow....
I have tryed all the forums and it works in some places and it doesn't.. Also visiting posts I haven't viewed in a long time to rule out page cache. Can't figure it out. |
#108
|
||||
|
||||
I'm using this code on 3.6.8 and it's running fine.
As I want this to work with every user exept my staff, I have removed the part with number of post. Here's what I am using: Code:
$this->tag_list['no_option']['url']['callback'] = 'handle_external'; $this->tag_list['no_option']['url']['external_callback'] = 'handle_bbcode_url_relnofollow'; $this->tag_list['option']['url']['callback'] = 'handle_external'; $this->tag_list['option']['url']['external_callback'] = 'handle_bbcode_url_relnofollow'; if (!function_exists('handle_bbcode_url_relnofollow')) { function handle_bbcode_url_relnofollow($parser, $text, $link) { global $post; // Excempt Mods+ and Users with mor then 50 Posts $parsedurl = $parser->handle_bbcode_url($text, $link); if (is_member_of(5, 6, 36)) { return $parsedurl; } else { return str_replace('href="', 'rel="nofollow" href="', $parsedurl); } } } |
#109
|
|||
|
|||
what about 3.7 Gold any idea ?
|
#110
|
|||
|
|||
It appears to be working in mine.
|
#111
|
|||
|
|||
Quote:
and run "Rebuild Post Cache" and "Empty Signature Cache" to rebuild all those links. A whitelist ability for your own forum's domain name would be an excellent add-on to this mod. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|