the funtion is called when the user profiles is accessed from the browser
eg
".buildHypertext(nl2br(htmlspecialchars($row_user->dislikes)))."
there is a second function in use as well
function buildHyperlinks($string)
#
# many thanks to Aztek, [email]aztek@box.sk[/email] for supplying this neat function
{
$httpurl = "(((f|ht){1}tp(s){0,1}://)[\/a-zA-Z0-9/@:%_.~#-\?&;]+[\/a-zA-Z0-9@:%_~#\?&;])";
$wwwsurl = "(([[:space:]+]|^)(www[.][a-zA-Z0-9@:%_.~#-\?&]+[a-zA-Z0-9@:%_~#\?&]))";
$mailurl = "([-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+@[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+ \.[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+)";
$parts = split("[[:space:]]", $string);
# $parts = explode(" ", $string);
for($i = 0; $i < sizeof($parts); $i++) {
if(eregi($httpurl, $parts[$i])) {
$temp = $parts[$i];
$parts[$i] = eregi_replace($httpurl, "<a href=$edge_main_url/redirect.php?\\1 target=_blank>", $parts[$i]);
$parts[$i] .= "$temp</a>";
}
if(eregi($wwwsurl, $parts[$i])) {
$temp = $parts[$i];
$parts[$i] = eregi_replace($wwwsurl, "\\2<a href=$edge_main_url/redirect.php?[url]http://\\3[/url] target=_blank>", $parts[$i]);
$parts[$i] .= "$temp</a>";
}
if(eregi($mailurl, $parts[$i])) {
$temp = $parts[$i];
$parts[$i] = eregi_replace($mailurl, "<a href=mailto:\\1>", $parts[$i]);
$parts[$i] .= "$temp</a>";
}
}
return join(" ", $parts);
}