PDA

View Full Version : How do I?


maverick1236
03-16-2002, 11:34 PM
Change this piece of code to include usergroup 17 and 6?

if ($post[usergroupid] == 18) {
$premium = "<font size=\"2\" color=\"#9557F1\">Site Supporter</font><br><img src=\"images/supporter.gif\" border=0><br>";
} else {
$premium = "";
}

even better....
how would i do this + if they are not a supporter have a link show there-which says "become a supporting member"

tx :knockedout:

Radon3k
03-17-2002, 12:13 AM
Why not just add the same code twice more but add change the usergroup id from 18 and change it to what you want?

maverick1236
03-17-2002, 12:32 AM
Yep

tried that of course

worked at first-then stopped working

maverick1236
03-17-2002, 03:00 AM
bump

please?-i know it cant be hard....

hate to be a pain in the......

maverick1236
03-17-2002, 03:11 AM
i got it
if ($post[usergroupid] == 17 or $post[usergroupid] ==6 or $post[usergroupid] ==18) {
$premium = "<font size=\"2\" color=\"#9557F1\">Site Supporter</font><br><img src=\"images/supporter.gif\" border=0><br>";
} else {
$premium = "";
}

tx anyway