Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forum Jump in Navbar Details »»
Forum Jump in Navbar
Version: 1.00, by NTLDR (Coder) NTLDR is offline
Developer Last Online: Oct 2004 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-13-2004 Last Update: Never Installs: 14
 
No support by the author.

This adds a dropdown menu on the navbar which contains all the links found in the forumjump that apears on certain pages. Note the forumjump must be enabled in the ACP for this to work. See the attached screenshot.

In your phpinclude_start template OR in global.php (if you have lots of styles you may want to do one edit to global.php instead of editing styles) after:

PHP Code:
$logincode construct_login_code(); 
Add (or place in the phpinclude_start template, do one or the other):

PHP Code:
$donavjump true;
construct_forum_jump();
$navjump $forumjump;
unset(
$donavjump$forumjump$jumpforumbits$optionselected$usecategories$jumpforumid$jumpforumtitle$curforumid$daysprune$defaultselected); 
Replace the contents of your forumjump template with:

HTML Code:
<if condition="$GLOBALS['donavjump']">
	<!-- navjump menu -->
	<div class="vbmenu_popup" id="navjump_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
			<tr><td class="thead">$vbphrase[site_areas]</td></tr>
			<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]forumid=cp">$vbphrase[user_control_panel]</a></td></tr>
			<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]forumid=pm">$vbphrase[private_messages]</a></td></tr>
			<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]forumid=subs">$vbphrase[subscriptions]</a></td></tr>
			<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]forumid=wol">$vbphrase[whos_online]</a></td></tr>
			<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]forumid=search">$vbphrase[search_forums]</a></td></tr>
			<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]forumid=home">$vbphrase[forums_home]</a></td></tr>	
			<tr><td class="thead">$vbphrase[forums]</td></tr>	
			$jumpforumbits
		</table>
	</div>
	<!-- / navjump menu -->
<else />
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap">
	<form action="forumdisplay.php" method="get">
	<input type="hidden" name="s" value="$session[sessionhash]" />
	<input type="hidden" name="daysprune" value="$daysprune" />
	<strong>$vbphrase[forum_jump]</strong><br />
	<select name="f" onchange="this.form.submit();">
		<optgroup label="$vbphrase[site_areas]">
			<option value="-1" $defaultselected>$vbphrase[please_select_one]</option>
			<option value="cp" $frmjmpsel[usercp]>$vbphrase[user_control_panel]</option>
			<option value="pm" $frmjmpsel[pm]>$vbphrase[private_messages]</option>
			<option value="subs" $frmjmpsel[subs]>$vbphrase[subscriptions]</option>
			<option value="wol" $frmjmpsel[wol]>$vbphrase[whos_online]</option>
			<option value="search" $frmjmpsel[search]>$vbphrase[search_forums]</option>
			<option value="home" $frmjmpsel[home]>$vbphrase[forums_home]</option>
			<option value="-1">--------------------</option>
		</optgroup>
		<optgroup label="$vbphrase[forums]">
		$jumpforumbits
		</optgroup>
	</select>$gobutton
	</form>
</div>
</if>
Replace the contents of your option template with:

HTML Code:
<if condition="$GLOBALS['donavjump']">
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]forumid=$optionvalue">$optiontitle</a></td></tr>
<else />
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
</if>
In your navbar template add:

HTML Code:
<if condition="$vboptions['useforumjump']">
<td id="navjump" class="vbmenu_control"><a href="#navjump">$vbphrase[forum_jump]</a> <script type="text/javascript"> vbmenu_register("navjump"); </script></td>
</if>
Where you want the link to the forum jump to appear.

Still in the navbar template add:

HTML Code:
<if condition="$vboptions['useforumjump']">
$GLOBALS[navjump]
</if>
Before:

HTML Code:
<!-- / NAVBAR POPUP MENUS -->

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-14-2004, 05:53 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will it still include forums that we have hidden via acp?
Reply With Quote
  #3  
Old 03-14-2004, 06:35 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It shows exactly what you would see in the forum jump select menu.
Reply With Quote
  #4  
Old 03-14-2004, 07:40 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not bad at all, i was baffled before i saw the screenie, but it looks good, nice work
Reply With Quote
  #5  
Old 03-14-2004, 11:38 PM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, gonna try this one
Reply With Quote
  #6  
Old 03-15-2004, 07:20 AM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome hack!!
Reply With Quote
  #7  
Old 03-15-2004, 06:38 PM
the3jams the3jams is offline
 
Join Date: Jul 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for fulfilling my request. I knew someone would be able to do it

[high]* the3jams clicks install[/high]
Reply With Quote
  #8  
Old 03-15-2004, 06:44 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one, fella!
Reply With Quote
  #9  
Old 03-16-2004, 12:21 AM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent work! Not many of the users use Forum Jump, but the feedback and usage of it has been phenominal after the installation of this one.
Reply With Quote
  #10  
Old 03-22-2004, 03:27 AM
Chris Blount Chris Blount is offline
 
Join Date: Mar 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly for me. Thanks!
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 01:50 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.06587 seconds
  • Memory Usage 2,316KB
  • Queries Executed 23 (?)
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
  • (5)bbcode_html
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (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_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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete