Links with target=_top? (General)

by Michael @, Tuesday, April 22, 2008, 09:28 (5820 days ago) @ Michael

For my (little) understanding I should add target_"blank" in functions.inc.php, somewhere here:

function make_link($string)
{
$string = ' ' . $string;
$string = preg_replace_callback("#(^|[n ])([w]+?://.*?[^ "nrt<]*)#is", "shorten_link", $string);
$string = preg_replace("#(^|[n ])((www|ftp).[w-]+.[w-.~]+(?:/[^ "tnr<]*)?)#is", "$1< a href="http://$2" target=_blank">$2</a>", $string);
#$string = preg_replace("#(^|[n ])([a-z0-9&-_.]+?)@([w-]+.([w-.]+.)*[w]+)#i", "1< a href="mailto:2@3" target=_blank">2@3</a>", $string);
$string = substr($string, 1);
return $string;
}

But that leads to no visible result. What am I doing wrong?

locked
5228 views

Complete thread:

 RSS Feed of thread