1 (edited by Kiri11 2008-05-09 12:14)

Topic: How to make url <dchub://...> clickable?

Sorry for my English. How can I make urls like <dchub://....> clickable? I didn't find any answer on forum. Thank's.

2 (edited by Kiri11 2008-05-09 13:18)

Re: How to make url <dchub://...> clickable?

Yes, I found how to do this, just in /include/parser.php edit one line like this

$text = preg_replace('#([\s\(\)])(https?|ftp|news|dchub|file){1}://([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^"\s\(\)<\[]*)?)#ie', '\'$1\'.handle_url_tag(\'$2://$3\')', $text);

May be it wiil be usefull for someboby.

Later just add possibility to make <file://...> urls clickable to.

3

Re: How to make url <dchub://...> clickable?

PunBB makes the url's in posts automaticly clickable.

Re: How to make url <dchub://...> clickable?

No, urls like <dchub://...> or <file://....> dosn't became clickable. But now it's ok. smile