Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: karlbenson on October 14, 2007, 04:09:04 PM

Title: NoFollow ALL Links
Post by: karlbenson on October 14, 2007, 04:09:04 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=969)



NoFollow All Links v1.0
By Karl Benson


Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=969) | Comment On This Mod (http://www.simplemachines.org/community/index.php?topic=200396.0)

Introduction
A modification to FORCE a rel="nofollow" on ALL links in posts.

rel="nofollow" is added to all url and/or iurl bbcode links (including internal links) and will mean that the links do not count towards backlinks or towards anyones pagerank.
It will also affect whether search engines follow the links.

The only search engine that really takes account of the rel="nofollow" attribute is Google.
For more information see the Wikipedia NoFollow (http://en.wikipedia.org/wiki/Nofollow) Article

Alternatively see my [nofollow][/nofollow] BBCode (http://custom.simplemachines.org/mods/index.php?mod=968) mod to create links with a nofollow attribute.

Features
o Adds rel="nofollow" to both types of url tags
- [iurl][/iurl]
- [url][/url]
o Example
<a href="http://www.simplemachines.org" rel="nofollow">SimpleMachines.org</a>

Installation
No manual edits should be required. This modification makes 4 alterations to the sources/subs.php file only.

This mod will work for both SMF 1.1.x versions
and SMF 2.0.x versions (the beta of which is currently available to Charter Members).

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
1.0 - 3rd October 2007
o Initial Release per request
Title: Re: NoFollow ALL Links
Post by: goranbaxy on November 06, 2007, 06:34:09 AM
I have some partners on my site (in footer) and I would like to have news on the site to be "no follow" free, as my partners wouldn't like to have no follow links.
So my question is will this mode change just posts or whale forum links?
Title: Re: NoFollow ALL Links
Post by: Dragooon on November 06, 2007, 06:44:26 AM
Since it only Modifies BBC Tags, I don't believe so.
If you have a manual HTML Link, It should not affect it.
Title: Re: NoFollow ALL Links
Post by: goranbaxy on November 06, 2007, 07:31:12 AM
Great mod it does what I was expecting from it!
Title: Re: NoFollow ALL Links
Post by: karlbenson on November 21, 2007, 09:46:09 PM
Indeed, this mod will ONLY affect bbcoded links.
Title: Re: NoFollow ALL Links
Post by: Bogdan on December 06, 2007, 05:18:47 AM
It is possible to make some modification to this mod, because i don't want to have no follow on my internal links.
Title: Re: NoFollow ALL Links
Post by: karlbenson on December 07, 2007, 12:34:36 AM
I don't think it would matter.

Since all of your internal links will be found anyway via board index, topic index, recent posts etc etc.
And since internal links don't count towards backlinks, pagerank or seo I don't think it would matter.
Title: Re: NoFollow ALL Links
Post by: Bogdan on December 07, 2007, 06:10:17 AM
Some Seo experts disagree. Read here http://www.seomoz.org/article/search-ranking-factors at "Link Popularity within the Site's Internal Link Structure".
And i know one big forum that has no follow on external links and follow on internal links.

And google show in webmaster tools the pages with internal links. So.. i believe that it is something important.
Title: Re: NoFollow ALL Links
Post by: Eleglin on December 14, 2007, 08:05:48 AM
Quote from: Bogdan on December 06, 2007, 05:18:47 AM
It is possible to make some modification to this mod, because i don't want to have no follow on my internal links.
Also, I think it could be a good feature if you could have the choice : to have nofollow on all links or on external links only.
keep the good work, Karl ! :)
Title: Re: NoFollow ALL Links
Post by: karlbenson on January 18, 2008, 11:56:15 PM
I have reuploaded this mod and screenshots for it.

I am in the process of doing it for ALL my other mods aswell.  Please bear with me.
Title: Re: NoFollow ALL Links
Post by: rumfa on April 14, 2008, 03:28:48 AM
One quetion. Is this mod automatiacally adding the nofoloow or is it still only when specified with the bbcode?
Title: Re: NoFollow ALL Links
Post by: karlbenson on April 14, 2008, 10:39:08 AM
Whenever [iurl][/iurl] or [url][/url] bbcode  is used. When it is converted to html, it will add a rel="nofollow" tag.
Title: Re: NoFollow ALL Links
Post by: Asciicode on March 09, 2010, 09:11:17 AM
Just a quick notice to everyone, if you have a problem upgrading to SMF 1.1.11 from 1.1.10, you'll get the    ./Sources/Subs.php failed message.  Hope this helps anyone who likes this mod.

I don't know if there's a similar mod.
Title: Re: NoFollow ALL Links
Post by: PSPguru on September 19, 2012, 05:59:47 AM
Hello everyone,
Do you have any idea if this mod "nofollow links"  still works for the latest version of SMF. Any reply will be much appreciated.
thank you
Title: Re: NoFollow ALL Links
Post by: johnkorner01 on December 01, 2012, 02:57:17 AM
i use this code in site moviewatchonline.pro
Title: Re: NoFollow ALL Links
Post by: tclane on December 05, 2012, 09:08:00 PM
I don't know a lot about HTML but lets say I wanted to use followed anchor text in a post, how would I do it?