The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
vB3.5 - $usergroupid <-ok?
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 |
#2
|
||||
|
||||
Depends on where you want that ... there might be places where $usergroupid is defined, but generally it's not.
|
#3
|
||||
|
||||
I just want to find the usergroup id of say 'unregistered' for vbulletin and direct them else where, thus >
Code:
// $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 |
#4
|
||||
|
||||
I don't understand a word, sorry.
Maybe somebody else can help. |
#5
|
||||
|
||||
i want to find the default vbulletin usergroup id string which i can.... oh nevermind
-b6 $bbuserinfo[usergroupid] == 2 ?? - i try that anyways... -b6 |
#6
|
|||
|
|||
PHP Code:
|
#7
|
||||
|
||||
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 PHP Code:
|
#8
|
||||
|
||||
Thankyou both for your replies, very helpfull, cheers
-b6 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|