View Full Version : a hack that might be cool if you have multi-admins
scsa20
05-03-2002, 04:19 AM
I have 3 admins (not counting me) for my board wanted to know if anyone can make a hack that only userid 1 (me) has access to to set up what the admins can access in the admin cp...for ex. a new link in the admin cp that says "Set up admin access restrictions" and only I have access to it to set it up so that they can't go into some stuff, like editing Templates and/or editing users information so only I (userid 1) has access to do it and not the other admins...
hope you understand
i would also love to be able to do this, access masks on detailed acp access would be great
Logician
05-03-2002, 08:23 AM
This is why you have Super Moderators in your board. :p If you dont want your admins to access "admin only" features, simply change their group to "Super Moderator". So they will be able to do any Moderator actions in any forum while they cant modify admin only options in Admin CP.
Anyway if you dont like the idea, 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
scsa20
05-03-2002, 10:52 PM
I tryed using that code and it just give me parse errors :(
can anyone make that hack I said in the first post??
how can i use that on a non vb page?
Logician
05-04-2002, 06:04 AM
Originally posted by scsa20
I tryed using that code and it just give me parse errors :(
can anyone make that hack I said in the first post??
Sorry for the missing semi-colon :)
Try again:
-- cut --
if ($bbuserinfo['userid']!=1)
{show_nopermission(); exit; }
-- cut --
Logician
05-04-2002, 06:08 AM
Originally posted by NerdNations
how can i use that on a non vb page?
No, it can only be used with vbulletin scripts.
However if what you need is to apply vbulletin permissions to non-vb pages, you can use my WebTemplates hack. That's exactly what it does (and more):
https://vborg.vbsupport.ru/showthread.php?s=&threadid=36419
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.