View Full Version : vB3.5 - $usergroupid <-ok?
b6gm6n
08-31-2005, 08:15 PM
I'm trying to ident the vbulletin string used for 'usergroups' (vB3.5) - i have "$usergroupid" (if $usergroupid == whatever then -> this) worked before for a small hack i made, cannot remember if i was using ipb or not :)
please advise, cheers
-b6
Andreas
08-31-2005, 08:31 PM
Depends on where you want that ... there might be places where $usergroupid is defined, but generally it's not.
b6gm6n
08-31-2005, 08:38 PM
I just want to find the usergroup id of say 'unregistered' for vbulletin and direct them else where, thus >
// $notviewthumbs = vbulletin usergroup id's of those who cannot view thumbnails
$notviewthumbs1 = 1; // Unregistered / Not Logged In
$notviewthumbs2 = 2; // Registered (custom group check your vbulletin usergroup id's
etc etc etc
if (($usergroupid == $notviewthumbs1) || ($usergroupid == $notviewthumbs2) || ($usergroupid == $notviewthumbs3) || ($usergroupid == $notviewthumbs4) || ($usergroupid == $notviewthumbs5))
{
$imgtag = "<img border=\"0\" src=\"images/blank.gif\" alt=\"$altlang\" />";
$thumb .= "<a href=\"$badlink\">$imgtag</a>";
$post .="-";
}
else
-b6
Andreas
08-31-2005, 08:39 PM
I don't understand a word, sorry.
Maybe somebody else can help.
b6gm6n
08-31-2005, 08:40 PM
i want to find the default vbulletin usergroup id string which i can.... oh nevermind
-b6
$bbuserinfo[usergroupid] == 2
?? - i try that anyways...
-b6
Guest190829
08-31-2005, 09:26 PM
$vbulletin->userinfo[usergroupid]
Isn't that the correct syntax now? Kirby can you justify?
Andreas
08-31-2005, 09:29 PM
Depends. If he want's the primary Usergroup for the current User - yes.
But I am not sure if this is what he wants.
Therefore I asked, but did not get an answer.
Btw.: To comply with vBulletin Code Standards it should be
$vbulletin->userinfo['usergroupid']
b6gm6n
08-31-2005, 09:32 PM
Thankyou both for your replies, very helpfull, cheers
-b6
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.