Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Nibogo on June 02, 2008, 09:16:58 PM

Title: NoFollow All Links v1.0
Post by: Nibogo on June 02, 2008, 09:16:58 PM
(http://www.smfpacks.com/imagenes/nuevo_logo_mod.png) (http://www.smfpacks.com)

NoFollow All Links v1.2.1 - NIBOGO
A modification to FORCE a rel="nofollow" on ALL links in posts.


Website (http://www.smfpacks.com) |  Donate (http://www.smfpacks.com/donate.php) | My Mods (http://custom.simplemachines.org/mods/index.php?action=search;author=126412) | Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1236) | PRO Version (http://www.smfpacks.com/page/sa=seo)



Important Info:
o This Mod was created by SMFPacks.com - The #1 Website for the Customization of your SMF.

SMFPacks.com Provides Other Great Packages:
- Reason for Editing Mod.
- Yet Another Global Announcements Mod.
- SMF Social Groups.
- SMF Links Directory.
- SMF Downloads Directory.
- SMF Dynamic Directory.
- Advanced Topic Prefix Mod.
- Advanced Invitations System.
- Move Topic Notification.
- PM to New Members.
- Permissions Info.
- Next Post Level.
- Karma Buttons.
- SMF Multi Quote.
- Attachments in Topics.
- and much more visit us on SMFPacks.com

PRO Version:
- There is a PRO Version (http://www.smfpacks.com/page/sa=seo) available as a full SEO suite, take a look to it, it'll highly increase the content indexed by Search Engines.

Original Author:
- karlbenson

Previous Developer:
- Sleepy Arcade

Developer:
- NIBOGO

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>

Compatibility:
- 1.1.X
- 2.0

Special Thanks:
- karlbenson (Original Author of the Mod)
- Sleepy Arcade (Previous Developer)




Changelog:

1.2.1 - 17th March 2010
o Added RC3 Support.

1.2 - 23rd december 2009
o Checked 2.0 RC2 and 1.1.11 Compatibility.

1.1 - 7th june 2008
o Checked SMF 2.0 Compatibility.

1.0 - 3rd October 2007
o Initial Release per request.
Title: Re: NoFollow All Links v1.0
Post by: Apllicmz on June 03, 2008, 12:48:42 AM
yes
good mod
nice work
Title: Re: NoFollow All Links v1.0
Post by: Filipina on June 03, 2008, 06:17:01 PM
Hello and thanks for your MOD :)

Ok i understand the concept of the MOD and I installed it with no problems.  I cannot see any change in old or new URL's that i just tested.  How do I know if the MOD is working?  Should I see this rel="nofollow" added to any URL's because I don't :) 
Title: Re: NoFollow All Links v1.0
Post by: rumfa on June 05, 2008, 11:50:29 PM
View the page source and you will see a nofollow code. It's just ok.
Title: Re: NoFollow All Links v1.0
Post by: Filipina on June 06, 2008, 10:19:51 PM
ah, I see that now thank you source code shows no follow.. thanks for explaining it :)
Title: Re: NoFollow All Links v1.0
Post by: ALEJO on June 07, 2008, 07:15:19 PM
And why do i need this? Its better for the search engines or something?
If someone can explain :) thanks.
Title: Re: NoFollow All Links v1.0
Post by: rumfa on June 07, 2008, 10:47:46 PM
You will get a very high google rank, and PR at the end.
Title: Re: NoFollow All Links v1.0
Post by: spiros on July 27, 2008, 05:36:51 AM
Will it add the nofollow attribute to signature links too?
--Just checked, it does

Is there a specific reason why it is also applied to internal links?
Is there a way to exclude certain links/sites from nofollow?
Title: Re: NoFollow All Links v1.0
Post by: malcomxar on August 08, 2008, 10:22:37 PM
Hi, i have "Show Local Url Titles" mod and it seems to crash with this one.

I get an error while installing Nofollow

I fails while tryng to modify  .Sources/Subs.php 

Is tehr any problem with that?
Title: Re: NoFollow All Links v1.0
Post by: SA™ on August 09, 2008, 02:24:04 PM
you would have to add the code manualy
Title: Re: NoFollow All Links v1.0
Post by: AlphaHot1 on August 11, 2008, 05:20:32 PM
Great mod, but even if the all "nofollow" issue is controversial, it should be deactivated by default for internal links, IMO.
Title: Re: NoFollow All Links v1.0
Post by: karlbenson on August 11, 2008, 05:22:50 PM
This one affects bbcoded links. Not other internal links.
Also bbcoded internal links would be nofollowed.
Title: Re: NoFollow All Links v1.0
Post by: AlphaHot1 on August 19, 2008, 09:28:51 PM
Quote from: karlbenson on August 11, 2008, 05:22:50 PM
This one affects bbcoded links. Not other internal links.
Also bbcoded internal links would be nofollowed.
So normal not-bbcoded link would be followed? I think most of the link in a forum are not bbcoded... so what's the point to nofollow bbcoded links only?
Title: Re: NoFollow All Links v1.0
Post by: baijianpeng on September 05, 2008, 07:39:48 PM
Adding Nofollow attribute to external links is a good idea for SEO.

Today I installed this Mod on my SMF 1.1.5 forum, and noticed that this Mod has added rel=nofollow to ALL links, including my internal links.

I think this is bad. Since internal links bing followed is helpful to SEO.

Hope the author can improve this Mod to add rel=nofollow to ONLY external links.

PS: I viewed the source code of the forum pages, it is rel=nofollow, NOT rel="nofollow", I am not sure  if they has the same function?

Thanks.
Title: Re: NoFollow All Links v1.0
Post by: xjessie007 on October 11, 2008, 03:04:04 PM
Quote from: baijianpeng on September 05, 2008, 07:39:48 PM
Adding Nofollow attribute to external links is a good idea for SEO.

Today I installed this Mod on my SMF 1.1.5 forum, and noticed that this Mod has added rel=nofollow to ALL links, including my internal links.

I think this is bad. Since internal links bing followed is helpful to SEO.

Hope the author can improve this Mod to add rel=nofollow to ONLY external links.

PS: I viewed the source code of the forum pages, it is rel=nofollow, NOT rel="nofollow", I am not sure  if they has the same function?

Thanks.

I agree with you. It would be nice if external links could be equipped with nofollow and internal links stay without it. I looked at the code, and I do not know how to accomplish that, but I can at least help with your PS. rel=nofollow has the same function as the one with the quotes, but the one without quotes invalidates your code, so it is nice to have it right. Go to your sources/Subs.php file and go to somewhere around lines 1578 (that is where I have it). See the following code?

array(
   'tag' => 'url',
   'type' => 'unparsed_content',
   'content' => '<a href="$1" target="_blank" rel="nofollow">$1</a>',
   'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
   'tag' => 'url',
   'type' => 'unparsed_equals',
   'before' => '<a href="$1" target="_blank" rel="nofollow">',
   'after' => '</a>',
   'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
   'disabled_after' => ' ($1)',
),


The module that we are talking here about only includes the nofollow to this code. It makes 4 modifications total. I am showing two. The other two are in a code that looks exactly the same just the tag is iurl. Check the code that I am displaying as orange here, it might be missing quotes in your case.

Btw, I just tested this code, it does add the rel nofollow tag to all href whether they point outside the server or to another topic in your forum. I wish I knew how to fix it, but I suspect it won't be easy.  ::)

-------------
www.maxi-pedia.com - Maxi-Pedia: Your resource for finance & IT!
www.finance-management.cz - Central European Center for Finance and Management
Title: Re: NoFollow All Links v1.0
Post by: baijianpeng on October 12, 2008, 03:32:01 AM
Thanks for your support.

I checked the Mod package, it HAS the quotation marks around nofollow in the xml file. Why those quotation marks vanished after the Mod was applied?
Title: Re: NoFollow All Links v1.0
Post by: xjessie007 on October 12, 2008, 06:28:02 AM
Hello,

I do not know the answer to that. Maybe you were using some older version of the mod that had the nofollow without quotes. I downloaded mine yesterday, but I did not use it to do the fix. My advise, just review or fix the code manually. This is an easy fix that can be done manually.

-------------
www.maxi-pedia.com - Maxi-Pedia: Your resource for finance & IT!
www.finance-management.cz - Central European Center for Finance and Management
Title: Re: NoFollow All Links v1.0
Post by: baijianpeng on December 16, 2008, 04:52:42 AM
Did the author solved the No Following on Internal Links problem?
Title: Re: NoFollow All Links v1.0
Post by: SA™ on December 16, 2008, 05:28:19 AM
no not yet havent had much time to have a look at it
Title: Re: NoFollow All Links v1.0
Post by: Gnu on January 09, 2009, 02:12:47 PM
one more thing...is there a workaround so i can set links as follow as administrator? because i want to have some follow links
Title: Re: NoFollow All Links v1.0
Post by: Danpotter on May 30, 2009, 12:44:20 PM
I  installd NO Follow All Links mod and i dont want it now,...so when i try to uninstall it...,it is redirecting to index page...,but not uninstalling...pls help me........
Title: Re: NoFollow All Links v1.0
Post by: SA™ on May 30, 2009, 07:47:11 PM
try uninstaling it manualy

sourcedir/Subs.php

find

'tag' => 'iurl',
'type' => 'unparsed_content',
'content' => '<a href="$1" rel="nofollow"


replace with

'tag' => 'iurl',
'type' => 'unparsed_content',
'content' => '<a href="$1"



find

'tag' => 'iurl',
'type' => 'unparsed_equals',
'before' => '<a href="$1" rel="nofollow"


replace with

'tag' => 'iurl',
'type' => 'unparsed_equals',
'before' => '<a href="$1"



find

'tag' => 'url',
'type' => 'unparsed_content',
'content' => '<a href="$1" rel="nofollow"



replace with

'tag' => 'url',
'type' => 'unparsed_content',
'content' => '<a href="$1"



find

'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<a href="$1" rel="nofollow"



replace with

