how can i disable the links in text body ?

Discussions about the phpBB2 Forum. How to get the best from this powerful script.

Moderator: Moderators

Postby dcz » Tue Dec 12, 2006 3:19 pm

Oh yes, in the same file, you need as well to find :
Code: Select all
   $ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);


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


;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Advertisement

Postby dcz » Mon Jan 22, 2007 5:58 pm

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

and is configurable to strip the tag for selected domains.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby AmirAbbas » Tue Jan 30, 2007 8:05 am

oops ! :shock:

this one is very useful. thanks :wink:
User avatar
AmirAbbas
phpBB SEO Team
phpBB SEO Team
 
Posts: 534
Joined: Thu May 11, 2006 3:30 pm
Location: IRAN

Postby emielvenlo » Wed Sep 12, 2007 1:05 pm

I really like this discussion. Because when you look @ the vbseo mod* you will see really a lot of the internal and external links are nofollow. They allsow use the nofollow so that the search engine does not spider some parts of the forum, like users, faq and that kind of stuf. I have heard it is a better way than using robots.txt.

* A mod for vbulletin with pretty urls and other seo optimizations.
User avatar
emielvenlo
PR0
PR0
 
Posts: 82
Joined: Sun Jan 21, 2007 10:01 am

Postby dcz » Thu Sep 13, 2007 8:26 am

Yahoo does not really take the nofollow tag into account, but does follow the robots.txt disallows.

I'm not 100% found of the nofollow tag, it can be handy, but the Internet would be a bit "sad" if no one would share a bit of his PageRank.
It's pretty normal to post link to pages we like, and this is the exact meaning of PageRank : try to find out what page are appreciated the most by real users.

So yes, it can really help out to fight against spam, but again, we cannot really treat everyone as a spammer, that would be going a bit too far IMHO.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby emielvenlo » Thu Sep 13, 2007 8:30 am

dcz wrote:So yes, it can really help out to fight against spam, but again, we cannot really treat everyone as a spammer, that would be going a bit too far IMHO.

++


I agree, but in vbseo it is allso used for letting the bots not go to unimportand pages like we put in the robots.txt. And someone said to me that with a nofollow tag is better than robots.txt, but maybe its better to use both.
User avatar
emielvenlo
PR0
PR0
 
Posts: 82
Joined: Sun Jan 21, 2007 10:01 am

Postby dcz » Thu Sep 13, 2007 9:09 am

dcz wrote:Yahoo does not really take the nofollow tag into account, but does follow the robots.txt disallows.


The robots.txt is enough, but you can add nofollow as well on useless pages link among your site.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby ultimatehandyman » Thu Sep 13, 2007 3:56 pm

I just added the first mod that makes the links non clickable and it works a treat.

Thanks dcz :wink:
ultimatehandyman
PR2
PR2
 
Posts: 250
Joined: Thu Mar 15, 2007 12:55 am

Postby ultimatehandyman » Mon Sep 17, 2007 4:19 pm

ultimatehandyman wrote:I just added the first mod that makes the links non clickable and it works a treat.

Thanks dcz :wink:


It worked on the first day, but a guy has just been in my forum and posted a live link with only one post :?
ultimatehandyman
PR2
PR2
 
Posts: 250
Joined: Thu Mar 15, 2007 12:55 am

Postby dcz » Tue Sep 18, 2007 11:14 am

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

and is configurable to strip the tag for selected domains.

++


This mod will add the nofollow tag on bbcode links.

It's not that easy to disable bbcode links based on user posts.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby ultimatehandyman » Tue Sep 18, 2007 11:17 am

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

and is configurable to strip the tag for selected domains.

++


This mod will add the nofollow tag on bbcode links.

It's not that easy to disable bbcode links based on user posts.

++


I already have that installed as you recommended it before :wink:

Thanks :wink:
ultimatehandyman
PR2
PR2
 
Posts: 250
Joined: Thu Mar 15, 2007 12:55 am

Postby dcz » Tue Sep 18, 2007 12:07 pm

So the active link you mentioned must have had the no-follow tag or ?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby ultimatehandyman » Tue Sep 18, 2007 2:54 pm

dcz wrote:So the active link you mentioned must have had the no-follow tag or ?


Yes it had the no-follow tag, but when I originally changed the code at the start of this thread any links posted by new people were not clickable and so you had to copy and paste the url into the address bar. Then for some reason they were clickable- perhaps the poster added the url tags to it manually.
ultimatehandyman
PR2
PR2
 
Posts: 250
Joined: Thu Mar 15, 2007 12:55 am

Postby dcz » Thu Sep 20, 2007 8:10 am

That's just the difference between raw url and url posted using bbcodes.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby loveseo » Wed Oct 24, 2007 10:05 pm

i hope MR dcz or MR Seo make mod to allow us put som links to white list
loveseo
PR0
PR0
 
Posts: 73
Joined: Wed Aug 29, 2007 8:14 am
Location: Egypt

PreviousNext

Return to phpBB2 Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests