Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Apply "rel=nofollow" attribute to all parsed URLs Details »
Apply "rel=nofollow" attribute to all parsed URLs
Mod Version: 1.10, by kall (Coder) kall is offline
Developer Last Online: Sep 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.0 Rating: (8 votes - 5.00 average) Installs: 139
Released: 07 Aug 2005 Last Update: 30 Aug 2005 Downloads: 318
Not Supported Uses Plugins  

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:

<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

<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."

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
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2/ Save and Upload.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 07 Aug 2005, 12:06
mcncyo's Avatar
mcncyo mcncyo is offline
 
Join Date: Oct 2001
Real name: Chris
I will install this on monday.
Reply With Quote
  #3  
Old 07 Aug 2005, 13:48
bigcurt's Avatar
bigcurt bigcurt is offline
 
Join Date: Nov 2004
Real name: Curtis C.
Good job kall, will work great


~Curt
__________________
My first vB template additions: Add User Color Legend - Add eBay profile to postbit
Curtis C.- Owner and Operator of KeyHunt
Important Linkage: Buy vB - vB Styles
Just wanna ask a vB related question contact me.
Reply With Quote
  #4  
Old 08 Aug 2005, 00:05
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
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!
__________________
AndroidETC.com :: Android, and other stuff.
Reply With Quote
  #5  
Old 08 Aug 2005, 16:33
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Hook bbcode_create

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Or (simpler, but might affect mor then just [url])
Hook: bbcode_parse_complete

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #6  
Old 09 Aug 2005, 04:12
ricker ricker is offline
 
Join Date: Jun 2003
This seems to have conflicts with the "PM group leader on join request" plugin. At least it did with mine.
__________________
:cheeky: My Jeep Rocks!
Reply With Quote
  #7  
Old 10 Aug 2005, 01:57
mcncyo's Avatar
mcncyo mcncyo is offline
 
Join Date: Oct 2001
Real name: Chris
would the work with grapping of the newsgroup and from mailinglist? Would the plugin work with the nntp newsgroup pulling.
Reply With Quote
  #8  
Old 11 Aug 2005, 22:42
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Originally Posted by ricker
This seems to have conflicts with the "PM group leader on join request" plugin. At least it did with mine.
I can't see how .. all this does is add an attribute to the href of a link.. can you please explain?
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #9  
Old 30 Aug 2005, 06:46
welo welo is offline
 
Join Date: Jan 2004
Originally Posted by KirbyDE
Hook bbcode_create

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
For some reason I have no idea whatsoever how to apply this code. Is this basically a replacement in class_bbcode.php for what Kall originally posted?
__________________
"I should warn you that underneath these clothes I'm wearing boxer shorts and I know how to use them." --Robert Orben
Reply With Quote
  #10  
Old 30 Aug 2005, 12:19
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Originally Posted by welo
For some reason I have no idea whatsoever how to apply this code. Is this basically a replacement in class_bbcode.php for what Kall originally posted?
You can just upload the attached .xml now, thanks to Kirby.

(Could a Mod move this to the Plugins Forum? Ta.)
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #11  
Old 01 Sep 2005, 06:27
Paul Paul is offline
 
Join Date: Jan 2002
The plugin is not working for me in 3.5 RC 2. Anyone else have any success with it?
Reply With Quote
  #12  
Old 01 Sep 2005, 06:55
welo welo is offline
 
Join Date: Jan 2004
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)
__________________
"I should warn you that underneath these clothes I'm wearing boxer shorts and I know how to use them." --Robert Orben
Reply With Quote
  #13  
Old 01 Sep 2005, 08:18
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Originally Posted by Paul
The plugin is not working for me in 3.5 RC 2. Anyone else have any success with it?
I am.

I downloaded it from my plugin system.
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #14  
Old 01 Sep 2005, 09:14
SnitchSeeker's Avatar
SnitchSeeker SnitchSeeker is offline
 
Join Date: Sep 2004
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.
Reply With Quote
  #15  
Old 01 Sep 2005, 09:27
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Originally Posted by SnitchSeeker
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:37.

Layout Options | Width: Wide Color: