Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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
  #22  
Old 09-21-2004, 06:37 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, just installed it.

However, I noticed that it does not evaluate the permissions of the user, in order to show the proper forums. I have a forum which is viewable only by the admin and the mods and it does not show up in the list.

Of course, neither does the normal Forum Jump, but do you have any idea where that forums list is constructed to see if I can alter it to include admin/mod only forums, depending on the user?

Tnx and congrats
---------
John
Reply With Quote
  #23  
Old 09-25-2004, 04:21 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those of us who have vbadvanced, how do you hardcode the various forums?
Reply With Quote
  #24  
Old 11-18-2004, 03:53 AM
cnczone cnczone is offline
 
Join Date: Mar 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where do I place to code in the navbar template????
Reply With Quote
  #25  
Old 12-09-2005, 11:55 AM
firstimecaller's Avatar
firstimecaller firstimecaller is offline
 
Join Date: Feb 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any chance of getting this ported to 3.5.x as a plugin?
Reply With Quote
  #26  
Old 01-30-2006, 09:57 AM
prettyboi prettyboi is offline
 
Join Date: Nov 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OMG this is what I have been waiting for. Okay, I understand about the jump forum but is there anyways I can make it to where it just say FORUM instead of Jump Forum?
Reply With Quote
  #27  
Old 01-30-2006, 01:10 PM
firstimecaller's Avatar
firstimecaller firstimecaller is offline
 
Join Date: Feb 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just change the link text

edit: to do this, change the
Code:
$vbphrase[forum_jump]
with whatever you want it to say
Reply With Quote
  #28  
Old 04-10-2006, 08:48 PM
firstimecaller's Avatar
firstimecaller firstimecaller is offline
 
Join Date: Feb 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by firstimecaller
any chance of getting this ported to 3.5.x as a plugin?
seriously, this is the best implementation of this type of hack I've yet seen. can we get it working for 3.5.x ?
Reply With Quote
  #29  
Old 04-14-2006, 08:56 AM
firstimecaller's Avatar
firstimecaller firstimecaller is offline
 
Join Date: Feb 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, if you are running 3.5.x, seems this works fine if you use the plugin system to put the phpinclude_start part into a global start hook. This template doesn't exist for 3.5.x

enjoy!
Reply With Quote
  #30  
Old 04-21-2006, 09:14 PM
nelto nelto is offline
 
Join Date: Sep 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by firstimecaller
OK, if you are running 3.5.x, seems this works fine if you use the plugin system to put the phpinclude_start part into a global start hook.
Care to explain this a bit more detailed?

Thank you.
Reply With Quote
  #31  
Old 04-21-2006, 09:39 PM
firstimecaller's Avatar
firstimecaller firstimecaller is offline
 
Join Date: Feb 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nelto
Care to explain this a bit more detailed?

Thank you.
I'll try.

The part that is supposed to go into the phpinclude_start template is:
PHP Code:
$donavjump true;
construct_forum_jump();
$navjump $forumjump;
unset(
$donavjump$forumjump$jumpforumbits$optionselected$usecategories$jumpforumid$jumpforumtitle$curforumid$daysprune$defaultselected); 
so you take that part and make a new plugin

AdminCP>PluginSystem>Plugin Manager
hit link at bottom of page to add new plugin
Leave product as vBulletin
hook location is global_start
give it a title you can remember, like forum menu
then put all the above code in the code box. the rest of the mod you do just like the rest of the instructions.

This change is necessary because the new plugin system in 3.5.x has removed the php_include templates.

Hope that helps
Reply With Quote
Reply

Thread Tools

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 03:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09209 seconds
  • Memory Usage 2,329KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_html
  • (3)bbcode_php
  • (3)bbcode_quote
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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