The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Dynamic Navbarlinks Details »» | |||||||||||||||||||||||||||||||||
Idea by Ragtek
I only added support for dhtml menu and side selection. What does it do: Over your vBulletin Optionen you can create links for the navbar (single or dhtml) without changing any template (you can not use phrases). Installation: 1st upload the php - then simply import the product. After import 3 new links were created (the example from image no.2). Requirements: 2 template_hooks: $template_hook[navbar_start] (in vB 3.8 it's called: navbar_buttons_right) $template_hook[navbar_end] (in vB 3.8 it's called: navbar_buttons_left) If one of these HOOKs missing, the links could not be shown. (Tested on vB4 Beta 3) --- [28.11.2009] Upgrade to version v1.5. What's new ? Usergrouppermissions and template_hooks. You can leave the "old" structure. This will have no effect on the navbar. But ... if you like add to a line or menue: |2,3,4|navbar_start This little example means, that the link or menue is only visible for the primary usergroups 2,3 and 4. The Template Hook we're using is "navbar_start". If you leave the usergroup(s) blank, permission for ALL groups are given. Some words again: If you are using a template_hook, the side isn't in use. If you leave the template_hook blank, default hook is "navbar_start" or "navbar_end" depended on the "side". Hook's are in Beta Stage. Normaly, it won't work with CMS. If you really need it, change the Hook Location from "global_setup_complete" to "global_bootstrap_init_complete". Remember: With this location you can't use phrases. Download Now
Screenshots
Show Your Support
|
Comments |
#62
|
|||
|
|||
Which problem ? Usergroup Access ?
|
#63
|
|||
|
|||
yeah it doesn't seem to care about the usergroup id's ... unregistered users can still see the menu.
|
#64
|
|||
|
|||
From your code:
Code:
$id = intval ($dynamic_line[0]); $dhtml = intval ($dynamic_line[1]); $sub = intval ($dynamic_line[2]); $sort = intval ($dynamic_line[3]); $url = $dynamic_line[4]; $name = $dynamic_line[5]; $side = intval ($dynamic_line[6]); $phras = intval ($dynamic_line[7]); $break = intval ($dynamic_line[8]); $usergroups = $dynamic_line[9]; $hook = $dynamic_line[10]; Whatever $break is, it's throwing off the index of the array. $usergroups is actually at position 8 according to your documentation: Quote:
|
#65
|
|||
|
|||
Can i ask a question to the author or to any user of this hack?
I would know if, after creating a new tab , if clicked, the new tab, will be blank? |
#66
|
|||
|
|||
Hi, I am new to VBulletin, I have installed the addon successfully but have no idea how to edit the menu, for example modify the test links.
Any pointers as to where I can find information to accomplish this would be much appreciated. Pete |
#67
|
|||
|
|||
@Boots:
I don't know, why there is the value $break. I saw that it was "an older" php script. The $break value is $target. But ... I've upgraded the version to PL1. @markopete: In your AdminCP - vBulletin Settings. Scroll down to Dynamic Navbar. |
#68
|
|||
|
|||
Quote:
Excellent mod! |
#69
|
||||
|
||||
why isn't there a navbar (and for that matter, a standard menu/button/link editor) for vB, for all the navbars and menu's?
can this be converted into a mode admin-able GUI, where it's simply a matter of clicking "Add a link to the navbar", "add a sub category if this navbar". "add a drop down to this link"? Then....this becomes a mandatory mod. |
#70
|
|||
|
|||
I tried the following code in navbar in VB4 and it is not working. Will this mod fix that?
<!-- second nav button row --> <div align="center"><table class="tborder" cellpadding="2"cellspacing="3"border=0" width="90%" align="center" style="border-top-width:0px"> <tr> <if condition="is_member_of($vbulletin->userinfo, 11)"><td class="vbmenu_control"><a href="http://www.purposefulcoach.com/MP3/Audio2/Audio2Phunt.html">Audio Resources for Purpose Hunters</a></td></if> <if condition="is_member_of($vbulletin->userinfo, 11)"><td class="vbmenu_control"><a href="http://www.purposefulcoach.com/PDF/User2PHunter.html">File Resources for Purpose Hunters </a></td></if> <if condition="is_member_of($vbulletin->userinfo, 13)"><td class="vbmenu_control"><a href="http://www.purposefulcoach.com/MP3/Audio3/Audio3trainedc.html">Audio Resources for Trained Coaches</a></td></if> <if condition="is_member_of($vbulletin->userinfo, 13)"><td class="vbmenu_control"><a href="http://www.purposefulcoach.com/PDF/User3Trained.html">File Resources for Trained Coaches </a></td></if> </tr> <tr> <if condition="is_member_of($vbulletin->userinfo, 12, 10, 9, 6)"><td class="vbmenu_control"><a href="http://www.purposefulcoach.com/MP3/Audio4/Audio4Certs.html">Audio Resources for Certified Coaches</a></td></if> <if condition="is_member_of($vbulletin->userinfo, 12, 10, 9, 6)"><td class="vbmenu_control"><a href="http://www.purposefulcoach.com/PDF/User4Certifying.html">File Resources for Certified Coaches </a></td></if> <if condition="is_member_of($vbulletin->userinfo, 1, 4, 2, 3, 5, 7)"><td class="vbmenu_control"><a href="http://www.purposefulcoach.com/MP3/Audio1/Audio1.html">Audio Resources</a></td></if> <if condition="is_member_of($vbulletin->userinfo, 1, 2)"><td class="vbmenu_control"><a href="http://www.purposefulcoach.com/PDF/User1.html">File Resources</a></td></if> <if condition="is_member_of($vbulletin->userinfo, 4, 3, 5, 7)"><td class="vbmenu_control"><a href="http://www.purposefulcoach.com/PDF/User0Visitor.html">File Resources</a></td></if></tr> </div> <!-- / second nav button row --> |
#71
|
|||
|
|||
try it ....
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|