vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   AdminCP problem (Inferno, Rules, vbBux/vbPlaza) (https://vborg.vbsupport.ru/showthread.php?t=119831)

KuJoe 06-28-2006 10:42 PM

AdminCP problem (Inferno, Rules, vbBux/vbPlaza)
 
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.

Code:

<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
Code:

<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.


All times are GMT. The time now is 08:42 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02464 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete