PDA

View Full Version : Custom Admin Image...In the Postbit - I tried something, and it didnt work...


Chris M
07-05-2002, 07:59 PM
I am trying to get a custom image in the postbit template, but only for Admins...

I tried adding this to functions.php, but it didnt work...

if ($post[field13]) {
$adminimage="<img src="$post[field13]"><br>";
} else {
$adminimage="";
}

What is the correct code?

Satan

g-force2k2
07-05-2002, 08:02 PM
what did field13 contain?

Edit: nvm... use this code ;) you don't even have to make a profile field if you dont want to... just...

$adminlogo="";
if($bbuserinfo[usergroupid]==##) {
$adminlogo="<img src=\"put image here\">";
} else {
$adminlogo="";
}

## represents the admin usergroupid (should be six i think?)

g-force2k2

Chris M
07-05-2002, 08:17 PM
Ah cool:)

Thanks...

Satan