Log in

View Full Version : Who hear knows how to use variables with VBadvanced?


kobescoresagain
04-06-2006, 05:52 PM
I want to be able to us variables from the forum with VBadvanced. I was told I should be able to do something like this.
if ($vbulletin->userinfo['usergroup'] == 6)
{
// Your code here
} else {
//something else here
}

Well this never works, it always says that they are not part of group 6 even if they are. I asked around again and someone told me that I needed to include global.php I did included that in the page that shows the custom content and then some of navagation bar just stopped working. I am not sure what exactly I need to do so I can get this to work. Please someone help me.

Also I don't know exactly what information you will need to help me on this. I will provide everything I can though.

KW802
04-06-2006, 06:01 PM
Is group 6 their primary or secondary grouping?

kobescoresagain
04-06-2006, 06:12 PM
I beleive it is the primary usergroup id. I went into usergroup in the admincp, and next to the group I want to display for is Edit Usergroup (id:6)