vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Dynamic Navbarlinks (https://vborg.vbsupport.ru/showthread.php?t=228166)

Coroner 11-16-2009 10:00 PM

Dynamic Navbarlinks
 
1 Attachment(s)
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.

Alibass 11-17-2009 04:34 AM

Great work, thanks for doing this so quickly. This is going to make things a lot easier on the navbar. :)

Tagged for a later install.

yilmaz 11-17-2009 05:23 AM

nice work

Billspaintball 11-17-2009 05:40 AM

This looks interesting.
Tagging for later use :)

ragtek 11-17-2009 06:13 AM

thx 4 releasing:)

Bounce 11-17-2009 03:00 PM

Possible to have it usergroup based? So that only a certain usergroup can see a certain link/dropdown?

rtyagis 11-17-2009 03:11 PM

Great work, thanks! :up:

Coroner 11-17-2009 03:15 PM

Not in this version. I've planing another version especially for the vB4 that you can use the "new navbar menu" in a certain Mod. This means, I've creating menues for the forum, blog, cms or ....
Therefor I can try to implement a usergroupbit for it.

But ... this is future talk.

Bounce 11-17-2009 03:41 PM

Quote:

Originally Posted by Coroner (Post 1915964)
Not in this version. I've planing another version especially for the vB4 that you can use the "new navbar menu" in a certain Mod. This means, I've creating menues for the forum, blog, cms or ....
Therefor I can try to implement a usergroupbit for it.

But ... this is future talk.

ok mate, nice add on, will prob use it for something :)

abdobasha2004 11-17-2009 04:21 PM

thanks
reserved
I think this can be done by just template edits ?


All times are GMT. The time now is 01:51 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
  • Page Generation 0.01047 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)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
  • (10)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