The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
adding drop down menu to navbar
If I wanted to add a drop menu to my custom navbar (code below) in order to have all these links I'm coming up with in one convenient location, what is the code? and where do I place it in the code below?
Code:
<a name="top"></a> <div class="body2" align="center"> <div style="width:$stylevar[outerdivwidth];"> <div style="text-align:left"> <div class="nav"> <a href="<if condition="$vboptions['hometitle']">$vboptions[homeurl]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>">Return Home</a> - <a href="http://www.defenselink.mil/">D.O.D.</a> - <a href="http://www.redcross.org/">RED CROSS</a> - <a href="http://www.uso.org/">U.S.O.</a> - <a href="http://www.ares.org/">A.R.E.S.</a> - <a href="$vboptions[contactuslink]">Contact</a> - </div> <a class="logo" href="$vboptions[forumhome].php$session[sessionurl_q]"> </a> </div> <div class="main"> <div class="memberbar"> <div class="console"> <span>Site Links:</span> <a href="http://www.publicwarriors.com/forums/all_albums.php">Albums</a> <a href="http://www.publicwarriors.com/forums/arcade.php">Arcade</a> <a href="http://www.publicwarriors.com/forums/blog.php?">Blog</a> <a href="http://www.publicwarriors.com/forums/local_links.php">DL's & Media</a> <a href="http://www.publicwarriors.com/forums/misc.php?do=flashchat&room=1">Chat</a> <a href="http://www.publicwarriors.com/gary/popup.html" target="page" onclick="window.open('','page','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=475,height=290,left=50,top=50,titlebar=yes')">MP3 Player</a> <a href="http://www.publicwarriors.com/forums/radioandtv.php" target="page" onclick="window.open('','page','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=900,height=500,left=50,top=50,titlebar=yes')">Radio & TV</a> <a href="worldmap.php$session[sessionurl_q]">Members World Map</a> <a href="http://www.publicwarriors.com/forums/easy_pages.php?p=2" target="_self">Buy & Sell</a> </div> <div class="member"> <if condition="$show['member']"> <div class="smallfont"> <strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong> <if condition="$show['notifications'] AND $show['popups']"> <span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span> <script type="text/javascript"> vBmenu.register("notifications"); </script> <else /><if condition="$show['pmstats']"> <phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase> </if></if> </div> <else /> <!-- login form --> <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])"> <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script> <input type="image" src="{IF}/button_go.gif" value="" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /> <input type="password" class="bginput" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /> <input type="text" class="bginput" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /> <span>Log In:</span> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="cookieuser" value="1" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> </form> <!-- / login form --> </if> </div> </div> <div class="banner"> </div> <td class="content"> <div class="forumlinks"> <a href="$vboptions[forumhome].php$session[sessionurl_q]">Forum Index</a> - <if condition="$show['member']"><a href="usercp.php$session[sessionurl_q]">User CP</a> - </if> <a href="memberlist.php$session[sessionurl_q]">Member List</a> - <a href="search.php?$session[sessionurl]do=getnew">New Posts</a> - <a id="navbar_search" href="search.php$session[sessionurl_q]">Search</a> - <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search", 1); </script></if> <if condition="$show['member']"><a id="usercptools" href="$show[nojs_link]#usercptools">Quick Links</a> - <script type="text/javascript"> vbmenu_register("usercptools", 1); </script></if> <if condition="$show['member']"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]">Logout</a></if> <if condition="$show['registerbutton']"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></if> </div> <div style="padding:4px"> <!-- content table --> $_phpinclude_output |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|