The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
?
PHP Code:
|
#12
|
|||
|
|||
Tekton, great! And will this be OK if the user is apart of multiple usergroups, it won't interfere?
|
#13
|
||||
|
||||
If the user is a member of multiple usergroups, Tektons code only checks the primary usergroup.
You'd have to use is_member_of(), but I'm not sure about the syntax. about the (!$bbuserinfo['userid']), that should work, but iirc the userid is set to 0 if the user is a guest, so don't go using isset($bbuserinfo[userid])!!! |
#14
|
|||
|
|||
Your right $bbuserinfo['userid'] will report 0 or false if the user is a guest.
A note about is_member_of, use this function as apose to just a primary usergroup check as this function will do it anyway. Correct syntax: PHP Code:
is_member_of(); will return true if the user belongs to a primary group that matches the usergroup seek var. If the user is not a member of the primary group, then the function will look at the membergroupids the user belongs to (secondary usergroups), if a match is found the function will return true. In all other cases it will return false. |
#15
|
|||
|
|||
Hey! Thanks for the help guys! That is perfect.
|
#16
|
|||
|
|||
Guys, I whipped up this script to test whether a user is logged in, and if so, if they are active.
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|