'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<a href="$1"


and thats it if you have trouble with it just post that file here and i can do it for you
Title: Re: NoFollow All Links v1.0
Post by: viulian on July 26, 2009, 06:15:34 PM
I wonder how easy it is to modify this plugin to also wrap nofollow to the 'website' in the profile ...
Title: Re: NoFollow All Links v1.0
Post by: SA™ on October 22, 2009, 12:22:06 AM
i have updated this mod now with rc1-1 and 1.1.10 support
Title: Re: NoFollow All Links v1.0
Post by: Nastradini.com on October 25, 2009, 03:07:56 PM
Hello i tried to install your mods but this error occours:

!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.



Type     Action     Description
1.    Execute Modification    ./Sources/Subs.php    Test failed



I'm using SMF 1.1.10 .

Thanks for helping.
Title: Re: NoFollow All Links v1.0
Post by: MaXiForum.cz on November 08, 2009, 04:54:57 AM
Send your Subs.php ;)
Title: Re: NoFollow All Links v1.0
Post by: Pudders on November 28, 2009, 05:22:49 PM
sorry if this was asked before but i cannot see it answered.
Is there a way to use this mod but allow some links to be followed?
Mainly internal ones and a couple of external ones that are mine
Title: Re: NoFollow All Links v1.0
Post by: Buph on December 18, 2009, 02:17:48 PM
Quote from: Sleepy Arcade on October 22, 2009, 12:22:06 AM
i have updated this mod now with rc1-1 and 1.1.10 support

Hello. Can you update the mod with 1.1.11 support? I can't update if I have NoFollow All Links installed.
I've tried to uninstall it, and run the SMF update and reinstall the mod, but I get this error:


Type     Action     Description
1.    Execute Modification    ./Sources/Subs.php    Test failed

Thank you in advance.
Title: Re: NoFollow All Links v1.0
Post by: SA™ on December 18, 2009, 05:46:20 PM
yes i will do it in the new year :)
Title: Re: NoFollow All Links v1.0
Post by: Pudders on December 19, 2009, 06:59:39 AM
anyone?
I want to install this mod but would like links to my own websites to be followed so is there a way to say certain links are ok to follow?
Thanks
Title: Re: NoFollow All Links v1.0
Post by: smldmr on January 06, 2010, 04:06:09 PM
with combinaton of the mod "INTERNAL LINKS USE SAME WINDOW v1.2" and this mod, it's simple to make only external links with rel="nofollow" Yo need to modify the internal links mod like this:

Find
$message = preg_replace('~<a href="'.$internal.'([^"]*?)"([^>]*?)(?:target="_blank")~i'.($context['utf8'] ? 'u' : ''), '<a href="'. $internal2 .'$1"$2', $message);


add after:
$message = preg_replace('~<a href="'.$internal.'([^"]*?)"([^>]*?)(?:rel="nofollow")~i'.($context['utf8'] ? 'u' : ''), '<a href="'. $internal2 .'$1"$2', $message);
Title: Re: NoFollow All Links v1.0
Post by: TheFollower on January 16, 2010, 10:50:18 AM
Quote from: smldmr on January 06, 2010, 04:06:09 PM
with combinaton of the mod "INTERNAL LINKS USE SAME WINDOW v1.2" and this mod, it's simple to make only external links with rel="nofollow" Yo need to modify the internal links mod like this:

Find
$message = preg_replace('~<a href="'.$internal.'([^"]*?)"([^>]*?)(?:target="_blank")~i'.($context['utf8'] ? 'u' : ''), '<a href="'. $internal2 .'$1"$2', $message);


add after:
$message = preg_replace('~<a href="'.$internal.'([^"]*?)"([^>]*?)(?:rel="nofollow")~i'.($context['utf8'] ? 'u' : ''), '<a href="'. $internal2 .'$1"$2', $message);

Thank you, dude. This helped a lot. :) I was looking for a decision within 2 weeks or so...
Title: Re: NoFollow All Links v1.0
Post by: Astro1 on January 25, 2010, 11:17:47 PM
The above did not work for me in making my internal links do follow. What gives?

The way my page is set up, is it's a Wordpress blog with an SMF forum.  I'd like links to my own posts in wordpress and anything originating from my own domain to be do-follow where as anything pointing outside is no-follow?

Is this possible?  A mod like that is needed.
Title: Re: NoFollow All Links v1.0
Post by: Pudders on January 26, 2010, 07:27:43 AM
Thats exactly what i'm looking for.
The forum was set up to run alongside my normal business websites and although the links etc are great they are all no-follow.  If there was a way to make my links do-follow it would help with SE etc.
Title: Re: NoFollow All Links v1.0
Post by: GohighVoltage on February 17, 2010, 12:37:34 PM
I am not sure I understand,  This mod makes all links no-follow,  but what do you mean it does it to the internal links too?
Title: Re: NoFollow All Links v1.0
Post by: Paracelsus on March 11, 2010, 02:20:18 PM
Quote from: GohighVoltage on February 17, 2010, 12:37:34 PM
I am not sure I understand,  This mod makes all links no-follow,  but what do you mean it does it to the internal links too?

Yes. This MOD puts all links in the post area as "no follow", whether they are internal or external. The good part is... you can change this. This is how I did it:

1. Install the NoDoFollow Firefox extension to be able to distinguish the Nofollow from Dofollow links.

2. Install both this MOD and the Internal Links Use Same Window MOD:
http://custom.simplemachines.org/mods/index.php?mod=1255
http://custom.simplemachines.org/mods/index.php?mod=1236

Right now you should notice (with the help of that Firefox extension) that every single link in the post area (signature included) marks as red, which is nofollow, instead of previous blue.

3. The NoFollow MOD adds the rel="nofollow" in 4 places in Subs.php: I left the ones related to "url" and removed the ones related to "iurl" (since iurl is for internal links).

4. Since I don't need the functionality provided by the other MOD, ie, I'm indifferent to whether the internal links open or not in a new window so I simply went to Subs.php and edited the line
   $message = preg_replace('~<a href="'.$internal.'([^"]*?)"([^>]*?)(?:target="_blank")~i'.($context['utf8'] ? 'u' : ''), '<a href="'. $internal2 .'$1"$2', $message);
replacing the target="_blank" by rel="nofollow".

5. You should now notice that every external link continues red and every internal link (ex: hxxp://www.yourforum.com/index.php?topic=12345.0) will now have turned blue again, ie, dofollow.

That's it, hope it helps.




Btw,

Actually, I need an advanced tweak to be able to remove the nofollow from some links of one of my subdomains. Is there some sort of "inline" remove string or a way to add an exception to the code?
Title: Re: NoFollow All Links v1.0
Post by: hartiberlin on March 14, 2010, 10:00:44 AM
Does this mod work on
SMF 2.0RC3 and PortaMX 0.980 ?

Many thanks.
Title: Re: NoFollow All Links v1.0
Post by: More-to-life on March 16, 2010, 04:09:46 PM
Quote from: hartiberlin on March 14, 2010, 10:00:44 AM
Does this mod work on
SMF 2.0RC3 and PortaMX 0.980 ?

Many thanks.
Please does anyone know if this is RC3 compatible
Title: Re: NoFollow All Links v1.0
Post by: SA™ on March 17, 2010, 06:08:33 PM
yes it works for rc3 now i just updated it
Title: Re: NoFollow All Links v1.0
Post by: hartiberlin on March 19, 2010, 03:42:19 PM
Many thanks for updating to RC3.

Can it be set so, that internal links to Portal Pages from
PortaMX are still with follow status ?

So only posted links inside postings will be set to
No-Follow ?

Can one set in the Membergroups settings, that the
postings from the admin have links
with Follow status ?

Or how can the admin post important links,
that have Follow status ?

Many thanks.

Regards, Stefan.
Title: Re: NoFollow All Links v1.0
Post by: coolfx350 on March 22, 2010, 03:30:15 PM
Quote from: Paracelsus on March 11, 2010, 02:20:18 PM
Quote from: GohighVoltage on February 17, 2010, 12:37:34 PM
I am not sure I understand,  This mod makes all links no-follow,  but what do you mean it does it to the internal links too?

Yes. This MOD puts all links in the post area as "no follow", whether they are internal or external. The good part is... you can change this. This is how I did it:

1. Install the NoDoFollow Firefox extension to be able to distinguish the Nofollow from Dofollow links.

2. Install both this MOD and the Internal Links Use Same Window MOD:
http://custom.simplemachines.org/mods/index.php?mod=1255
http://custom.simplemachines.org/mods/index.php?mod=1236

Right now you should notice (with the help of that Firefox extension) that every single link in the post area (signature included) marks as red, which is nofollow, instead of previous blue.

3. The NoFollow MOD adds the rel="nofollow" in 4 places in Subs.php: I left the ones related to "url" and removed the ones related to "iurl" (since iurl is for internal links).

4. Since I don't need the functionality provided by the other MOD, ie, I'm indifferent to whether the internal links open or not in a new window so I simply went to Subs.php and edited the line
   $message = preg_replace('~<a href="'.$internal.'([^"]*?)"([^>]*?)(?:target="_blank")~i'.($context['utf8'] ? 'u' : ''), '<a href="'. $internal2 .'$1"$2', $message);
replacing the target="_blank" by rel="nofollow".

5. You should now notice that every external link continues red and every internal link (ex: hxxp://www.yourforum.com/index.php?topic=12345.0) will now have turned blue again, ie, dofollow.

That's it, hope it helps.




Btw,

Actually, I need an advanced tweak to be able to remove the nofollow from some links of one of my subdomains. Is there some sort of "inline" remove string or a way to add an exception to the code?

That's too complicated and too much work since I have multiple SMF sites.  I hope the OP resolve this issue soon we can all use this mod. thanks.
Title: Re: NoFollow All Links v1.0
Post by: GohighVoltage on March 22, 2010, 03:40:24 PM
Yes,  way too much work, and too much chance of screwing something up.  I am sure sleepy can fix at some point.  he is really good.
Title: Re: NoFollow All Links v1.0
Post by: Paracelsus on March 22, 2010, 03:52:01 PM
These extensions are two of the most simple ones made for SMF, adding just a few lines. That's why the hard part is to screw something up. :D
Title: Re: NoFollow All Links v1.0
Post by: hartiberlin on March 22, 2010, 04:05:07 PM
Hmm,
still no answers or ideas to my questions in my previous message ?

So only posted links inside postings will be set to
No-Follow with these tricks above ?

Can one set in the Membergroups settings, that the
postings from the admin have links
with Follow status ?

Or how can the admin post important links,
that have Follow status ?


What is the latest news about Google and the DO-Follow and
No-Follow informations...

I have in my overunity.com forum a Pagerank of 5.

So if users post their own Domain names in their postings,
do I give up on my Pagerank and will Google thus slap me ?

So would it really be better to encode all links to other sites as No-Follow ?

How can I more easily set  links to my other sites in the
blocks of PortaMX then as Do-Follow and
also could there be a membergroups setting, so one
could decide, which membergroup could be allowed to post Do-Follow
links in their postings ?

Please let me know your views about this, cause there is much confusion
right now about No-Follow and Do-Follow links.

Many thanks.

Regards, Stefan.
Title: Re: NoFollow All Links v1.0
Post by: Paracelsus on March 22, 2010, 04:37:59 PM
Quote from: hartiberlin on March 22, 2010, 04:05:07 PM
Hmm,
still no answers or ideas to my questions in my previous message ?

So only posted links inside postings will be set to
No-Follow with these tricks above ?

Can one set in the Membergroups settings, that the
postings from the admin have links
with Follow status ?

Or how can the admin post important links,
that have Follow status ?


What is the latest news about Google and the DO-Follow and
No-Follow informations...

I have in my overunity.com forum a Pagerank of 5.

So if users post their own Domain names in their postings,
do I give up on my Pagerank and will Google thus slap me ?

So would it really be better to encode all links to other sites as No-Follow ?

How can I more easily set  links to my other sites in the
blocks of PortaMX then as Do-Follow and
also could there be a membergroups setting, so one
could decide, which membergroup could be allowed to post Do-Follow
links in their postings ?

Please let me know your views about this, cause there is much confusion
right now about No-Follow and Do-Follow links.

Many thanks.

Regards, Stefan.


There isn't a straight answer, because the PageRank algorithm is more complex than what people think (and even with established definitions, experts still interpret it differently). If you want a nice (short) reading about PR: http://www.webworkshop.net/pagerank.html

As for the MOD, if you want to be sure which ones become nofollow and which do not just install the extension NoDoFollow for Firefox and it will highlight in realtime the links. I tried it and only the links where you use the "url" tag went nofollow, if you're and admin and want to post dofollow links just use HTML syntax: "<a href..." and so on, it works for me. The membergroup part isn't possible because there is no Admin panel for this MOD.
Title: Re: NoFollow All Links v1.0
Post by: Am' on March 25, 2010, 08:04:02 AM
nice

it's possible to add nofollow only in external links ?
Title: Re: NoFollow All Links v1.0
Post by: Paracelsus on March 25, 2010, 01:17:51 PM
Quote from: Am' on March 25, 2010, 08:04:02 AM
nice

it's possible to add nofollow only in external links ?

I've just described the procedure.
Title: Re: NoFollow All Links v1.0
Post by: hartiberlin on March 25, 2010, 01:41:49 PM
I just realized by loooking at a competitior´s website,
that it is really helpful to have many links to internal pages.
This website did NOT have many outside links linking to him,
but he himself has about 40.000 pages linked internally from
his own pages to other of his own pages..

So is there any Mod that also generates links on the fly via keywords to internal
pages with Dofollow ?

( Sorry, a little bit offtopic, but it is important to get to Google page 1 ! )
Title: Re: NoFollow All Links v1.0
Post by: Paracelsus on March 25, 2010, 05:56:45 PM
Quote from: hartiberlin on March 25, 2010, 01:41:49 PM
I just realized by loooking at a competitior´s website,
that it is really helpful to have many links to internal pages.
This website did NOT have many outside links linking to him,
but he himself has about 40.000 pages linked internally from
his own pages to other of his own pages..

So is there any Mod that also generates links on the fly via keywords to internal
pages with Dofollow ?

( Sorry, a little bit offtopic, but it is important to get to Google page 1 ! )

I think that strategy makes Google put your site on their "blacklist" because it's sort of trying to cheat the system. As I said before, trying to resume the PageRank algorithm to having lots of internal links and few external links is a distorted oversimplification. Read the link I put back there and try to understand what it is written there. If you have a lot of patience and want to really go deep on this you can read this page (they have some very good references at the end with very advanced explanations): http://www.seocompany.ca/pagerank/page-rank-explained.html

Simply put, there isn't an instantaneous method to get to Google page 1 (it would be stupid if that method existed, it would mean a total flaw in PR which doesn't seem to be the case as Google is the most successful web search application to date), what you can do is to have a certain active strategy over time that in the long term might benefit your site's PR.
Title: Re: NoFollow All Links v1.0
Post by: hartiberlin on March 25, 2010, 06:53:41 PM
Anyway, so is there any linking Mod,
that enables internal links, when it finds internal pages that
are defined in a keyword file ?
Title: Re: NoFollow All Links v1.0
Post by: Am' on March 26, 2010, 06:05:41 AM
Quote from: Paracelsus on March 25, 2010, 01:17:51 PM
Quote from: Am' on March 25, 2010, 08:04:02 AM
nice

it's possible to add nofollow only in external links ?

I've just described the procedure.

it's not a solution ^^

so, i coded this for users who want to add nofollow for external links only :

in Subs.php, search :

// Cleanup whitespace.
$message = strtr($message, array('  ' => ' &nbsp;', "\r" => '', "\n" => '<br />', '<br /> ' => '<br />&nbsp;', '&#13;' => "\n"));


After add :

// Add rel="nofollow" for external links
$name = parse_url($scripturl);
$message = str_replace('<a href="', '<a rel="nofollow" href="', $message);
$message = str_replace('<a rel="nofollow" href="http://'.$name['host'].'', '<a href="http://'.$name['host'].'', $message);
$message = str_replace('<a rel="nofollow" href="http://www.'.$name['host'].'', '<a href="http://www.'.$name['host'].'', $message);


adding nofollow for any external link in message, signature, news ....

for adding nofollow only to external links in message

in Display.php, search :

// Run BBC interpreter on the message.
$message['body'] = parse_bbc($message['body'], $message['smileys_enabled'], $message['id_msg']);


After add :

// Add rel="nofollow" for external links
$name = parse_url($scripturl);
$message['body'] = str_replace('<a href="', '<a rel="nofollow" href="', $message['body']);
$message['body'] = str_replace('<a rel="nofollow" href="http://'.$name['host'].'', '<a href="http://'.$name['host'].'', $message['body']);
$message['body'] = str_replace('<a rel="nofollow" href="http://www.'.$name['host'].'', '<a href="http://www.'.$name['host'].'', $message['body']);


but before uninstall "NoFollow All Links v1.0"  ;)
Title: Re: NoFollow All Links v1.0
Post by: !RFAN on May 17, 2010, 08:03:58 AM
is this^^ working??
Title: Re: NoFollow All Links v1.0
Post by: rajeshn on May 20, 2010, 09:55:58 PM
Hi,
I just installed this mod (forums dot masterandstudent dot com ). No errors. But when I used Firefox no do follow plugin , the links are do follow?
Can you tell me what could be the problem?
Thanks
Title: Re: NoFollow All Links v1.0
Post by: rajeshn on May 21, 2010, 07:46:58 AM
Quote from: rajeshn on May 20, 2010, 09:55:58 PM
Hi,
I just installed this mod (forums dot masterandstudent dot com ). No errors. But when I used Firefox no do follow plugin , the links are do follow?
Can you tell me what could be the problem?
Thanks
Adding to the above query,
I am using smf 1.1.1.1 headline theme.

Thanks.

Title: Re: NoFollow All Links v1.0
Post by: Nibogo on July 05, 2010, 07:43:55 PM
Mod taked over by me, thanks to Sleepy Arcade for allow it!
Title: Re: NoFollow All Links v1.0
Post by: Idiotji on September 16, 2010, 05:04:40 PM
I have just install no follow link mod,but in the post i am not seeing no follow tag,will i have to activate this option??
Title: Re: NoFollow All Links v1.0
Post by: Nibogo on September 16, 2010, 06:51:52 PM
Quote from: Idiotji on September 16, 2010, 05:04:40 PM
I have just install no follow link mod,but in the post i am not seeing no follow tag,will i have to activate this option??

No, code isn't inserted, try re-installing manually
Title: Re: NoFollow All Links v1.0
Post by: Idiotji on September 17, 2010, 01:48:13 AM
Quote from: Nibogo on September 16, 2010, 06:51:52 PM
Quote from: Idiotji on September 16, 2010, 05:04:40 PM
I have just install no follow link mod,but in the post i am not seeing no follow tag,will i have to activate this option??

No, code isn't inserted, try re-installing manually

I installed it again and when i open source/sbs.php, i found these codes.
I found 4 nofollow tags in this php file.I m posting these codes and plz tell me wots going wrong.
what should i edit.

