Link diabler!

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

Moderator: Moderators

Link diabler!

Postby Cool Dude » Tue Feb 13, 2007 11:05 pm

Every time i type an url:

http://www.phpbb.com

it bbcodes itself to [url] ....

can i disable it.....

and yes i tried the method specified in the other topics.....
Cool Dude
 
Posts: 3
Joined: Tue Feb 13, 2007 10:36 pm

Advertisement

Re: Link diabler!

Postby HB » Wed Feb 14, 2007 2:02 am

Cool Dude wrote:can i disable it.....

Not sure what other topics you refer to, but make_clickable in bbcode.php handles adding the implicit links (like this www.example.com link). If you don't want implicit links, modify that routine. Note it is called in several places, e.g., viewtopic.php (message body and signature), search.php, etc.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1519
Joined: Mon Oct 16, 2006 2:25 am

Postby dcz » Wed Feb 14, 2007 11:36 am

exactly.

To fully disable the auto link feature, you can open includes/bbcode.php and find :
Code: Select all
function make_clickable($text)
{


And add after :
Code: Select all
   return $text;

This topic gives more clues about it ;)

++
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: 21407
Joined: Fri Apr 28, 2006 9:03 pm

Postby Cool Dude » Wed Feb 14, 2007 11:55 pm

eeerrmmmm.....did not work ......

But this worked...

Find in viewtopic.php:
Code: Select all

$message = make_clickable($message);

Replace with:
Code: Select all
// $message = make_clickable($message);
Cool Dude
 
Posts: 3
Joined: Tue Feb 13, 2007 10:36 pm


Return to phpBB2 Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest