View Full Version : How would you...
Chris M
06-12-2002, 05:16 PM
How would you password protect parts of the Admin CP?
I would like to be able to require a password protect the CP with an extra password as well as a username and password, but I would also like to password protect the Templates and styles in the Admin CP, so only I can use them with that password...
Satan
scsa20
06-12-2002, 07:25 PM
I found a code posted from someone that I requested, what the code does is check if it's the user id # is the same that he could access...for an example, admins are userid 1, correct?? so what it does is that if a user with a userid of 2, they well just get an error, but if the userid is 1, they can get access to it....if you want, I can relook up the code :rolleyes:
Chris M
06-13-2002, 05:40 PM
Yes please...
That would be great!:D
Satan
scsa20
06-13-2002, 08:08 PM
Originally posted by Logician
this is the code you should insert to any relevant part in your vbulletin code that you dont want their access:
-- cut --
if ($bbuserinfo['userid']!=1)
{show_nopermission(); exit; }
-- cut --
Insert this code before the part that you dont want their access to any script.
Enjoy..
Logician
there you go ;)
Chris M
06-14-2002, 07:47 AM
Cool...
Thanks:)
Satan
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.