Quotearray(
            'tag' => 'iurl',
            'type' => 'unparsed_content',
            'content' => '<a href="$1" rel="nofollow" class="bbc_link">$1</a>',
            'validate' => create_function('&$tag, &$data, $disabled', '
               $data = strtr($data, array(\'<br />\' => \'\'));
               if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
                  $data = \'http://\' . $data;
            '),
         ),
         array(
            'tag' => 'iurl',
            'type' => 'unparsed_equals',
            'before' => '<a href="$1" rel="nofollow" class="bbc_link">',
            'after' => '</a>',
            'validate' => create_function('&$tag, &$data, $disabled', '
               if (substr($data, 0, 1) == \'#\')
                  $data = \'#post_\' . substr($data, 1);
               elseif (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
                  $data = \'http://\' . $data;
            '),

array(
            'tag' => 'url',
            'type' => 'unparsed_content',
            'content' => '<a href="$1" rel="nofollow" class="bbc_link new_win" target="_blank">$1</a>',
            'validate' => create_function('&$tag, &$data, $disabled', '
               $data = strtr($data, array(\'<br />\' => \'\'));
               if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
                  $data = \'http://\' . $data;
            '),
         ),
         array(
            'tag' => 'url',
            'type' => 'unparsed_equals',
            'before' => '<a href="$1" rel="nofollow" class="bbc_link new_win" target="_blank">',
            'after' => '</a>',
            'validate' => create_function('&$tag, &$data, $disabled', '
               if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
                  $data = \'http://\' . $data;
            '),

Title: Re: NoFollow All Links v1.0
Post by: Idiotji on September 17, 2010, 09:58:41 AM
Hmmmm plz someone help me about this tag....why am i not seeing that no follow tag
Title: Re: NoFollow All Links v1.0
Post by: Oya on September 17, 2010, 08:49:03 PM
it doesnt put [nofollow] after the links it just quietly sets it to nofollow

if u want teh mod used here that does that its called anti spam links
Title: Re: NoFollow All Links v1.0
Post by: hartiberlin on November 16, 2010, 01:58:10 PM
Please can we have an upgrade to RC4 ?

Many thanks.

Regards, Stefan.
Title: Re: NoFollow All Links v1.0
Post by: MaXiForum.cz on November 17, 2010, 02:08:50 AM
It works on RC4 :-)
Title: Re: NoFollow All Links v1.0
Post by: unformatted_ on December 19, 2010, 07:22:21 AM
Hi!

My page rank drop from 3 to 2 since I installed this mode and this other: Tynt-SMF Tracer Mod, redirect page.
I uninstalled this mod to see if is afecting my PR. Is that possible?
Title: Re: NoFollow All Links v1.0
Post by: unformatted_ on January 25, 2011, 06:22:19 AM
Hi!

My page rank is now again with 3. I've installed again this plugin to see if there are any change.
I subscribed for seomoz pro account, and have lots of sugestion to solve. The most comon is:

Too Many On-Page Links
You should avoid having too many (roughly defined as more than 100) hyperlinks on any given page. When search engine spiders crawl the Internet they are limited by technology resources and are only able to crawl a certain number of links per webpage. In addition, search engine algorithms divide the value of some popularity metrics by the amount of links on a given page. This means that each of the pages being linked to from a given page are also affected by the number of links on the linking page. For these reasons, we recommend you include less than 100 links per page to ensure that they are all crawled, though if your pages have a high page authority, search engines will usually follow more links.


My home page has 398 links, and should not have more than 100. The mod No Follow Links solve this problem?
Title: Re: NoFollow All Links v1.0
Post by: Nibogo on January 25, 2011, 10:20:22 AM
No, this only affects posted links.
Title: Re: NoFollow All Links v1.0
Post by: king999 on February 18, 2011, 02:31:01 AM
Nofollow is not available for rc5 can any one help me.
Title: Re: NoFollow All Links v1.0
Post by: Nibogo on June 29, 2011, 07:55:30 PM
Mod updated for SMF 2.0
Title: Re: NoFollow All Links v1.0
Post by: Kenny01 on June 30, 2011, 08:39:44 AM
Quote from: rumfa on June 05, 2008, 11:50:29 PM
View the page source and you will see a nofollow code. It's just ok.
Hi,
added the mod manually and it's fine,
i have look at the page souce code but can't find "nofollow"

can someone show me where to look.

Thanks.
Title: Re: NoFollow All Links v1.0
Post by: thenexttrillions on September 29, 2011, 01:17:25 AM
Quote from: Nibogo on July 05, 2010, 07:43:55 PM
Mod taked over by me, thanks to Sleepy Arcade for allow it!

I can't thank you enough. Excellent mod!
I have installed the mod from the second link on the first post.
I checked with Firefox adds-on "nodofollow", and links are red plus it auto open in new windows which I didn't have to edit any techie troublesome.

Just apply few steps and you are good to go.
Title: Re: NoFollow All Links v1.0
Post by: James-- on November 01, 2011, 08:37:13 PM
Quote from: Gnu on January 09, 2009, 02:12:47 PM
one more thing...is there a workaround so i can set links as follow as administrator? because i want to have some follow links

Yes, is there some way to dofollow some links on the forum? For example, if members are seriously adding value to the discussion, we want to follow their signature links and let it flow pagerank. Some way?
Title: Re: NoFollow All Links v1.0
Post by: GlitchPC on November 24, 2011, 06:32:22 AM
The trick with SEO, here, is to keep the search engines on your site...not somewhere else.  Granted...this is what we all strive to do as webmasters...right?

Now...if you're to incorporate this mod it should not interfere with internal links, whatsoever.

I guess my question is...

Has this mod been updated with a fix for that...or not?  Also...is it being ported to SMF 2.0.1?
Title: Re: NoFollow All Links v1.0
Post by: Nibogo on November 26, 2011, 11:55:01 AM
No, that's done, and a lot of other things, only by my SMFPacks SEO Pro Mod (http://www.smfpacks.com/seomod)
Title: Re: NoFollow All Links v1.0
Post by: simon36 on April 25, 2012, 07:53:40 PM
I know this is an old topic but I have installed the mod and it does mark some internal links as no follow.

Is there an update to this mod?

Thanks in advance.
Title: Re: NoFollow All Links v1.0
Post by: Nibogo on April 25, 2012, 09:16:49 PM
Sorry but now all efforts has been pushed to a full seo solution for SMF:

http://www.smfpacks.com/page/sa=seo
Title: Re: NoFollow All Links v1.0
Post by: maksim on December 30, 2013, 10:08:08 PM
Quote from: Am' on March 26, 2010, 06:05:41 AM
Quote from: Paracelsus on March 25, 2010, 01:17:51 PM
Quote from: Am' on March 25, 2010, 08:04:02 AM
nice

it's possible to add nofollow only in external links ?

I've just described the procedure.

it's not a solution ^^

so, i coded this for users who want to add nofollow for external links only :

in Subs.php, search :

// Cleanup whitespace.
$message = strtr($message, array('  ' => ' &nbsp;', "\r" => '', "\n" => '<br />', '<br /> ' => '<br />&nbsp;', '&#13;' => "\n"));


After add :

// Add rel="nofollow" for external links
$name = parse_url($scripturl);
$message = str_replace('<a href="', '<a rel="nofollow" href="', $message);
$message = str_replace('<a rel="nofollow" href="http://'.$name['host'].'', '<a href="http://'.$name['host'].'', $message);
$message = str_replace('<a rel="nofollow" href="http://www.'.$name['host'].'', '<a href="http://www.'.$name['host'].'', $message);


adding nofollow for any external link in message, signature, news ....

for adding nofollow only to external links in message

in Display.php, search :

// Run BBC interpreter on the message.
$message['body'] = parse_bbc($message['body'], $message['smileys_enabled'], $message['id_msg']);


After add :

// Add rel="nofollow" for external links
$name = parse_url($scripturl);
$message['body'] = str_replace('<a href="', '<a rel="nofollow" href="', $message['body']);
$message['body'] = str_replace('<a rel="nofollow" href="http://'.$name['host'].'', '<a href="http://'.$name['host'].'', $message['body']);
$message['body'] = str_replace('<a rel="nofollow" href="http://www.'.$name['host'].'', '<a href="http://www.'.$name['host'].'', $message['body']);


but before uninstall "NoFollow All Links v1.0"  ;)

Hello! Thank you very much for sharing this code. This works for me ideally.
I import rss feed to my forum and it has external links. I used your code and the external links became nofollow. I do know why, but with the mod NoFollow All Links v1.0, the external links in imported rss feed did not become nofollow. But your code helped to solve this problem. Thank you very much.
Title: Re: NoFollow All Links v1.0
Post by: desai_amogh on April 09, 2014, 05:00:11 AM
Can you upgrade this for 2.0.7 ??

Also is it possible to Dofollow specified domains  (say through an admin panel page) and nofollow rest ??
Title: Re: NoFollow All Links v1.0
Post by: ForumTester1393 on November 23, 2016, 11:37:10 AM
Quote from: desai_amogh on April 09, 2014, 05:00:11 AM
Can you upgrade this for 2.0.7 ??

Also is it possible to Dofollow specified domains  (say through an admin panel page) and nofollow rest ??

Anyone?
Title: Re: NoFollow All Links v1.0
Post by: Nibogo on November 23, 2016, 11:43:35 AM
Quote from: ForumTester1393 on November 23, 2016, 11:37:10 AM
Quote from: desai_amogh on April 09, 2014, 05:00:11 AM
Can you upgrade this for 2.0.7 ??

Also is it possible to Dofollow specified domains  (say through an admin panel page) and nofollow rest ??

Anyone?

It should work fine on 2.0.7, just use version emulate to install it.
Title: Nofollow All links mod still working after Uninstalling
Post by: nadeem34 on May 29, 2018, 08:20:49 AM
I have uninstalled the mod Nofollow all links and deleted it from the browse packages area but after some days i noticed that still my all external links are showing nofollow please if anyone can help what should I do?
Title: Re: NoFollow All Links v1.0
Post by: brettuk on July 24, 2018, 07:11:29 AM
Great stuff, I am looking to install this.

Quick question, is there any way to overwrite the rel=nofollow for specific links?
Title: Re: NoFollow All Links v1.0
Post by: Nibogo on September 13, 2018, 11:06:21 PM
Quote from: brettuk on July 24, 2018, 07:11:29 AM
Great stuff, I am looking to install this.

Quick question, is there any way to overwrite the rel=nofollow for specific links?

Not with this mod brettuk! All links are equally converted.