vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   End-User Options - Navbar Forumjump- Adds a DHTML "Forum Jump" menu to your Navbar (https://vborg.vbsupport.ru/showthread.php?t=157353)

Analogpoint 09-07-2007 10:00 PM

Navbar Forumjump- Adds a DHTML "Forum Jump" menu to your Navbar
 
Navbar Forumjump


This mod adds a popup menu to the navbar with quick links to all your forums.

http://www.analogpoint.com/static/im...creenshot2.png

If you like this, you can show your support by Rating it, Marking it as installed, Nominating for MOTM, and/or Donating to the author. Thanks, you rock.


Why would you want to install this?
  1. Increases usability for your members.
  2. Decreases server resources/usage.
How does this increase usability?

In forums I often find myself clicking on the "forum home" link to see the list of forums and then choose one to visit. With this mod, you simply click the "Forum Jump" menu, and down drops a dynamic menu with all your forums (represented in correct hierarchy of parents/children, and organized by category). The user can more easily visualize the structure of your forums, and can get to where they want to go quicker. And this is a lot prettier and better placed than the forum jump at the bottom of the pages.

How does this reduce server resources?

With this mod installed, the users will go directly to the next forum they want to visit without first going to the forum home. This saves the HTTP requests associated with a pageload, as well as the database queries required to generate the page.

All Features.
  • Installation is a snap, just import the XML file
  • The popup menu looks identical to the other built-in vB popup menus.
  • Automatically generates the menu, if you add or remove forums, that's automatically reflected in the menu.
  • The menu can optionally display a small icon that links to the last post next to the forum name.
  • Respects forum permissions, hidden forums, etc. If the user is not permitted to view the forum, it won't show up, just like on the forum home page.
  • No template edits needed.
  • Admin control panel that explains everything, and offers many configuration options:
    • Enable / disable the mod
    • Show menu to everyone or only to logged-in members.
    • Optionally specify forums to exclude from the menu.
    • Choose to display the forumjump popup on the left or the right side of the navbar.
    • Choose to display the menu as one column, or separate each category (with its sub-forums) into its own column. You may also specify how many categories to display per column.
    • You define the characters to prepend to the forum titles to show the indented hierarchy of forums
    • Options to configure CSS styles and sizes for the menu. This allows you to shrink the menu if you have many forums by reducing the font size and the cell padding in the menu.
    • You may optionally style the currently selected forum differently than the rest (with CSS).
  • The mod is fully phrased, including the ACP options and descriptions.
Changes it makes

Adds one plugin and a control panel options section (and its associated phrases). The menu is attached to the navbar using a template hook.

Installation
  1. Download and uncompress the zip file.
  2. Import the XML product file in the Admin Control panel.
  3. Visit the Options page and see if you want to change any of the default settings. (If you're using less than vB 3.6.8 you'll need to visit the options and see how to manually insert the menu into your templates.)
Changelog/History

Version 1.0.8 Bug fix (Oct. 13, 2007)
Fixed bug when using the forumjump with vBa. (See post #145)
Version 1.0.7 Bug fixes and workarounds (Sept. 18, 2007)
Integrated fix for Smoothie's problems (Post #76 and on)
Fixed display bug from post #101
Workaround for logging out display problem (post #104)
Completely separated the auto-insert code from the manual template inserting.
Version 1.0.6 New Features (Sept. 17, 2007)
Workaround for menu display problem in Opera
New option to add a relative URL to prepend to links (helps when using vBa)
New option to not auto-display menu via template hooks. Provides better compatibility for vB < 3.6.8 and when not displaying menu in the navbar template.
Version 1.0.5 Internal Development - Not released

Version 1.0.4 New features (Sept. 12, 2007)
Added optional link (icon) to the latest post in each forum
Added admin options panel help system.
Added compatibility with vB 3.6.0 to 3.6.8
Version 1.0.3 New features (Sept. 11, 2007)
All error messages output as HTML comments (better end user experience)
You may now specify how many categories are displayed per column
Version 1.0.2 Bug fix (Sept. 10, 2007)
Fixed bug introduced in Version 1.0.1
Added more error checking
Added useful error messages for debugging.
Version 1.0.1 Bug Fixes and Enhancements (Sept. 10, 2007)
Fixed a bug when URLs have session IDs in them.
Added Option to disable the menu for non-logged-in visitors
Added Option to exclude forums
Version 1.0.0 Initial Release


Screenshots

http://www.analogpoint.com/static/im...creenshot1.png

Menu with the icon link to last post enabled.
http://www.analogpoint.com/static/im...creenshot4.png

http://www.analogpoint.com/static/im...creenshot3.png

Analogpoint 09-08-2007 08:34 PM

reserved?

m002.p 09-08-2007 08:38 PM

Looks awesome mate, will try it later. Good work!

Oh and first post :D

Fungsten 09-08-2007 08:42 PM

Installed! Groovy!

howiulf 09-08-2007 09:34 PM

Nice work, installed in a second!

It's very helpful at about a hundred forums...

thx a lot.:)

Installed 'n' lots of stars

Hornstar 09-08-2007 10:42 PM

Thanks, this was released here a while ago I believe, but yours looks very good. thanks for sharing.

yahoooh 09-08-2007 10:59 PM

thanks

JTS2005 09-09-2007 12:39 AM

my skin unfortunately doesn't use that navigation bar as it was converted to image buttons. what code can i use to link to an image?
thx

yotsume 09-09-2007 03:55 AM

BOO!!! NOT COMPATIBLE WITH OLDER VERSIONS OF VB!!!

SHAME SHAME!

Can We make it work with 3.6.4??? :)

Analogpoint 09-09-2007 06:19 AM

Quote:

Originally Posted by hornstar1337 (Post 1335076)
Thanks, this was released here a while ago I believe, but yours looks very good. thanks for sharing.


The only two mods I could find that were somewhat similar, turn out to be nothing like this.

1. [name]Michelle[/name]'s Move forumjump to the navbar with javascript Is just what the title says. It's a couple of template edits and a few lines of Javascript to move the existing (ugly) forumjump drop-down menu up to the navbar. It only displays on pages that already had the forumjump drop-down on them. My mod uses vB's DHTML popup menus and also displays on all pages.

2. [name]Floris[/name] did a bit better with navbar forumjump dropdown. But it has quite a few problems.
  • Template edits
  • Not phrased
  • No product/XML file for easy installation
  • Directly queries the database instead of using vB's cached forum info (waste of resources)
  • Does not respect forum permissions and displays links to forums that you're not allowed to see
  • Not supported
  • Only shows child forums one level deep
So in conclusion, from the way I see it, this hasn't been released here before. :) Or was there some other mod that I couldn't find by searching?

EDIT: I just found another forum jump mod by [name]P1erce[/name], which is better than Floris' version. It's actually quite similar to this mod, but it's not as easy to install, and it doesn't have all the admin formatting options etc.


Quote:

Originally Posted by JTS2005 (Post 1335137)
my skin unfortunately doesn't use that navigation bar as it was converted to image buttons. what code can i use to link to an image?
thx


Do you have it installed and working, but you want to change the text "Forum Jump" to an image? If that's the case, just edit the plugin (or in the product's XML file, then re-upload) and find this:

