Version: 1.00, by P1erce
Developer Last Online: Feb 2014
Category: Mini Mods -
Version: 3.6.7
Rating:
Released: 07-03-2007
Last Update: Never
Installs: 24
Re-useable Code
No support by the author.
Okay a few notes first.
A. I wont support this software
B. I dont plan to improve it unless I have a requirement to do so personally for www.minimins.com
C. If you want to modify it, change it, make it something like DigitalPoint.com drop down, and charge for the modification be my guest, ill even pay for it
D. Thanks to the original idea at http://forums.digitalpoint.com
E. I dont know how to make a plugin so dont say anything about it not being a plugin.
F. It wont work as guest on my forum for SEO reasons. But please dont register on my forum just to see it in action, the screenshot says it all.
G. Dont complaine about my code, it works, but I accept it may not be the best way to do this.
H. Its the code for the Forum Jump menu, so its dynamic. If you have admin forums thoes who can see thoes forums will be able to see it in the jump menu, thoes who dont, wont simple
So, right, theres various other attempts at making this dropdown but to be honest they were not adequait. As such I spent 4/5 hours making my own one from the Forum Jump menu function.
The code!
1. Plugin Mangager
2. Add New Plugin
hook location : global
name : whatever, i called it "navbar jump menu"
This is the code:
PHP Code:
//copyright MiniMins.com
function construct_jump2($parentid = -1, $addbox = true, $prependchars = '', $permission = '')
{
global $vbulletin, $optionselected, $usecategories, $jumpforumid, $jumpforumtitle, $jumpforumbits, $curforumid, $daysprune, $jumpforumbits2;
global $stylevar, $vbphrase, $defaultselected, $forumjump, $selectedone;
global $frmjmpsel; // allows context sensitivity for non-forum areas
global $gobutton;
static $complete = false;
if ($complete OR !$vbulletin->options['useforumjump'] OR !($vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
return;
}
if (empty($vbulletin->iforumcache))
{
// get the vbulletin->iforumcache, as we use it all over the place, not just for forumjump
cache_ordered_forums(0, 1);
}
if (empty($vbulletin->iforumcache["$parentid"]) OR !is_array($vbulletin->iforumcache["$parentid"]))
{
return;
}
foreach($vbulletin->iforumcache["$parentid"] AS $forumid)
{
$forumperms = $vbulletin->userinfo['forumpermissions']["$forumid"];
#if ((!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums']) OR !($vbulletin->forumcache["$forumid"]['options'] & $vbulletin->bf_misc_forumoptions['showonforumjump']) OR !$vbulletin->forumcache["$forumid"]['displayorder'] OR !($vbulletin->forumcache["$forumid"]['options'] & $vbulletin->bf_misc_forumoptions['active']))
if ((!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) AND ($vbulletin->forumcache["$forumid"]['showprivate'] == 1 OR (!$vbulletin->forumcache["$forumid"]['showprivate'] AND !$vbulletin->options['showprivateforums']))) OR !($vbulletin->forumcache["$forumid"]['options'] & $vbulletin->bf_misc_forumoptions['showonforumjump']) OR !$vbulletin->forumcache["$forumid"]['displayorder'] OR !($vbulletin->forumcache["$forumid"]['options'] & $vbulletin->bf_misc_forumoptions['active']))
{
continue;
}
else
{
// set $forum from the $vbulletin->forumcache
$forum = $vbulletin->forumcache["$forumid"];
<!-- Forum Jump -->
$forumNavJumpMenu
<!-- /ForumJump -->
So you can format the HTML to change the format from single column to multi column. Just uncomment the lines required. (see the comments in the source). I used a single column because I have too many sub forums and I didnt want to negoicate on the size of the text and it was going off the screen, so a single column was better suited to my needs.
If you have any general questions about the code Ill try and help. But the one part and dont ask me, is the recursvie function in construct_jump2 I barely understand it myself.
Enjoy
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I notice your template doesnt have a "Jump Forum" drop down. What I noticed is that on my forum forum jump is disabled to guests and I get exactly that. And as the code is baised exactly on the forum jump menu, I would suspect thats it.
(I just disabled forum jump and I got the same results)
Go to.. Vbulletin Options -> General Settings -> Use Forum Jump Menu -> Yes -> Save