Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Dynamic Navbarlinks Details »»
Dynamic Navbarlinks
Version: 1.5 PL1, by Coroner Coroner is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.0 Rating:
Released: 11-16-2009 Last Update: 01-03-2010 Installs: 136
Uses Plugins
Additional Files  
No support by the author.

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

File Type: zip DynaimcNavbar v1.3 - vB4.zip (2.6 KB, 248 views)
File Type: zip DynaimcNavbar v1.5 - vB4.zip (3.2 KB, 246 views)
File Type: zip DynaimcNavbar v1.5 PL1 - vB4.zip (3.0 KB, 468 views)

Screenshots

File Type: png Bild 1.png (24.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-21-2009, 10:49 AM
Veer Veer is offline
 
Join Date: Feb 2006
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coroner View Post
See in:
AdminCP - vBulletinOptions - Dynamic Navbar
There you will find an example.

I finished the next version (include usergroup permissions and template hook). It will come in a few days.
Sounds good
Reply With Quote
  #23  
Old 11-22-2009, 02:46 PM
LoveStream LoveStream is offline
 
Join Date: Jan 2009
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

감사합니다. Thank you. I added it too.
Reply With Quote
  #24  
Old 11-29-2009, 03:45 PM
SuperGLS SuperGLS is offline
 
Join Date: Nov 2004
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod. Can't wait to test it out once vB4 is gold. Thanks!
Reply With Quote
  #25  
Old 11-29-2009, 09:04 PM
franzis franzis is offline
 
Join Date: Aug 2007
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Coroner,

what makes the new version, especially the possibility of new data template hook?

Do you also have a German Spachpaket?

LG Franzis
Reply With Quote
  #26  
Old 11-30-2009, 04:09 AM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With the "template_hook" you can say, that this links (or menu) is especially for the blog, ...., .... or ... or ... or. If you leave it blank, it's always for the forum (navbar_start / navbar_end).

Do you need a translation ?
Reply With Quote
  #27  
Old 11-30-2009, 09:33 AM
The Coon The Coon is offline
 
Join Date: Aug 2008
Location: Germany
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At first thank you!

Could you please post an example with usergroup permissions?
I tried this and it does not work:

9|0|7|3|misc.php?do=page&template=Wohnorte|Wohnort e|0|0|2,6

( 2 = Registered Users; 6 = Administrators )

The links are visible (and working) always.

Another Question:
Is it possible, to embed the function (target="_blank") in the future?

THX! Great Addon and nominated!
Reply With Quote
  #28  
Old 11-30-2009, 12:03 PM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an extended example of the installed "test" LINK (line one).

For usergroups: 4 & 5
PHP Code:
1|0|0|1|test.php|Test 1|1|0|0|4,5
For all usergroups:
PHP Code:
1|0|0|1|test.php|Test 1|1|0|0|| 
or
PHP Code:
1|0|0|1|test.php|Test 1|1|0|
embeding (target="_blank"):
Yes, no problem.
Reply With Quote
  #29  
Old 11-30-2009, 01:28 PM
franzis franzis is offline
 
Join Date: Aug 2007
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coroner View Post
With the "template_hook" you can say, that this links (or menu) is especially for the blog, ...., .... or ... or ... or. If you leave it blank, it's always for the forum (navbar_start / navbar_end).

Do you need a translation ?
Ja, please, perhaps at http://www.vbulletin-germany.org would certainly welcome a lot.

And thanks for the explanation because of the hooks, I have understood it.

nominated!

LG Franzis
Reply With Quote
  #30  
Old 11-30-2009, 01:55 PM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Original:
Quote:
<phrase name="setting_dynamic_navbar_desc" date="" username="Coroner"><![CDATA[
Enter a link in each line: <b>ID|DHTML|Sub|Sort|URL|Name|Side|Phrase|Usergrou pids|Hook</b><br /><ul>
<li>ID: INT this ID must be unique</li>
<li>DHTML: INT 0 = normal / 1 = is DHTML</li>
<li>Sub: STR (ID) this means when it's a DHTML menue, the ID is the ID of the main link</li>
<li>Sort: INT a unique number inside each menu</li>
<li>URL: STR the link within</li>
<li>Name: STR name of the link</li>
<li>Side: INT 0 = left / 1 = right</li>
<li>Phrase: INT 0 = Text / 1 = Phrase</li>
<li>Usergroup: STR seperate primary Usergroupids by comma (leave blank for all)</li>
<li>Hook: STR </li>
</ul>]]></phrase>
Translated in german:
Quote:
<phrase name="setting_dynamic_navbar_desc" date="" username="Coroner"><![CDATA[
Gebe einen Link pro Zeile ein: <b>ID|DHTML|Sub|Sort|URL|Name|Side|Phrase|Usergrou pids|Hook</b><br /><ul>
<li>ID: INT diese ID muss einmalig sein</li>
<li>DHTML: INT 0 = normal / 1 = ist DHTML</li>
<li>Sub: STR (ID) gemeint ist: wenn es ein DHTML Men? ist, dann ist die ID die ID von dem Ursprung Link</li>
<li>Sort: INT eine einmalige Nummer innerhalb des Men?</li>
<li>URL: STR der Link selber</li>
<li>Name: STR Name des Links</li>
<li>Side: INT 0 = links / 1 = rechts</li>
<li>Phrase: INT 0 = Text / 1 = Phrase</li>
<li>Usergroup: STR trenne die prim?ren Benutzergruppen mit einem Komma (leer lassen f?r alle)</li>
<li>Hook: STR der Hook der benutzt werden soll (navbar_start/navbar_end ist Standard</li>
</ul>]]></phrase>
Reply With Quote
  #31  
Old 11-30-2009, 02:33 PM
The Coon The Coon is offline
 
Join Date: Aug 2008
Location: Germany
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I got it now! Works fine!

Quote:
Originally Posted by Coroner View Post

embeding (target="_blank"):
Yes, no problem.
:up: So it will become one of my Essentials, I guess!
Great!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:04 PM.


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.09296 seconds
  • Memory Usage 2,345KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete