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 |
#42
|
|||
|
|||
Oh yes, I had tried, then it looks like this:
Attachment 107121 Excuse me, that I'm doing because of stress I also put up vBH-Add new tabs, which can not make other problems? LG Franzis |
#43
|
|||
|
|||
Crap .... that's my fault.
I've fixed it now. Simply overwrite the PHP file. What have I done ? search for: Code:
$dynamic_html = ''; $dynav_hook = array (); if (!empty ($navigation)) { foreach ($navigation AS $val) { $ismenue = 0; $hook = 'empty'; foreach ($val AS $key => $navmenue) Code:
$dynav_hook = array (); if (!empty ($navigation)) { foreach ($navigation AS $val) { $ismenue = 0; $hook = 'empty'; $dynamic_html = ''; foreach ($val AS $key => $navmenue) |
#44
|
|||
|
|||
Sorry, I am confused or simply silly:
There are 10 parameters, or am I wrong? Attachment 107133 Why do I have to write the numbers for the usergroups at the 10th position? And this (beginning ID2-8): Code:
1|1|0|1||Intern|1|0|0|2,6| 2|0|1|2|misc.php?do=page&template=Cats|Cats|1|0|0|2,6| 3|0|1|3|misc.php?do=page&template=Wohnorte|Wohnorte|1|0|0|2,6| 4|0|1|4||Tutorials|1|0|0|2,6| 5|0|1|5|http://www.coon-blog.de/Tutorials/Bilder_hochladen.html|Bilder hochladen|1|0|0|2,6| 6|0|1|6|http://www.coon-blog.de/Tutorials/Link_einfuegen.html|Link einf?gen|1|0|0|2,6| 7|0|1|7||SUB TEST|1|0|0|2,6| 8|0|1|8|ccc.php|CCC|1|0|0|2,6| Greetings! |
#45
|
|||
|
|||
Yes you're wrong. There're eleven parameters.
Position 8 is a break and isn't in use |
#46
|
|||
|
|||
Many thanks Coroner, problem is fixed and can now go right off
Und ich hoffe du bietest das bald auch im deutschen vB an LG Franzis |
#47
|
|||
|
|||
Sorry, too many differences between the admins and me. That's why all my mod are gone there.
cheers |
#48
|
||||
|
||||
Very Nice - Thanks.
|
#49
|
|||
|
|||
Nice one thanks.
Working fine on Beta 5 |
#50
|
|||
|
|||
Doesn't work in RC4... got the following error:
Warning: require_once([path]/includes/dynamic_navbar.php) [function.require-once]: failed to open stream: No such file or directory in [path]/packages/vbcms/controller/content.php(272) : eval()'d code on line 1 Fatal error: require_once() [function.require]: Failed opening required '/****/*****/public_html/****/includes/dynamic_navbar.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html/*****/packages/vbcms/controller/content.php(272) : eval()'d code on line 1 |
#51
|
|||
|
|||
Tagged, I'll be using this for sure shortly!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|