The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
really small request
ok can someone help me with some code
In me navbar i want a new menu option but with that option when i press it i want it to open so i have 2 new options.Ive tried messing but i screwed it up So can someone do me the new code i must enter in me navbar |
#2
|
|||
|
|||
First bit - put this where you want the menu to be within the navbar :
Code:
<a href="#yourpage">YOURPAGE TEXT</a> <script type="text/javascript"> vbmenu_register("yourpage"); </script> Code:
<!-- NAVBAR POPUP MENUS --> Code:
<!-- yourpage links --> <div class="vbmenu_popup" id="yourpage_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">YOURPAGE TEXT</td></tr> <tr> <td class="vbmenu_option"><a href="$vboptions[bburl]/yourpage.php?$session[sessionurl]">YOURPAGE TEXT</a></td></tr> <tr> <td class="vbmenu_option"><a href="$vboptions[bburl]/yourpage1.php?$session[sessionurl]">YOURPAGE TEXT 1</a></td></tr> </table> </div> <!-- / yourpage links --> |
#3
|
|||
|
|||
excellant m8 - the bit i forgot was adding code after the NAVBAR popusp - i added it all before and it messed up - cheers for reply as well - appreciated
You sure thats the correct format cause i add it but it wont show on the navbar but puts it below it cause its just a hyperlink ? |
#4
|
|||
|
|||
Make sure you put the first bit within the bit in your navbar where all your other links are.
Believe me - it does work as its running on my site currently |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|