phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
how can i disable the links in text body ?
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
::  
Author Message
coyote
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2007
Posts: 72

how can i disable the links in text body ?Posted: Tue Oct 30, 2007 2:34 pm    Post subject: Re: how can i disable the links in text body ?

dcz wrote:
I'll compile this into a mod when we'll have all the feature we want.


To add nofollow tag for the links posted without bbcode :

like this http://www.phpbb-seo.com/boards/

Open :

Code:
includes/bbcode.php


Find :

Code:
   $ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);

Replace with :
Code:
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   $ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"\\2\" rel=\"nofollow\" target=\"_blank\">\\2</a>", $ret);
   // www.phpBB-SEO.com SEO TOOLKIT END


But this would concern all links, I'll see how to only add the nofollow tag to external links only.

++


Hey, here's an oldie but goodie. Smile

I just figured out how to do this yesterday, and here you guys have figured it out already long ago. I thought I was so clever. Laughing

So, how important are internal links, anyway? This wouldn't affect topic titles on viewforum or anything, would it? If all your internal pages have links to them in the menu, that should be enough, right?
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15125

how can i disable the links in text body ?Posted: Sat Nov 03, 2007 11:33 am    Post subject: Re: how can i disable the links in text body ?

dcz wrote:
This can be good as well : deter comment spam mod, which adds :
Code:
rel="nofollow"

and is configurable to strip the tag for selected domains.

++


Internal linking is very important. They help bots to find content and to determine which pages are more important in comparison with others in the site.

You best articles should be the most linked to show up well placed in the SERPs.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
spy



Joined: 07 Mar 2007
Posts: 38

how can i disable the links in text body ?Posted: Fri Nov 16, 2007 1:49 pm    Post subject: Re: how can i disable the links in text body ?

thank you , I needed that
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
Page 3 of 3 Goto page Previous  1, 2, 3

Navigation Similar Topics

Jump to: