Nice hack you've made, but I've found a bug in your code. The links posted doesn't work. I've fixed it.
This:
PHP Code:
$text = eregi_replace("\\[url\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=\"_blank\">\\1</a>",$text);
should be:
PHP Code:
$text = eregi_replace("\\[url\\]([^\\[]*)\\[/url\\]","<a href=\\1 target=\"_blank\">\\1</a>",$text);
And:
PHP Code:
$text = eregi_replace("\\[url=([^\\[]+)\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=\"_blank\">\\2</a>",$text);
should be
PHP Code:
$text = eregi_replace("\\[url=([^\\[]+)\\]([^\\[]*)\\[/url\\]","<a href=\\1 target=\"_blank\">\\2</a>",$text);