2010-12-01, 10:27 PM
Right, here's the deal. I know you can make certain things show up for certain members. For example:
and
So, I was trying to make this work for separate user groups. Such as custom ones, using their GID, in example:
However, to my surprise, this doesn't work. Anybody know how? Because I'm incredibly confused.
Cheers.
if($mybb->user['uid'])
{
// Registered Stuff
echo "This will appear if you are online";
}
else
{
echo "This will appear if you are not";
}
and
if($mybb->usergroup['cancp'])
{
// Admin stuff
echo "This will appear if you are an admin";
}
else
{
echo "This will appear if you are not";
}
So, I was trying to make this work for separate user groups. Such as custom ones, using their GID, in example:
if($mybb->user['usergroup'] = "9")
{
// Usergroup Stuff
echo "This will appear if you are in this specific usergroup";
}
else
{
echo "This will appear if you are not";
}
However, to my surprise, this doesn't work. Anybody know how? Because I'm incredibly confused.
Cheers.