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 01-02-2010 10:25 AM

Which problem ? Usergroup Access ?

Boots 01-02-2010 04:30 PM

yeah it doesn't seem to care about the usergroup id's ... unregistered users can still see the menu.

Boots 01-02-2010 04:48 PM

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:

0 ID: INT this ID must be unique
1 DHTML: INT 0 = normal / 1 = is DHTML
2 Sub: STR (ID) this means when it's a DHTML menue, the ID is the ID of the main link
3 Sort: INT a unique number inside each menu
4 URL: STR the link within
5 Name: STR name of the link
6 Side: INT 0 = left / 1 = right
7 Phrase: INT 0 = Text / 1 = Phrase
8 Usergroup: STR seperate primary Usergroupids by comma (leave blank for all)
9 Hook: STR

Sworm 01-02-2010 06:40 PM

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?

markopete 01-03-2010 10:32 PM

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

Coroner 01-04-2010 10:29 AM

@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.

way2xtreme 01-05-2010 08:25 AM

Quote:

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.
I tried above but it didn't show, where / what should I check? (the links are showing in forum and i am not using any phrases )

Excellent mod!

texasteamplayer 01-15-2010 08:31 PM

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.

BobbeeV 02-04-2010 01:32 AM

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 -->

Coroner 02-04-2010 04:30 PM

try it ....


All times are GMT. The time now is 01:46 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.01170 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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