Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Debbie2 - maaliskuu 09, 2006, 02:04:13 AP

Otsikko: Displaying forum posts on my website's frontpage
Kirjoitti: Debbie2 - maaliskuu 09, 2006, 02:04:13 AP
When displaying forum posts on my website's frontpage, how can I make it so that http:// URLs get automatically hyperlinked? I have this:

define('SMF', 1);
$modSettings['enableBBC'] = 1;
include('forums/Sources/Subs.php');
...
$body = doUBBC($row['body']);

It handles bbcode tags properly, but it doesn't hyperlink http:// URLs.
Otsikko: Re: Displaying forum posts on my website's frontpage
Kirjoitti: RyanJones - maaliskuu 11, 2006, 08:29:25 AP
Try adding this:

$modSettings['autoLinkUrls'] = 1;


Cheers,

Ryan Jones
Otsikko: Re: Displaying forum posts on my website's frontpage
Kirjoitti: H - maaliskuu 11, 2006, 08:30:46 AP
Maybe the parsebb (or parsebbc cant remember the exact name) will work