MyBB Community Forums

Full Version: Rel="nofollow" all the external links... [Code Modifications]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
this is not working with 1.6.11
This is not working on 1.6.12, and it's a shame because I am not finding any updated solutions for 1.6.12.

We need something simple: nofollow ALL external links and leave internal links as followed.

Anybody?

EDIT: simply updated the MyCode rules from the OP perhaps?
why not

<meta name="robots" content="index, me nofollow">

on headrinclude?

http://bf4brasil.com.br/topico-mybb-o-qu...talar.html
(2014-01-20, 02:49 PM)dthiago Wrote: [ -> ]why not

<meta name="robots" content="index, me nofollow">

on headrinclude?

http://bf4brasil.com.br/topico-mybb-o-qu...talar.html

That would be SEO suicide. You are nofollowing all links on all forum pages.

What many of us want, and for which there is no updated solution as of January 2014 for 1.6.12, is to simply make ALL external links in the postbit and signature "nofollow" while the rest of links in the forum remain as regular followed links. There used to be good solutions but they are all redundant now and, in some cases, break the URLS as the nofollowexternal plugin has done on my site (and it's from 2012, the newest solution, go figure).
(2014-01-20, 03:29 PM)Ados Wrote: [ -> ]That would be SEO suicide. You are nofollowing all links on all forum pages.

What many of us want, and for which there is no updated solution as of January 2014 for 1.6.12, is to simply make ALL external links in the postbit and signature "nofollow" while the rest of links in the forum remain as regular followed links. There used to be good solutions but they are all redundant now and, in some cases, break the URLS as the nofollowexternal plugin has done on my site (and it's from 2012, the newest solution, go figure).

<a href="//portal.bf4brasil.com.br" rel="follow" "target="_blank" alt="Portal BF4BRASIL" title="Portal BF4BRASIL" /><span>PORTAL</span></a>

<a href="http://mods.mybb.com/uploads/previews/7331-1281768266-index_top.jpg" rel="me nofollow" class="highslide" onclick="return hs.expand(this)"><img style="max-width:700px;" src="http://mods.mybb.com/uploads/previews/7331-1281768266-index_top.jpg" alt="BF4BRASIL - Imagem de Post" title="BF4BRASIL - Imagem de Post" /></a>

Observe the difference?
my domain with follow and external domains with ME nofollow
(2014-01-20, 03:29 PM)Ados Wrote: [ -> ]
(2014-01-20, 02:49 PM)dthiago Wrote: [ -> ]why not

<meta name="robots" content="index, me nofollow">

on headrinclude?

http://bf4brasil.com.br/topico-mybb-o-qu...talar.html

That would be SEO suicide. You are nofollowing all links on all forum pages.

What many of us want, and for which there is no updated solution as of January 2014 for 1.6.12, is to simply make ALL external links in the postbit and signature "nofollow" while the rest of links in the forum remain as regular followed links. There used to be good solutions but they are all redundant now and, in some cases, break the URLS as the nofollowexternal plugin has done on my site (and it's from 2012, the newest solution, go figure).
http://mods.mybb.com/view/nofollowexternal - This works fine for me. What problems are you having?

Btw, thanks for the update. I didn't knew this was not working!
(2014-01-20, 04:10 PM)dthiago Wrote: [ -> ]
(2014-01-20, 03:29 PM)Ados Wrote: [ -> ]That would be SEO suicide. You are nofollowing all links on all forum pages.

What many of us want, and for which there is no updated solution as of January 2014 for 1.6.12, is to simply make ALL external links in the postbit and signature "nofollow" while the rest of links in the forum remain as regular followed links. There used to be good solutions but they are all redundant now and, in some cases, break the URLS as the nofollowexternal plugin has done on my site (and it's from 2012, the newest solution, go figure).

<a href="//portal.bf4brasil.com.br" rel="follow" "target="_blank" alt="Portal BF4BRASIL" title="Portal BF4BRASIL" /><span>PORTAL</span></a>

<a href="http://mods.mybb.com/uploads/previews/7331-1281768266-index_top.jpg" rel="me nofollow" class="highslide" onclick="return hs.expand(this)"><img style="max-width:700px;" src="http://mods.mybb.com/uploads/previews/7331-1281768266-index_top.jpg" alt="BF4BRASIL - Imagem de Post" title="BF4BRASIL - Imagem de Post" /></a>

Observe the difference?
my domain with follow and external domains with ME nofollow

I don't know what you are trying to say.

Why would you use "me" anyway for all your links as default (i.e. on the header), what if a forum member posts a link to Amazon, are you also going to claim the linked Amazon page is yours?. Not only that, but you still have the nofollow tag which means all links are being nofollowed.


(2014-01-20, 04:25 PM)crazy4cs Wrote: [ -> ]
(2014-01-20, 03:29 PM)Ados Wrote: [ -> ]
(2014-01-20, 02:49 PM)dthiago Wrote: [ -> ]why not

<meta name="robots" content="index, me nofollow">

on headrinclude?

http://bf4brasil.com.br/topico-mybb-o-qu...talar.html

That would be SEO suicide. You are nofollowing all links on all forum pages.

What many of us want, and for which there is no updated solution as of January 2014 for 1.6.12, is to simply make ALL external links in the postbit and signature "nofollow" while the rest of links in the forum remain as regular followed links. There used to be good solutions but they are all redundant now and, in some cases, break the URLS as the nofollowexternal plugin has done on my site (and it's from 2012, the newest solution, go figure).
http://mods.mybb.com/view/nofollowexternal - This works fine for me. What problems are you having?

Btw, thanks for the update. I didn't knew this was not working!

It was deleting the external links in the signature.
(2014-01-20, 05:38 PM)Ados Wrote: [ -> ]
(2014-01-20, 04:10 PM)dthiago Wrote: [ -> ]
(2014-01-20, 03:29 PM)Ados Wrote: [ -> ]That would be SEO suicide. You are nofollowing all links on all forum pages.

What many of us want, and for which there is no updated solution as of January 2014 for 1.6.12, is to simply make ALL external links in the postbit and signature "nofollow" while the rest of links in the forum remain as regular followed links. There used to be good solutions but they are all redundant now and, in some cases, break the URLS as the nofollowexternal plugin has done on my site (and it's from 2012, the newest solution, go figure).

<a href="//portal.bf4brasil.com.br" rel="follow" "target="_blank" alt="Portal BF4BRASIL" title="Portal BF4BRASIL" /><span>PORTAL</span></a>

<a href="http://mods.mybb.com/uploads/previews/7331-1281768266-index_top.jpg" rel="me nofollow" class="highslide" onclick="return hs.expand(this)"><img style="max-width:700px;" src="http://mods.mybb.com/uploads/previews/7331-1281768266-index_top.jpg" alt="BF4BRASIL - Imagem de Post" title="BF4BRASIL - Imagem de Post" /></a>

Observe the difference?
my domain with follow and external domains with ME nofollow

I don't know what you are trying to say.

Why would you use "me" anyway for all your links as default (i.e. on the header), what if a forum member posts a link to Amazon, are you also going to claim the linked Amazon page is yours?. Not only that, but you still have the nofollow tag which means all links are being nofollowed.


(2014-01-20, 04:25 PM)crazy4cs Wrote: [ -> ]
(2014-01-20, 03:29 PM)Ados Wrote: [ -> ]
(2014-01-20, 02:49 PM)dthiago Wrote: [ -> ]why not

<meta name="robots" content="index, me nofollow">

on headrinclude?

http://bf4brasil.com.br/topico-mybb-o-qu...talar.html

That would be SEO suicide. You are nofollowing all links on all forum pages.

What many of us want, and for which there is no updated solution as of January 2014 for 1.6.12, is to simply make ALL external links in the postbit and signature "nofollow" while the rest of links in the forum remain as regular followed links. There used to be good solutions but they are all redundant now and, in some cases, break the URLS as the nofollowexternal plugin has done on my site (and it's from 2012, the newest solution, go figure).
http://mods.mybb.com/view/nofollowexternal - This works fine for me. What problems are you having?

Btw, thanks for the update. I didn't knew this was not working!

It was deleting the external links in the signature.
It's fine for me? Tested with bit.ly on both - sig preview as well as on postbit.
(2014-01-20, 07:06 PM)crazy4cs Wrote: [ -> ]It's fine for me? Tested with bit.ly on both - sig preview as well as on postbit.

For some reason, it kept deleting the external links in signatures in my forum, and I have a very basic set up and a somewhat fresh 1.6.12 install. Thanks for replying though Smile

I decided to stop using plugins and tried to hack the code. I actually managed to get external links to be tagged nofollow and internal links to remain followed (in postbit/sig); I posted the method in this thread:

http://community.mybb.com/thread-150185.html

You do in fact have to create a very basic plugin to undo the global nofollow in the class_parser.php, but the plugin is a couple of lines of codes and the original code was posted in 2013 so it works nicely. Hope that helps anyone struggling to find a solution for int./ext. links!
Hi all, I use 1.6.11 and the solution works. You may have made a mistake in writing the mycode, or failed to input the parse order.

Ensure that when you create the nofollow mycode, you set parse order (eg) 1 while the follow mycode should be parse order 2 or higher.

If you don't set the order, the code will be parsed together or without order this (I think) confuses the $ variables... Just my two pence, I don't really know.

I also stripped down the follow mycode because my links were getting broken. This is my final mycode:
Quote:<a href="http://saykenya.com(.*?)" rel="nofollow"
and Replacement:
Quote:<a href="http://saykenya.com$1"
Pages: 1 2 3