PDA

View Full Version : Want to remove my href tags here:


okc
09-08-2005, 10:19 PM
I have a hack that tells you who has visited in the day to my board. I love the hack but I don't want the ability to pm a user, just their username only, so I want to remove the href tags, but I can't seem to do it without getting errors - can someone tell me how to change this code so i get the name only & not a clickable link:

if ($today['visible'])
{
$wrdate = vbdate($vboptions['timeformat'], $today['lastactivity']);
$whotoday .= "<a href='member.php?u=$today[userid]' title='$wrdate' >";
if ($today['visible'] == 2)
{
$whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>*, ";
}
else
{
$whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>, ";
}
}

thx alot!!!

Boofo
09-08-2005, 10:25 PM
This should do what you want:

if ($today['visible'])
{
$wrdate = vbdate($vboptions['timeformat'], $today['lastactivity']);
if ($today['visible'] == 2)
{
$whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>*, ";
}
else
{
$whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>, ";
}
}

okc
09-08-2005, 10:43 PM
Thx - Very close - it does take away the link, but it only lists 1 user instead of the multiple users I have - any other thoughts?

Boofo
09-08-2005, 10:47 PM
I re-edited the code above. Should work fine now.

okc
09-08-2005, 11:06 PM
Excellent - thx alot!