SD_Ryoko
Ultra Cool Member
- Reaction score
- 85
Remember this?
Now, its acting a little funny.
The link is
'http://world-editor-tutorials.thehelper.net'
The link (href) is correct when displayed.
But it displays 'world-editor-tutorials.thehelper.net'
Without the http://
Also
I added IMG tag functionality.
So if you have a URL for an img inside the IMG tags, the link parser kills it, they fight over it.
Here this is shown very well.
http://www.griffonrawl-ohio.com/grwbbs.php
Code:
function Parse_Links($str)
{
$AceHart = '#(http(s)?://)?(((?<=http)|[-\w0-9]+\.)([-\w0-9]+\.)+[a-z]+([/\?](\S*[^\s.,()?!:;]+)*)?)#i';
$str=preg_replace($AceHart,'<a href="http\2://\3">\3</a>',$str);
return $str;
}
Now, its acting a little funny.
The link is
'http://world-editor-tutorials.thehelper.net'
The link (href) is correct when displayed.
But it displays 'world-editor-tutorials.thehelper.net'
Without the http://
Also
I added IMG tag functionality.
So if you have a URL for an img inside the IMG tags, the link parser kills it, they fight over it.
Code:
$bodytext = preg_replace('/\[img\](.*?)\[\/img\]/is', '<img src=\'$1\'/>', $bodytext);
Here this is shown very well.
http://www.griffonrawl-ohio.com/grwbbs.php