View Full Version : help with style var


torres
26th September 2004, 11:01 PM
on my skin i use the following condition to limit unregistered users from accessing non vb parts of the site

<if condition="$bbuserinfo['userid']">

so that when a non registered/logged in user clicks on that link it takes them to the registeration/login page.

This works great for users that is not registered but i want to further limit the users so that users that did not complete their registeration(activation) wouldnt be able to access those parts as well

i am wondering if there is a easy way of doing this

ie <if condition="$bbuserinfo['usergroupid']">

but i cant figure out how to include the diff user groups..

can anyone help ?

HiDeo
26th September 2004, 11:53 PM
Use:

<if condition="$bbuserinfo[usergroupid]==X">

torres
27th September 2004, 02:45 AM
Use:

<if condition="$bbuserinfo[usergroupid]==X">
THANKS!
how about a & statement ? like doing if condition=..... & condition=...

or would it have to be multiple if's ?

Floris
27th September 2004, 02:58 AM
is_member_of(1,2,3,4) probably, and otherwise just check www.vbulletin.com/docs/html/ (http://www.vbulletin.com/docs/html/)

HiDeo
27th September 2004, 07:34 AM
Yes if you want to have many ids, floris's solution is better ;)