Guest190829
07-05-2005, 02:28 AM
Okay, well I made a function to send a PM for a hack I'm making, and inside
$message
Is text, and also a link to a members profile...so I need to parse the link to make it an actually hyperlink...
I tried
$parsedurl = parse_bbcode("<a href='" . $cleanurl[0] ."'>$cleanuri[0]</a>");
and that wasn't what I wanted....
And then I tried
$parseurl = parse_bbcode("]$cleanurl[0] ($cleanuri[0)");
And that gave me the actually HTML markup for the link
<a href="http://localhost/member.php?u=1" target="_blank">http://localhost/member.php?u=1</a>
And it didn't parse it! So can anyone give me a helping hand and tell me what I'm doing wrong?
$message
Is text, and also a link to a members profile...so I need to parse the link to make it an actually hyperlink...
I tried
$parsedurl = parse_bbcode("<a href='" . $cleanurl[0] ."'>$cleanuri[0]</a>");
and that wasn't what I wanted....
And then I tried
$parseurl = parse_bbcode("]$cleanurl[0] ($cleanuri[0)");
And that gave me the actually HTML markup for the link
<a href="http://localhost/member.php?u=1" target="_blank">http://localhost/member.php?u=1</a>
And it didn't parse it! So can anyone give me a helping hand and tell me what I'm doing wrong?