The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
am trying to restrict access to an external script. right now have it for members of the forum only, need to make sure they have been added, not changed to a usergroup.
we are using this php in an external script to prevent access to people who do not have access to the forum right now: Code:
if (!$vbulletin->userinfo['userid']) $is_logged_in = true; $username = $vbulletin->userinfo['username']; $email = $vbulletin->userinfo['email']; ( are adding the usergroup and Not changing it ). Code:
<if condition="is_member_of($vbulletin->userinfo, 5)"> thanks for any help .. . |
#2
|
||||
|
||||
![]()
That condition regarding usergroups is correct if it were in a template, but in a php page you would use:
PHP Code:
|
#3
|
|||
|
|||
![]()
thanks, have it working now .. .
- the other code belongs to the rest of the script. whay? - not sure as did not wright the original one.. . |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|