Quote:
Originally Posted by Ted S
I'm not in a place where I can test but try
Code:
if ( ($show['guest'] OR in_array($vbulletin->GPC['usergroupid'],'X,Y,Z') AND !$lvgbot AND $vbulletin->options['lgvon'])
Where X,Y,Z are groups you want to treat like guests (it can be just one group).
If that doesn't work then I'm calling the usergroupid variable incorrectly. In that case, try $vbulletin->userinfo['usergroupid'] instead.
|
Thanks Ted....
I tried both approaches....
if ( ($show['guest'] OR in_array($vbulletin->GPC['usergroupid'],'3') AND !$lvgbot AND $vbulletin->options['lgvon'])
if ( ($show['guest'] OR in_array($vbulletin->userinfo['usergroupid'],'3') AND !$lvgbot AND $vbulletin->options['lgvon'])
..... but I get an error as follows:
Parse error: syntax error, unexpected '{' in /forums/mysite/showthread.php(345) : eval()'d code(133) : eval()'d code on line 7
Thanks...
Regards,
Badger