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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-17-2009, 03:42 PM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Navbar Help!

I'm trying to achieve something within my navbar. I hope somebody can help.
This is a my custom code:
Code:
<!-- start navbar -->
<tr>
<td>

<!-- nav buttons bar -->

    <table width="956" border="0" cellpadding="0" cellspacing="0" id="navigation">
        <tr>
		<td class="navbg">&nbsp;</td>
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="http://www.rarewarecentral.com/forums/index.php"> Forums <else /> <a href="http://www.rarewarecentral.com">Home</if></a></td>
<if condition="$show['guest']">
<td class="vbmenu_control"><a href="http://www.rarewarecentral.com/forums/bottlesglasses.php">Bottles' Glasses</a></td>
</if>

<if condition="$show['guest']">
<td class="vbmenu_control"><a href="http://www.rarewarecentral.com/forums/privacy.php">Privacy Statement</a></td>
</if>


		<if condition="$show['member']">
			<td class="vbmenu_control"><a href="http://rarewarecentral.com/forums/usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
		</if>
<td class="vbmenu_control"><a href="http://www.rarewarecentral.com/forums/staff.php">Staff</a></td>

<td class="vbmenu_control"><a href="http://rarewarecentral.com/forums/rules.php">Rules</a></td>

<td class="vbmenu_control"><a href="http://www.rarewarecentral.com/forums/games.php">Games</a></td>
		<if condition="$show['registerbutton']">
			<td class="vbmenu_control"><a href="http://rarewarecentral.com/forums/register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
		</if>
		$template_hook[navbar_buttons_left]
		<td class="vbmenu_control"><a rel="help" href="http://rarewarecentral.com/forums/faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td class="vbmenu_control"><a href="http://www.rarewarecentral.com/forums/blog.php">Blogs</a></td>

		<if condition="$show['communitylink'] AND $show['popups']">
			<td class="vbmenu_control"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a> <script type="text/javascript"> vbmenu_register("community"); </script></td>
		<else />
			<if condition="$show['memberslist']">
				<td class="vbmenu_control"><a href="http://rarewarecentral.com/forums/memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
			</if>
			<if condition="$show['quick_links_groups']">
				<td class="vbmenu_control"><a href="http://rarewarecentral.com/forums/group.php?$session[sessionurl]">$vbphrase[social_groups]</a></td>
			</if>
		</if>
		<if condition="$show['popups']">
<td class="vbmenu_control"><a href="#" id="custommenu">News</a><script type="text/javascript"> vbmenu_register("custommenu"); </script></td>
			<if condition="$show['searchbuttons']">
				<if condition="$show['member']">
				<td class="vbmenu_control"><a href="http://rarewarecentral.com/forums/search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
				<else />
				<td class="vbmenu_control"><a href="http://rarewarecentral.com/forums/search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
				</if>

				<td class="vbmenu_control"><a href="http://rarewarecentral.com/forums/downloads.php" accesskey="2">Downloads</a></td>

				<td class="vbmenu_control"><a id="navbar_search" href="http://rarewarecentral.com/forums/search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
			</if>
			<if condition="$show['member']">
				<td class="vbmenu_control"><a id="usercptools" href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
			</if>
		<else />
			<if condition="$show['searchbuttons']">
				<td class="vbmenu_control"><a href="http://rarewarecentral.com/forums/search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
				<if condition="$show['member']">
				<td class="vbmenu_control"><a href="http://rarewarecentral.com/forums/search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
				<else />
				<td class="vbmenu_control"><a href="http://rarewarecentral.com/forums/search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
				</if>
			</if>
			<td class="vbmenu_control"><a href="http://rarewarecentral.com/forums/forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
			<if condition="$show['member']">
				<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_contacts]</a></td>
			</if>
		</if> 
		$template_hook[navbar_buttons_right]
		<if condition="$show['member']">
			<td class="vbmenu_control"><a href="http://rarewarecentral.com/forums/login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
		</if>
<td class="navbg">&nbsp;</td>
        </tr>
      </table>

<!-- / nav buttons bar -->
<!-- NAVBAR POPUP MENUS -->
<div class="vbmenu_popup" id="custommenu_menu" style="display:none" align="$stylevar[left]">
<table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead">News</td>
        </tr>
        <tr><td class="vbmenu_option"><a href="http://www.rarewarecentral.com/forums/news.php">News Archive</a></td></tr>
<tr>
<td class="vbmenu_option"><a href="http://www.rarewarecentral.com/index.php?pageid=newslist">News List</a></td></tr>
<tr>
<td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/private.php?do=newpm&u=1"><b>Post News Request</b></a></td></tr>
</table>
</div>

	<if condition="$show['communitylink']">
	<!-- community link menu -->
	<div class="vbmenu_popup" id="community_menu" style="display:none;margin-top:3px" align="$stylevar[left]">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr><td class="thead">$vbphrase[community_links]</td></tr>
		$template_hook[navbar_community_menu_start]
		<if condition="$show['quick_links_groups']">

		<tr><td class="vbmenu_option"><a href="http://www.rarewarecentral.com/forums/calendar.php">Calendar</a></td></tr
					<tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/group.php$session[sessionurl_q]">$vbphrase[social_groups]</a></td></tr>
		</if>
		<if condition="$show['quick_links_albums']">
					<tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/album.php$session[sessionurl_q]">$vbphrase[pictures_and_albums]</a></td></tr>
		</if>
		<if condition="$bbuserinfo['userid']">
			<tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/profile.php?$session[sessionurl]do=buddylist"><if condition="$show['friends_and_contacts']">$vbphrase[contacts_and_friends]<else />$vbphrase[contacts]</if></a></td></tr>
		</if>
		<if condition="$show['memberslist']">
			<tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td></tr>
		<tr><td class="thead">Other</td></tr>
