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.

StuntFactoryX 09-09-2007 12:26 PM

will this work w/ vbadvanced and other add ons?

Mecho 09-09-2007 01:34 PM

Thank u , installed and works fine ...

what shall i do if i want to exclude some sections from that menu ??

Smoothie 09-09-2007 10:42 PM

Does anyone know if this work with 3.6.5?

Smoothie 09-09-2007 10:48 PM

Nope, no-work w/ 3.6.5

Analogpoint 09-10-2007 01:23 AM

Quote:

Originally Posted by Smoothie (Post 1335801)
Does anyone know if this work with 3.6.5?

As released (and supported), this works in 3.6.8. But, you might consider following the instructions in post #10 and It'll probably work in 3.6.5. If you do decide to try it, make sure and let me know if it works out for you.

ChessMess 09-10-2007 02:01 AM

I'm not sure why but this isn't displaying the majority of our boards, even though you can easily browse to them.

http://www.stgu.com

Any ideas?

Smoothie 09-10-2007 02:29 AM

Quote:

Originally Posted by Analogpoint (Post 1335859)
As released (and supported), this works in 3.6.8. But, you might consider following the instructions in post #10 and It'll probably work in 3.6.5. If you do decide to try it, make sure and let me know if it works out for you.

I may decide to give it a go. Will let you know. Since all my links are in my header and not the navbar, still use the instructions in post #10? How many queries does this add to each page?

Analogpoint 09-10-2007 04:19 AM

Quote:

Originally Posted by StuntFactoryX (Post 1335389)
will this work w/ vbadvanced and other add ons?

It should.

Analogpoint 09-10-2007 04:32 AM

Quote:

Originally Posted by Smoothie (Post 1335895)
I may decide to give it a go. Will let you know. Since all my links are in my header and not the navbar, still use the instructions in post #10? How many queries does this add to each page?

If all your links are in the header template, just insert $template_hook[navbar_buttons_left] in the header where you want this menu, then find $vbulletin->templatecache['navbar'] in the xml file and change 'navbar' to 'header'. That should do the trick.

This doesn't add any queries since is uses vB's built-in forum cache. The only hit would be that it generates a bunch of HTML, especially if you have lots of forums.

Analogpoint 09-10-2007 06:41 AM

Quote:

Originally Posted by Mecho (Post 1335434)
Thank u , installed and works fine ...

what shall i do if i want to exclude some sections from that menu ??

Version 1.0.1 now has the option to exclude certain forums from the menu.


Quote:

Originally Posted by ChessMess (Post 1335878)
I'm not sure why but this isn't displaying the majority of our boards, even though you can easily browse to them.

http://www.stgu.com

Any ideas?

Hmmm that's really strange.
1. First try installing the newest version 1.0.1 and see if that changes anything.
2. If not, try enabling the vB Forum Jump (in General Settings) and see if the same forums are missing.
3. Also, do you know if vbAdvanced makes any changes to the way forum permissions work? If so, that might be causing problems.

SuperTaz 09-10-2007 07:28 AM

Hmmm. I got two navbars already and they are full. I like this idea, but I have no where to put it. lol

soulface 09-10-2007 11:34 AM

don't know about others but if I enable it, its breaks my forum & i get this msg in the header..

Quote:

Warning: Invalid argument supplied for foreach() in /global.php(786) : eval()'d code on line 92

Warning: Invalid argument supplied for foreach() in /global.php(786) : eval()'d code on line 99
I liked this hack but had to uninstall it for this problem...

Mecho 09-10-2007 04:12 PM

thanks for add exclude option .... i imported new version and these errors shows up in header >

Warning: Invalid argument supplied for foreach() in /global.php(786) : eval()'d code on line 88

Warning: Invalid argument supplied for foreach() in /global.php(786) : eval()'d code on line 95

Fungsten 09-10-2007 04:16 PM

Should v. 1.0 be uninstalled first?

On Edit:

You can upgrade by selecting "Overwrite".

I'm getting this error:

Quote:

Warning: Invalid argument supplied for foreach() in /global.php(786) : eval()'d code on line 101

Warning: Invalid argument supplied for foreach() in /global.php(786) : eval()'d code on line 108

Went back to earlier version until the bug is fixed.

Analogpoint 09-10-2007 04:46 PM

I apologize for the bug in version 1.0.1, it's fixed in version 1.0.2

When upgrading, you shouldn't have to uninstall previous versions first. You can just import and select 'overwrite'.

Fungsten 09-10-2007 04:51 PM

:up::up:

Mecho 09-10-2007 05:07 PM

Thank u ... 1.0.2 works fine ( u forgot to change the Admin Screeshot ;) )

suggestion > Usergroup permission instead of Show To Logged In Members Only so we can exclude usergroups too ... just to make it perfect otherwise it s ok now :)

soulface 09-10-2007 06:11 PM

hmmm working fine now...

I'd like to make one feature request...

If Display Main Categories in Separate Columns is set YES, then we can choose how many categories to show in each row before its makes to next column.

Smoothie 09-11-2007 12:47 AM

Quote:

Originally Posted by Analogpoint (Post 1335859)
As released (and supported), this works in 3.6.8. But, you might consider following the instructions in post #10 and It'll probably work in 3.6.5. If you do decide to try it, make sure and let me know if it works out for you.

The instructions you gave in post #10, seem to be a bit off with the latest version you just released.

ChessMess 09-11-2007 03:20 AM

Quote:

Originally Posted by Analogpoint (Post 1336000)
Version 1.0.1 now has the option to exclude certain forums from the menu.




Hmmm that's really strange.
1. First try installing the newest version 1.0.1 and see if that changes anything.
2. If not, try enabling the vB Forum Jump (in General Settings) and see if the same forums are missing.
3. Also, do you know if vbAdvanced makes any changes to the way forum permissions work? If so, that might be causing problems.

Well I upgraded and did the other items and still no dice. A new error shows on the menu now , you can see it as I'll leave the menu there for now. When I set to multi-column it doesn't show the error but the other boards don't appear either.

Analogpoint 09-11-2007 05:02 PM

Quote:

Originally Posted by ChessMess
I'm not sure why but this isn't displaying the majority of our boards, even though you can easily browse to them.

http://www.stgu.com

Any ideas?

Quote:

Originally Posted by ChessMess (Post 1336718)
Well I upgraded and did the other items and still no dice. A new error shows on the menu now , you can see it as I'll leave the menu there for now. When I set to multi-column it doesn't show the error but the other boards don't appear either.

I'm pretty sure this is not a bug in the product. I just looked and the vB Forum Jump (at the bottom of the pages) is displaying the exact same forums as the Navbar Forum Jump. What you need to do is go to the Forum Manager and edit each forum. Go to the very last option on the page Show this Forum and Child Forums on the Forum Jump Menu and make sure it's set to 'Yes'.

Analogpoint 09-11-2007 05:18 PM

Quote:

Originally Posted by Mecho (Post 1336341)
Thank u ... 1.0.2 works fine ( u forgot to change the Admin Screeshot ;) )

suggestion > Usergroup permission instead of Show To Logged In Members Only so we can exclude usergroups too ... just to make it perfect otherwise it s ok now :)

Thanks Mecho. I've updated the Admin screenshot to match 1.0.3 now. Also, about being able to exclude members based on usergroup could be added but I don't think I'll do it. The only point of adding the Show To Logged In Members Only option was to not display the extra HTML to bots/one-time visitors. There's really no reason not to show it to all your members, since it only gives them a shortcut to all the forums they have access to and improves their user experience. If other request the same option, I may consider adding it. I hope you understand.

Quote:

Originally Posted by soulface (Post 1336390)
hmmm working fine now...

I'd like to make one feature request...

If Display Main Categories in Separate Columns is set YES, then we can choose how many categories to show in each row before its makes to next column.

That sounds like a really useful option. Added in 1.0.3.

Quote:

Originally Posted by Smoothie (Post 1336643)
The instructions you gave in post #10, seem to be a bit off with the latest version you just released.

I'll update those instructions.

soulface 09-11-2007 06:11 PM

thanks Analogpoint, for adding that option. its working gr8 now :D

Mecho 09-11-2007 06:33 PM

Quote:

Originally Posted by Analogpoint (Post 1337120)
If other request the same option, I may consider adding it. I hope you understand.

yea , u right . thanks for explaining :)

also i would like to know how can i add a color or make a title italic for current forum's link ?? i dunno about CSS :)

thank u

killugood9000 09-11-2007 06:36 PM

I am using vbulletin 3.6.8 and I cannot seem to get the forum jump menu to show up in my navbar. I do have a very modified navbar. Actually I have two navbars. Does this add-on use a link (in the navbar template) to show up in the navbar? If so when I import the xml it is not changing anything in the navbar template. What should I add to the template to get it to show in the navbar?:confused:
Thanks cant wat to get it working

Mecho 09-11-2007 06:44 PM

Quote:

Originally Posted by killugood9000 (Post 1337168)
What should I add to the template to get it to show in the navbar?

i had this problem too bcoz of many edits that i did in navbar . but u can use this line to show that option :

$template_hook[navbar_buttons_left]
or
$template_hook[navbar_buttons_right]

simply go for edit the navbar Template and put ONE of those line in the template .

hope it helps ;)

pipedreams 09-11-2007 06:54 PM

fab add-on! :D

Am wondering would it be possible to have an option in a future version that will allow users to select if link to the forums in the DHTML drop-down, link to a new thread for the forum, instead of the forum itself?

I say I could change the links in the product templates to do this myself, but said I would say it here first...

Analogpoint 09-11-2007 07:45 PM

Quote:

Originally Posted by Mecho (Post 1337165)
yea , u right . thanks for explaining :)

also i would like to know how can i add a color or make a title italic for current forum's link ?? i dunno about CSS :)

thank u

If you want to make the current forum's link bold, italicized, and green, try this:

font-weight: bold; font-style: italic; color: #090;

Here's some examples of CSS http://www.w3schools.com/css/css_examples.asp

killugood9000 09-11-2007 07:46 PM

Thanks Mecho, but still no luck It doesnt matter where I put
$template_hook[navbar_buttons_left]
or
$template_hook[navbar_buttons_right]
the forum jump menu refuses to show itself

I DO have "Use 'vBMenu' DHTML Popup Menus?" enabled in vboptions.
and
I do have "Enable Navbar Forumjump Popup Menu" set to yes
:(

Analogpoint 09-11-2007 08:02 PM

Quote:

Originally Posted by killugood9000 (Post 1337211)
Thanks Mecho, but still no luck It doesnt matter where I put
$template_hook[navbar_buttons_left]
or
$template_hook[navbar_buttons_right]
the forum jump menu refuses to show itself

I DO have "Use 'vBMenu' DHTML Popup Menus?" enabled in vboptions.
and
I do have "Enable Navbar Forumjump Popup Menu" set to yes
:(

If you'd like, PM me with your URL and I'll take a look at the source code to see if any error messages show up. If you want to look yourself, view the page source code and search for navbar_forumjump Tell me if any error messages are showing up.


All times are GMT. The time now is 07:11 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.01678 seconds
  • Memory Usage 1,893KB
  • 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
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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