Log in

View Full Version : AdminCP problem (Inferno, Rules, vbBux/vbPlaza)


KuJoe
06-28-2006, 10:42 PM
I have a few 3rd party plugins that have seperate menus in the AdminCP. One of the plugins is Inferno RPG Hack. I made one of my moderators an admin and gave him access to the AdminCP but only to the "Can Administer RPG Inferno". When he logs in he can see other sections also (Rules, vbBux/vbPlaza, Announcements, Announcement Manager, Add New Announcement, and Moderation). My question is how to I alter the area's in the AdminCP? I'm guessing the reason why he's able to view them all is because they all have something in common (#, title, or something). Where would I go to edit/organize my AdminCP? Which .php file would I have to alter to do this (if any)? I just want him to have access only to the Inferno RPG Hack. So how do I find out what is included in the "Can Administer RPG Inferno" and how do I alter it? Is it in the DB or a PHP file? And where?

Paul M
06-28-2006, 11:26 PM
When a mod needs to add new menu items to the acp, it's done via an xml file you upload to the includes/xml folder - the file being called cpnav_nnnn.xml (nnnn = unique name).

In that xml file each menu group is defined and (optionally) you can set what permissions are needed to view it.

e.g.

<navgroup phrase="vbulletin_options" permissions="canadminsettings" hr="true" displayorder="10">

Almost all custom modifications do not assign any specific permissions, so anyone with acp access will see them. RPG Inferno is almost unique in not only assigning permissions, but actually creating it's own custom permission.

KuJoe
06-29-2006, 01:13 AM
Ok, new question. How exactly do I add permission? I tried adding <navgroup phrase="vbulletin_options" permissions="canadminsettings" hr="true" displayorder="10"> to the XML files that don't have permission settings, but now the menus are gone and there's only a blank title box with a drop down option and when you click it nothing happens.