News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

NoFollow All Links v1.0

Started by Nibogo, June 02, 2008, 09:16:58 PM

Previous topic - Next topic

Nibogo


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





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

Apllicmz




Filipina

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 :) 

rumfa

View the page source and you will see a nofollow code. It's just ok.

Filipina

ah, I see that now thank you source code shows no follow.. thanks for explaining it :)

ALEJO

And why do i need this? Its better for the search engines or something?
If someone can explain :) thanks.
solo el mas paranoico sobrevive

rumfa

You will get a very high google rank, and PR at the end.

spiros

#7
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?

malcomxar

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?

SA™

you would have to add the code manualy
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

AlphaHot1

Great mod, but even if the all "nofollow" issue is controversial, it should be deactivated by default for internal links, IMO.

karlbenson

This one affects bbcoded links. Not other internal links.
Also bbcoded internal links would be nofollowed.

AlphaHot1

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?

baijianpeng

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.
JoomlaGate: The way to the World of Joomla!

http://www.joomlagate.com

xjessie007

#14
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
When traveling to the Schengen zone (most of Europe), remember that some nationals need so called Schengen visa. Schengen visa is a travel document.
Check the schengen visa travel guide

baijianpeng

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?
JoomlaGate: The way to the World of Joomla!

http://www.joomlagate.com

xjessie007

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
When traveling to the Schengen zone (most of Europe), remember that some nationals need so called Schengen visa. Schengen visa is a travel document.
Check the schengen visa travel guide

baijianpeng

Did the author solved the No Following on Internal Links problem?
JoomlaGate: The way to the World of Joomla!

http://www.joomlagate.com

SA™

no not yet havent had much time to have a look at it
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Gnu

one more thing...is there a workaround so i can set links as follow as administrator? because i want to have some follow links

Advertisement: