| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
coyote phpBB SEO Team

Joined: 11 May 2007 Posts: 72
|
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.
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.
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 |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15125
|
|
| Back to top |
|
 |
spy
Joined: 07 Mar 2007 Posts: 38
|
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 |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |