![]() |
navbar forumjump dropdown
This is beta, and I won't support it.
What does this do? This will add a dropdown to your navbar that lists the forums below a parent forum. On my bro's site we have a list of 12 worksheets, and each worksheet is a forum. We needed a list of all 12 worksheets for quick navigation. Instead of me getting emails every time they make a forum change, the dropdown is now auto updated, populated and I don't have to worry those emails anymore. It uses forumcache (tnx danny) so it won't add a query to each page, unless it needs to. ===== TEMPLATE CHANGES ===== Open the template: navbar, and find this code: Code:
<if condition="$show['registerbutton']"> Code:
<td id="navforums" class="vbmenu_control"><a href="$show[nojs_link]#navforums">Pick a Forum!</a> <script type="text/javascript"> vbmenu_register("navforums"); </script></td> Code:
<!-- / NAVBAR POPUP MENUS --> Code:
<!-- popup navforums --> ===== PLUGIN ===== Create a new plugin in the global_start hook location, call it navbarforums and give it this code: Code:
if (is_array($vbulletin->forumcache)) (that means, change the 7 to your PARENT forumid, as it will get all the childforums below this parent) And you're done. Q : Does it list the subforums below the forums too? A : No, only the first level forums below the parentid. Q : My list is too long! A : Your parentid has a lot of forums. |
wtf no plugin or products? >_>
Why are there no phrases? |
Screenshot? Live Demo? Anything? I don't understand
|
A demo site or a screen shot would be great to see it in action. Thanks.
|
Quote:
Create a new plugin, call it navbarforums and give it this code: |
Quote:
Quote:
Quote:
Quote:
|
What hook location for the plugin?
|
I got the code placed correctly but I don't get a list of forums. I changed the parent ID to accomodate one of my forum id's but no dice.
also, would I repeat a portion of the code if I wanted to display multiple "parents"? I understand you don't support this, but I'd appreciate a little help from anyone that's got it working properly. |
global_start, as the navbar is for every page
|
Nice and thanks, but sad doesn't work on a vba cmps index page. For people who asked for a screenshot, have a look to the attached one. Oh, and I saw it now, attention it's listening hidden forums for all users (guests) too.
|
Any update on getting it to work on an cmps index page or what I should change in the plugin?
Very useful feature, but not so helful unless it works on my portal page. Any help is appreciated. Also, what section of the code would be changed/repeated in the instance of multiple parent forums? |
Can't you make it list all forums? There may already be a hack for that, I'm not sure.
|
Quote:
Usually with vBa CMPS the fix is to put the full url somewhere in the navbar code additions but I cant see where to do that. Can anyone help? |
Woo hoo!
I was digging around in the vBa CMPS forums and found the solution to the problem of this menu not working from their pages. Go to Admin CP => vBa CMPS => Default Settings => Portal Output Global Variables Add the word 'navbarforum' (without the quotes) to that setting. That just gets the drop down working. Then, to make the links work - In the plug in you created find the two instances of 'forumdisplay.php' and add the full url before. This means change this: $navbarforum .= "<tr><td class=\"vbmenu_option\"><a href=\"forumdisplay.php?f=".$navforumid."\" rel=\"nofollow\">".$navforumtitle."</a></td></tr>"; to this in two places. $navbarforum .= "<tr><td class=\"vbmenu_option\"><a href=\"http://yourwebsite/forum/forumdisplay.php?f=".$navforumid."\" rel=\"nofollow\">".$navforumtitle."</a></td></tr>"; |
Just edited the fix for vBadvanced CMPS in the previous post of mine. The drop down works fine now.
|
All times are GMT. The time now is 01:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|