[ en ] heb ik weggelaten anders is er niets te zien!
url=http://www.xxxxx.nl/enquete/viewtopic.php?t=19]
bert
Code: Selecteer alles
<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url -->
Code: Selecteer alles
<!-- BEGIN url --><a href="{URL}" target="_top" class="postlink">{DESCRIPTION}</a><!-- END url -->
Code: Selecteer alles
$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);
Code: Selecteer alles
$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_top\">\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_top\">\\2</a>", $ret);
Code: Selecteer alles
$text = preg_replace("#<!-- BBCode auto-link start --><a href=\"(.*?)\" target=\"_blank\">.*?</a><!-- BBCode auto-link end -->#i", "\\1", $text);
Code: Selecteer alles
$text = preg_replace("#<!-- BBCode auto-link start --><a href=\"(.*?)\" target=\"_top\">.*?</a><!-- BBCode auto-link end -->#i", "\\1", $text);
Perfect!bert56 schreef:Omdat het bord in een frame zit heb ik in de bbcode.tpl top veranderd in self