![]() |
Allowing only certain users to visit script
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:
|
Do you want to check the user who is currently viewing the script and decide if that user is allowed to view the script?
|
Use $vbulletin->userinfo['userid'] instead of $bbuserinfo[userid]
I think you need to add a not (!) before the in_array(). |
Quote:
Quote:
|
What!? You mean vBSEO doesn't do all of this for you and more :rolleyes: ;)
PHP Code:
|
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?
|
Quote:
|
All times are GMT. The time now is 08:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|