<tr><td class="vbmenu_option"><a href="http://www.rarewarecentral.com/forums/imgspec.php">RWC Image Central</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.rarewarecentral.com/forums/rwctube.php">RWC Tube</a></td></tr>
		<tr><td class="vbmenu_option"><a href="http://www.rarewarecentral.com/index.php?pageid=podcast">Podcast</a></td></tr>
            <tr><td class="vbmenu_option"><a href="http://www.rarewarecentral.com/forums/profile.php?do=invitation">Invite Friends</a></td></tr>
		<tr><td class="vbmenu_option"><a href="http://www.rarewarecentral.com/forums/awards.php">Awards</a></td></tr>
            <tr><td class="vbmenu_option"><a href="http://www.rarewarecentral.com/forums/arcadev3.php">The Arcade</a></td></tr>




		<tr><td class="thead">Content</td></tr>
<tr><td class="vbmenu_option"><a href="http://www.rarewarecentral.com/forums/bottlesglasses.php">Bottles' Glasses</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.rarewarecentral.com/forums/bke.php">BKE</a></td></tr>


		<tr><td class="thead">Styles</td></tr>
            <tr><td class="vbmenu_option"><a href="http://www.rarewarecentral.com/forums/index.php?styleid=44">RWC Green</a></td></tr>
            <tr><td class="vbmenu_option"><a href="http://www.rarewarecentral.com/forums/index.php?styleid=46">RWC Blue</a></td></tr>
            <tr><td class="vbmenu_option"><a href="http://www.rarewarecentral.com/forums/index.php?styleid=53">RWC Black</a></td></tr>
		</if>
		$template_hook[navbar_community_menu_end]
		</table>
	</div>
	<!-- / community link menu -->
	</if>
	
	<if condition="$show['searchbuttons']">
	<!-- header quick search form -->
	<div class="vbmenu_popup" id="navbar_search_menu" style="display:none;margin-top:3px" align="$stylevar[left]">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr>
			<td class="thead">$vbphrase[search_forums]</td>
		</tr>
		<tr>
			<td class="vbmenu_option" title="nohilite">
				<form action="http://rarewarecentral.com/forums/search.php?do=process" method="post">

					<input type="hidden" name="do" value="process" />
					<input type="hidden" name="quicksearch" value="1" />
					<input type="hidden" name="childforums" value="1" />
					<input type="hidden" name="exactname" value="1" />
					<input type="hidden" name="s" value="$session[sessionhash]" />
					<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
					<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
					<div style="margin-top:$stylevar[cellpadding]px">
						<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
						&nbsp;
						<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
					</div>
				</form>
			</td>
		</tr>
		<if condition="$vboptions[threadtagging]">
		<tr>
			<td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/tags.php$session[sessionurl_q]" rel="nofollow">$vbphrase[tag_search]</a></td>
		</tr>
		</if>
		<tr>
			<td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
		</tr>
		$template_hook[navbar_search_menu]
		</table>
	</div>
	<!-- / header quick search form -->
	</if>
	
	<if condition="$show['member']">
	<!-- user cp tools menu -->
	<div class="vbmenu_popup" id="usercptools_menu" style="display:none;margin-top:3px" align="$stylevar[left]">
		<table cellpadding="4" cellspacing="1" border="0">

		<tr><td class="thead">$vbphrase[quick_links]</td></tr>
		<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
		<tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
		<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_contacts]</a></td></tr>
		$template_hook[navbar_quick_links_menu_pos1]
		$template_hook[navbar_quick_links_menu_pos2]

		<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
		<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
		<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
		<tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_your_details]</a></td></tr>
		<tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
		$template_hook[navbar_quick_links_menu_pos3]

		<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
		<if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
		<tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
		<tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[your_profile]</a></td></tr>
		<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="http://rarewarecentral.com/forums/online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
		$template_hook[navbar_quick_links_menu_pos4]

		</table>
	</div>
	<!-- / user cp tools menu -->

	</if>
<!-- / NAVBAR POPUP MENUS -->

    </td>
  </tr>

<!-- end navbar -->
The things I want changed is:
1: I want to kill "Quick Links". (As in remove)
2: Want to move "Community" and "News" dropdown links right next to "Search".
3: Have additionally one dropdown link right on the end left of the dropdown links to add stuff too.

Could somebody please help me achieve this?
Reply With Quote
 


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:57 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.04484 seconds
  • Memory Usage 2,380KB
  • Queries Executed 12 (?)
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_postinfo_query
  • fetch_postinfo
  • 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