vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Make New Menus And Permissions (https://vborg.vbsupport.ru/showthread.php?t=99087)

Swindont 10-23-2005 12:02 PM

Make New Menus And Permissions
 
i would like to be able to have all hacks installed under one menu and set admin permissions for that menu like others in admincp

could somone do that please?

evenmonkeys 10-23-2005 03:13 PM

1 Attachment(s)
Well, I'm not sure if my idea would be better for you as putting all hacks under one group would make it really hard to read. I've attached how I have it setup in my admincp if you would like to try it that way.

Assuming you're using plug-ins for the admincp nav, the following will show you how to make it look like mine. I'll use vBRadio as my example.

In the root/includes/xml directory, find the nav files that you want to be grouped together. Now find this, located at the very top...

Quote:

<?xml version="1.0" encoding="ISO-8859-1"?>
<navgroups product="vbulletin">
<navgroup text="vBRadio Control" permissions="canadminsettings" displayorder="14">
<navoption>
<text>vBRadio Channel Control</text>
<link>admin_vbradio.php?do=channel</link>
</navoption>
<navoption>
<text>vBRadio Category Control</text>
<link>admin_vbradio.php?do=cat</link>
</navoption>
</navgroup>
</navgroups>
In some of these files, you're going to see a phrase called hr="true" in the line that I bolded for you. What this phrase means is that the next group will be another line down, rather than connected to this group. By making that say false or completely removing it as shown in the above example, you can have the outcome of the two attached images. Then just change the display order to fit your liking. Also, the permissions="canadminsettings" is the permissions you are looking for, I believe.

I chose to do it this way because with one category with fifty options in it would be crazy. =P If you'd want to do it that way, you'd have to make your own nav file and delete the others. You would then just throw all of the files into that one file accordingly.

Swindont 10-23-2005 03:17 PM

Quote:

Originally Posted by xYarub
Well, I'm not sure if my idea would be better for you as putting all hacks under one group would make it really hard to read. I've attached how I have it setup in my admincp if you would like to try it that way.

Assuming you're using plug-ins for the admincp nav, the following will show you how to make it look like mine. I'll use vBRadio as my example.

In the root/includes/xml directory, find the nav files that you want to be grouped together. Now find this, located at the very top...



In some of these files, you're going to see a phrase called hr="true" in the line that I bolded for you. What this phrase means is that the next group will be another line down, rather than connected to this group. By making that say false or completely removing it as shown in the above example, you can have the outcome of the two attached images. Then just change the display order to fit your liking. Also, the permissions="canadminsettings" is the permissions you are looking for, I believe.

I chose to do it this way because with one category with fifty options in it would be crazy. =P If you'd want to do it that way, you'd have to make your own nav file and delete the others. You would then just throw all of the files into that one file accordingly.

how would i set it so only admins with Plug permissions can view these menus?

Edit : i tryed ur way but it never seemed to work so i eidted the real menu and added what i wanted that way under Plugins and it works :D

evenmonkeys 10-23-2005 03:49 PM

Replace:

permissions="canadminsettings"

With:

permissions="canadminplugins"

Swindont 10-23-2005 03:53 PM

thanks :) i have installed Vbshout how would i get that page to display in my menu and not in vbulletin optitions?


All times are GMT. The time now is 08:04 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
  • Page Generation 0.00996 seconds
  • Memory Usage 1,725KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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