ok my mistake
if ($userinfo['usergroupid'] != "6")
{ //means he's admin
$adminurl = false;
} else {
$adminurl = true;
}
on templte
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]<if condition="$adminurl"><img src="URL"></if></a>
and if this 1 not working then
$nfo = $DB_site->query_first("select * from ". TABLE PREFIX ."user where userid='$post[userid]'");
and then
if ($nfo['usergroupid'] != "6")
{ //means he's admin
$adminurl = false;
} else {
$adminurl = true;
}
and then the template thing
|