vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   [How-To] Add entries to AdminCP Navigation Menu (https://vborg.vbsupport.ru/showthread.php?t=82698)

Andreas 07-02-2005 08:53 PM

You can add separators between Navgroups, but AFAIK it's not possible to add Spearators between Nav Options.

Christine 07-02-2005 09:24 PM

Thanks Kirby. :)

I am SO happy to see this addition to Beta3. :D

Cloudrunner 07-02-2005 10:23 PM

Quote:

Originally Posted by KirbyDE
You can add separators between Navgroups, but AFAIK it's not possible to add Spearators between Nav Options.

crap

sv1cec 07-03-2005 04:41 AM

This one is not directly related to the subject, but it also is, somehow.

In the past, I modified the AdminCP menu of a hack of mine, depending on a parameter the user entered, adding or removing a line in the menu. If the condition of this parameter was changed, then I forced a reload of admincp, by redirecting the program to admincp/index.php.

Obviously this method can no longer be used, and I have to have two different cpnav_xxx.xml files, one with the additional line and one with out it, and copy the one I need to the /includes/xml directory. However, my php knowledge is not that extensive, so can some one please tell me how I can do something like (in pseudo code):

Code:

if (parameter==1)
{
      copy /temp/menu1.xml /includes/xml/cpnav_aws.xml
}
else
{
      copy /temp/menu2.xml /includes/xml/cpnav_aws.xml
}


Thanks for your help.

Revan 07-03-2005 09:54 PM

I believe this can easily be solved by offering the else-excluded option anyways, and then have this parameter check before any other code in the section in the file, and print out a cp message in the event that the option would not have been shown on the old menu.

HakkieDEV 09-04-2005 08:44 PM

Great tutorial again, thanks mate.

Cap'n Steve 09-28-2005 01:46 AM

It would be really nice to be able to add options to existing groups. It's just much more organized than forcing every tiny little hack to have its own group. Any chance of this being added in the future?

Andreas 09-28-2005 07:58 AM

Already possible since Beta 3 ...

Nullifi3d 10-05-2005 11:56 PM

How do I add my own options into the modcp?

Andreas 10-06-2005 12:37 AM

Hook mod_index_navigation


All times are GMT. The time now is 02:31 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01555 seconds
  • Memory Usage 1,732KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete