Sychev_S
02-13-2007, 03:10 AM
I have a module that displays random users and their avatars, how can I set default avatar to display for those who dont have any?
So far I came up with this, but it doesnt really work.
if ($show['avatar'])
{
$HTML .= " <a href=\"forums/member.php?u=" . $topvote['userid'] . "\"><img src=\"forums/image.php?u=" . $topvote['userid'] . "&dateline=".$topvote['dateline']."\" alt=\"View Profile\" border=\"0\" ></a>\n";
}
else
{
$HTML .= " <a href=\"forums/member.php?u=" . $topvote['userid'] . "\"><img src=\"/forums/images/no_picsmall.gif" alt=\"View Profile\" border=\"0\" ></a>\n";
}
anyone?
bump!
.............
So far I came up with this, but it doesnt really work.
if ($show['avatar'])
{
$HTML .= " <a href=\"forums/member.php?u=" . $topvote['userid'] . "\"><img src=\"forums/image.php?u=" . $topvote['userid'] . "&dateline=".$topvote['dateline']."\" alt=\"View Profile\" border=\"0\" ></a>\n";
}
else
{
$HTML .= " <a href=\"forums/member.php?u=" . $topvote['userid'] . "\"><img src=\"/forums/images/no_picsmall.gif" alt=\"View Profile\" border=\"0\" ></a>\n";
}
anyone?
bump!
.............