Back to General Articles

HowTo: Add a section to the admincp nav
by luke2kz71 08 Oct 2004

i myself have searched and saw alot of people asking about this... how to make a new section in the admincp left navigation window.

well this is the easiest way i found out to do it...

find one of these in the index.php (in accordance to where you want the section to be..

PHP Code:
construct_nav_spacer(); 
then add this after it:
PHP Code:
construct_nav_option($vbphrase['phrase1'], 'blah.php?do=phrase1''|');
construct_nav_option($vbphrase['phrase2'], 'blah.php?do=phrase2''|');
construct_nav_option($vbphrase['phrase3'], 'blah.php?do=phrase3''|');
construct_nav_option($vbphrase['phrase4'], 'blah.php?do=phrase4''|');
construct_nav_option($vbphrase['phrase5'], 'blah.php?do=phrase5''|');
construct_nav_option($vbphrase['phrase6'], 'blah.php?do=phrase6''|');
construct_nav_group($vbphrase['Section'], '<hr />');
construct_nav_spacer(); 
Now where i put blah.php?do=phraseX that is the link for the option

Where it says:
PHP Code:
construct_nav_group($vbphrase['Section'], '<hr />'); 
That is what u call the group phrase.

Now.... you have to name these phrases, otherwise they will show up blank.

Lets assign those pharses some text...

go in your admincp and click languages and phrases.... then click phrase manager.... then the 'add phrase button' leave the phrase type at GLOBAL and then:

varname: phrase1
Text: Option1 (or whatever you would like to have the link to your first option called)

then so on.... this is where u actuall name the options according to the pharse1,2,3,4,5,6 or however many u want..

Then name the group (or section)

varname: Section
text: whatever you would like to call your section of options

I attached some a screen shot. i did a example of a store (which i am working on)

Hopfully i did this right....

now... there are other ways to make the phrases... like mySQL executions but this seemed to be the easiest for the everyday do-it-yourselfer....

Good luck with your projects
Attached Thumbnails
Click image for larger version
Name:	store1.JPG
Views:	37
Size:	7.4 KB
ID:	21090   Click image for larger version
Name:	store2.JPG
Views:	53
Size:	10.5 KB
ID:	21091  

Similar Mods

[RC2] [HowTo] Category in a Box vBulletin 3.0 Template Modifications

vblts.ru supports vBulletin®, 2022-2024