PDA

View Full Version : Your Own Custom Drop Down Menu For Navbar


Shawn
10-28-2006, 07:56 AM
This will show you how to add your own custom drop down menus to your navbar. Each drop down menu can have as many items as you need

1.) Log into your ACP and click on Styles and Templates > Style Manager.

2.) On the right hand side you will now find the Style manager. On the drop down list choose Edit Templates.

3.) Next click on Navigation / Breadcrump Templates and open up your Navbar template.

Find:


<if condition="$show['member']">
<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>


Add Underneath


<if condition="$bbuserinfo['userid']">
<td id="XYZ_ID" class="vbmenu_control"><a href="$show[nojs_link]#XYZ_ID">$vbphrase[custom_phrase]</a> <script type="text/javascript"> vbmenu_register("XYZ_ID"); </script></td>
</if>


4.) Where it says "XYZ_ID" place your unique ID. For example; new_drop_down. You'll need to add this three times, and each one MUST be identical!

5.) Next you will need to make a new phrase (see below) and enter the varname where it says 'custom_phrase'.

6.) Still in navbar, locate:
<!-- / user cp tools menu -->

Add Underneath:

<!-- Your Menu Name -->
<div class="vbmenu_popup" id="XYZ_ID_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[Custom_Menu_Title]</td></tr>
<tr><td class="vbmenu_option"><a href="LINK.php?$session[sessionurl]">$vbphrase[Menu_Item]</a></td></tr>

</table>
</div>
</if>

<!-- /Your Menu Name -->


7.) Next you need to copy your XYZ_ID and paste it where it says "XYZ_ID_menu". For example; if you used new_drop_down for your XYZ_ID, then it should say new_drop_down_menu for the section that says "id=". Just make sure that whatever XYZ_ID is, that you add "_menu" to the end of it.

8.) Where it says 'Custom_Menu_Title' put your first menu title.

9.) Where it says LINK.php - add the name of the PHP file your menu item is associated with. Repeat for each menu item by duplicating this section of code below the last section:
<tr><td class="vbmenu_option"><a href="LINK.php?$session[sessionurl]">$vbphrase[Menu_Item]</a></td></tr>


$vbphrase[menu_one]


Whatever you want the phrase to say, is what you put in for the 'Text' section.


12.) Save each phrase and copy the varnames to the code above.

13.) Double check everything!

14.) Save your Navbar template.




This completes the Custom Drop Down Navbar Menu modification.

This modification has been tested and is fully compatible with 3.6

joelr12
10-28-2006, 07:27 PM
tnk yuoi bro

Magnetism
10-30-2006, 09:14 AM
Thanx for sharing this.

don
11-27-2006, 06:41 PM
thank u soo much for this

richman2006
11-30-2006, 11:05 PM
thanks

google
12-03-2006, 09:54 PM
thanks man!

Krono
12-04-2006, 12:36 AM
Now this is what i need!

acbdefg
12-15-2006, 08:53 PM
thanks

mbc2002
12-31-2006, 12:04 PM
Thanx for sharing this.

wenchupover
01-10-2007, 02:20 AM
This will come in mighty handy. Thank you for posting it and also for all the time you spend doing this, sharing and helping others.

bighitbiker3
01-15-2007, 09:04 PM
Thanks man for the great work

Magnumutz
01-17-2007, 07:23 AM
Lol Shawn, you could use this to remove your VBCODERZ NAVIGATION on the left, cuz it's annoying... it's like a stalker :(

LRX
02-02-2007, 01:44 AM
Thanx for sharing this

RvG
02-02-2007, 03:23 AM
OK I need this...

Is it possible to have some 100 characters to show up then the rest of the article are already been hidden?

d1storted
02-10-2007, 09:17 PM
thanks for sharing this :)

hitman
02-17-2007, 05:42 PM
Thanks man ! i will try this

mikem
02-18-2007, 06:36 AM
Ive been lookin for this.

D 1 r k
02-18-2007, 08:21 AM
thanks >>>>>>>>>>>>>>>>>>>>

rogerco
02-23-2007, 12:24 AM
thanks man for this modification

Bratz-designs
02-23-2007, 07:31 AM
Now this is what i need!

rJmJr69
02-25-2007, 10:18 AM
Thanks hope its easy

PrimeEvil
03-12-2007, 10:43 PM
This looks like something I could use

ColdSpirit
03-21-2007, 07:10 PM
i need this one.. big thanks!! :)