Quote:
Originally Posted by free-offline
Last Way Just Can Put Code Tag Near Every URl And Cant Code Multi Urls Near Like It :
http://www.google.com
http://www.google.com
http://www.google.com
http://www.google.com
If You Want To Code Links Like That To This:
Code:
http://www.google.com
http://www.google.com
http://www.google.com
http://www.google.com
Just Do It :
Replace This :
PHP Code:
$urlReplaceArray = array(
"[url]\\2\\4[/url]"
);
With This :
PHP Code:
$urlReplaceArray = array(
"[code]\\2\\4[/code]"
);
And After This :
PHP Code:
$text = preg_replace($urlSearchArray, $urlReplaceArray, $messagetext);
Put This Line :
PHP Code:
$text = str_replace("[/code]\r\n[code]","\r\n",$text);
|
i did this but it still codes each link separately