The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I have a new product I am creating and one of the setting options allows you to add userids, seperated by a comma, that you want to have access to the script.
How can I take those userids and compare them to the current users id trying to access the script to make sure that they match? Right now this isn't working: PHP Code:
|
#2
|
|||
|
|||
![]()
Do you want to check the user who is currently viewing the script and decide if that user is allowed to view the script?
|
#3
|
|||
|
|||
![]()
Use $vbulletin->userinfo['userid'] instead of $bbuserinfo[userid]
I think you need to add a not (!) before the in_array(). |
#4
|
||||
|
||||
![]() Quote:
Thanks I'll give that a go. |
#5
|
||||
|
||||
![]()
What!? You mean vBSEO doesn't do all of this for you and more
![]() ![]() PHP Code:
|
#6
|
|||
|
|||
![]()
Are you sure you can use isset there? Because even if the option is set to say, false it will still read that the variable is set, won't it?
|
#7
|
||||
|
||||
![]() Quote:
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|