vb.org Archive

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

Coroner 05-30-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:


A "good" navbar Template with the following 3 template_hooks:
  1. $template_hook[navbar_buttons_right]
  2. $template_hook[navbar_buttons_left]
  3. $ad_location[ad_navbar_below]
If one of these HOOKs missing, the links could not be shown.
Changlog:
v1.3
Added a Bit for Phrases set. This will allow you to enter phrases instead of text.

Coroner 05-31-2009 06:51 AM

A short description for the installed example:
Code:

1|0|0|1|test.php|Test 1|1|0
2|1|0|1||TEST 2|1|0
3|0|2|2|aaa.php|AAA|1|0
4|0|2|3|bbb.php|BBB|1|0
5|0|2|4||SUB TEST|1|0
6|0|2|5|ccc.php|CCC|1|0
7|1|0|1||TEST 3|0|0
8|0|7|2|zzz.php|ZZZ|0|0

This is a normal link (URL & Name are required)
Code:

1|0|0|1|test.php|Test 1|1|0
This is a link for a dhtml menu (URL doesn't required and MUST leave blank)
Code:

2|1|0|1||TEST 2|1|0
These are 2 submenus (SUB = 2, URL & Name are required)
Code:

3|0|2|2|aaa.php|AAA|1|0
4|0|2|3|bbb.php|BBB|1|0

Another link for a dhtml menu (URL are not required and MUST leave blank, SUB = 2 this is a new submen? in the dhtml (ID: 2))
Code:

5|0|2|4||SUB TEST|1|0
Another submenu
Code:

6|0|2|5|ccc.php|CCC|1|0
A new dhtml menu (SUB = 0 (no ID to an existing))
Code:

7|1|0|1||TEST 3|0|0
8|0|7|2|zzz.php|ZZZ|0|0

"SORTORDER" must be "unique", but will NOT sort the entries.
Also submenus (any kind) must on the correct side - otherwiseit will not shown.

Here is an example for phrases:
old code:
Code:

8|0|7|2|zzz.php|ZZZ|0|0
new code:
Code:

8|0|7|2|zzz.php|dyn_zzz|0|1
This means, you havbe to create a GLOBAL phrase:
varname: dyn_zzz
text: ZZZ

Loki12 05-31-2009 09:29 AM

Wow this is a great idea ... editing the navbar template is always a hassle, especially when upgrading. Such a feature should be standard in vBulletin.

Mike-D 05-31-2009 01:04 PM

Quote:

Originally Posted by Loki12 (Post 1820585)
... editing the navbar template is always a hassle, especially when upgrading.

Not by using the TMS Addon :D

RichieBoy67 05-31-2009 01:08 PM

Thanks for this--I actually just started working on a navbar manually. I was going to add drop downs but then I spotted this mod so now I actually may have a bit more free time today thanks to this!!

Thanks! - Should make a PITA job a little easier..

4nawadir.com 05-31-2009 01:09 PM

Good work
Installed

saadessa 05-31-2009 03:05 PM

thank you
will try

smooth-c 05-31-2009 05:03 PM

Quote:

Originally Posted by Mike-D (Post 1820636)
Not by using the TMS Addon :D

Get back under your bridge! :p

Elenna 06-13-2009 02:36 PM

This is brilliant, thank you. I used to use something very similar back for phpNuke, and missed the ease of administration of it.

Saviour 06-24-2009 11:25 PM

I'm using vbAdvanced Links 3.2 and vBulletin 3.8.3.

This mod conflicts with the Links Directory mod from VBAdvanced. When using this mod and clicking the View Link Details of a link...it breaks the Links mod...displaying no link details.

Disabling this mods plugin...fixes the issue.

Sorry...clicks Uninstalled.


All times are GMT. The time now is 11:19 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.01349 seconds
  • Memory Usage 1,738KB
  • 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
  • (9)bbcode_code_printable
  • (2)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