Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-02-2008, 07:38 PM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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> &nbsp; - &nbsp;
		<a href="http://www.defenselink.mil/">D.O.D.</a> &nbsp; - &nbsp;
		<a href="http://www.redcross.org/">RED CROSS</a> &nbsp; - &nbsp;
		<a href="http://www.uso.org/">U.S.O.</a> &nbsp; - &nbsp;
            <a href="http://www.ares.org/">A.R.E.S.</a> &nbsp; - &nbsp;
            <a href="$vboptions[contactuslink]">Contact</a> &nbsp; - &nbsp;

	</div>
	<a class="logo" href="$vboptions[forumhome].php$session[sessionurl_q]">&nbsp;</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> &nbsp; - &nbsp;
	<if condition="$show['member']"><a href="usercp.php$session[sessionurl_q]">User CP</a> &nbsp; - &nbsp;</if>
	<a href="memberlist.php$session[sessionurl_q]">Member List</a> &nbsp; - &nbsp;
	<a href="search.php?$session[sessionurl]do=getnew">New Posts</a> &nbsp; - &nbsp;
	<a id="navbar_search" href="search.php$session[sessionurl_q]">Search</a> &nbsp; - &nbsp; <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> &nbsp; - &nbsp; <script type="text/javascript"> vbmenu_register("usercptools", 1); </script></if>
	<if condition="$show['member']"><a href="login.php?$session[sessionurl]do=logout&amp;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
This is where I want it to show up (image below)

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:55 PM.


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.03126 seconds
  • Memory Usage 2,225KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete