![]() |
Apply "rel=nofollow" attribute to all parsed URLs
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:
|
I will install this on monday.
|
Good job kall, will work great
~Curt |
I'm not going to install this as my forum doesn't need it, microscopic in size compared to the majority - but just thought I would post my support for an excellent effort!
|
Hook bbcode_create
PHP Code:
Hook: bbcode_parse_complete PHP Code:
|
This seems to have conflicts with the "PM group leader on join request" plugin. At least it did with mine. :(
|
would the work with grapping of the newsgroup and from mailinglist? Would the plugin work with the nntp newsgroup pulling.
|
Quote:
|
Quote:
|
Quote:
(Could a Mod move this to the Plugins Forum? Ta.) |
The plugin is not working for me in 3.5 RC 2. Anyone else have any success with it?
|
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) |
Quote:
I downloaded it from my plugin system. |
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.
|
Quote:
PHP Code:
|
Quote:
Might this have something to do with vb's parsed post caching? |
One of the best hack ideas I have seen for a while. Very good job! :)
|
I'd love this for v3.0.9. I can't upgrade to 3.5 and the functions_bbcodeparse.php file is much different.
|
Great hack.. "Installs"
|
Quote:
|
Thanks for a great hack
|
Ya know I kinda have mixed feelings on this idea ... personally I would like links in my users sigs to be followed, as some of my users run there own sites and would like to get them ranked well in search engines. I can`t see it causes me any problems, and helps the people who make my site work ..
The ability to choose which forums it stops would be nice .... eg. If I have a forum for people to post links like this, then I would like to disable this on that particular forum.. Hope that makes sense LOL So, any way to do this? |
Very nice modification kall :)
Chris |
Do this work for Version 3.5.1?
Cause I installed the plugin but nothing happens. |
This worked great for me in 3.5.1 Except for the homepage URL located in their profile. Any way to add this there?
|
I installed this mod and it wouldn't display any threads after I did. Not sure what went wrong with it...
|
I would love to see a whitelist exclusion for certain URLs. vBSEO lets you specify, say, smugmug.com, google.com, and vbulletin.com as exclusions so the rel="nofollow" attribute.
I ended up not being able to use vBSEO, so I'm looking for a nofollow plugin to replace it. |
is it workin on 3.5.3 ?
|
yes i have 3.5.3 and i dont know if this working, can u tell me also, i want to all group have The Nofollow Attribute
|
working for me on 3.5.3
|
Installed!! Thanks.
|
is it possible to make this script work only in few forums ?
i dont want to block links with "rel=nofollow" in all forums thanks. |
Hmm, I used the plugin system to upload this hack on a 3.5.3 board but it doesn't seem to be working? Anyone know why? Thanks
|
Quote:
technically hack should only add rel=nofollow tag to content in posts and users signatures without touching other parts of the forum.. but check this, there are many other areas where the rel=nofollow should not be added: Code:
<table cellpadding="6" cellspacing="0" border="0" width="100%" class="page" align="center"> thanks. Problem 2: Even after disabling the plugin from plugin manager, rel-nofollow still appears for internal forum links.. :surprised: |
Quote:
|
Quote:
i was not aware about this :) problem 2 solved - courtesy welo problem 1 - waiting for a solution. |
Yeah, they did that to prevent unnecessary spidering of 'Post Reply' buttons and stuff like that, along with somewhat controlling the silent spam that sometimes creeps into memberslists in signatures etc.
|
Quote:
If so, it is a vB default thing as per welo's post above this one. |
Quote:
can you help me implement the hack, add rel=nofollow for urls in posts table ? thanks. |
How do I install this? It says its not a product...
|
All times are GMT. The time now is 12:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|