PDA

View Full Version : is_member_of


RobDog888
18 Sep 2007, 01:16
I cant get the function to determine if the member is in one of the groups or not.

I know its something stupid but ...



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------





It works with ....


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


but I know the is_member_of function is preferred.

Analogpoint
18 Sep 2007, 07:15
This should work:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

RobDog888
18 Sep 2007, 08:34
Cool, it worked. Thanks :)

But what does "$vbulletin->userinfo" do? I'm new to php :(

Analogpoint
18 Sep 2007, 09:05
Just think of it as a variable. $vbulletin is an object, and userinfo is a property of that object.