Code:

'.$vbphrase['forum_jump'].'
and replace with an image tag, like:

Code:

<img src="image.gif" alt="" />

Quote:

Originally Posted by yotsume (Post 1335186)
BOO!!! NOT COMPATIBLE WITH OLDER VERSIONS OF VB!!!

SHAME SHAME!

Can We make it work with 3.6.4??? :)

Hmmmm. 3.6.4 doesn't have template hooks or the global_setup_complete hook that this relies on. But, if you're willing to make some changes, it should work. This is not guaranteed or tested, it's just off the top of my head. Try it on a test forum installation first!

Instructions updated to work with version 1.0.3

1. Make some edits to the XML file
----------------------------------
:::: Find:
Code:

                <dependency dependencytype="vbulletin" minversion="3.6.8" maxversion="" />
:::: Change to:
Code:

                <dependency dependencytype="vbulletin" minversion="3.6.4" maxversion="3.6.4" />
----------------------------------
:::: Find:
Code:

                        <hookname>global_setup_complete</hookname>
                        <phpcode><![CDATA[if ($vbulletin->options['navbar_forumjump_enable'] && $show['popups'] && (($vbulletin->options['navbar_forumjump_showusersonly'] && $vbulletin->userinfo['userid']) || !$vbulletin->options['navbar_forumjump_showusersonly']))

:::: Change to:
Code:

                        <hookname>parse_templates</hookname>
                        <phpcode><![CDATA[if (!isset ($template_hook))
{
        $template_hook = array();
        $template_hook['navbar_buttons_left'] = $template_hook['navbar_buttons_right'] = '';
}
if ($vbulletin->options['navbar_forumjump_enable'] && $show['popups'] && (($vbulletin->options['navbar_forumjump_showusersonly'] && $vbulletin->userinfo['userid']) || !$vbulletin->options['navbar_forumjump_showusersonly']))

----------------------------------


2. Make some edits to your navbar template
----------------------------------
:::: Find:
Code:

        <if condition="$show['registerbutton']">
                <td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
        </if>

:::: Add this after it:
Code:

        $template_hook[navbar_buttons_left]
----------------------------------
:::: Find:
Code:

        <if condition="$show['member']">
                <td class="vbmenu_control"><a href="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>

:::: Add this before it:
Code:

        $template_hook[navbar_buttons_right]
----------------------------------

Upload and install the modified XML file, and hope it works.


All times are GMT. The time now is 07:33 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.01243 seconds
  • Memory Usage 1,792KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete