How would I properly write the following php
PHP Code:
echo " Username: <b>";
echo $vbulletin->userinfo['musername'];
echo "</b><br /> Status: Logged In";
if ( $vbulletin->userinfo['usergroup'] == array(6,5))
{
echo "<br /> Gallery Access: <b><font color=#038500>Allowed</font></b>";
}
else
{
echo "<br /> Gallery Access: <b><font color=#FF0000>Denied</font></b>";
}
thanks in advance!
--------------- Added [DATE]1270943345[/DATE] at [TIME]1270943345[/TIME] ---------------
I want usesgroups 5 and 6 to display Allowed and all other groups to display Denied
--------------- Added [DATE]1270943772[/DATE] at [TIME]1270943772[/TIME] ---------------
Ive tried
== array(6,5)
== 6&&5
still not doing what I want it to do.
--------------- Added [DATE]1270944222[/DATE] at [TIME]1270944222[/TIME] ---------------
I finally got it to work the way I want with the following code
PHP Code:
if ( $vbulletin->userinfo['usergroupid'] == 6 OR $vbulletin->userinfo['usergroupid'] == 5 )
{
I thought there would have been a more "compressed" method.