Log in

View Full Version : What variable is USERGROUP ID now?


kau
12-18-2005, 10:40 PM
I am trying to hardcode some values in class_dm_threadposts.

I want the floodcheck to only happen if you aren't in a certain usergroup

I can't get the usergroupid though.

I've tried all these variables and none give me a value:

echo $bbuserinfo['usergroupid'];
echo $user['usergroupid'];
echo $userinfo['usergroupid'];
echo $vbulletin->userinfo['usergroupid'];
echo $vbulletin->userinfo['userid'];

Same with class_dm_user.php

None of those will display the user group id.

merk
12-19-2005, 12:35 AM
data managers have access to $vbulletin data through $this->registry.

If you're outside the datamanagers (outside of classes) use $vbulletin, if you're inside classes use $this->registry.

akanevsky
12-19-2005, 01:11 AM
data managers have access to $vbulletin data through $this->registry.

If you're outside the datamanagers (outside of classes) use $vbulletin, if you're inside classes use $this->registry.

As an example, usergroupid of the viewer would be accessible through $this->registry->userinfo['userid'] (inside of classes).