vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   vB4.2 Navigation Manager - how to discussion (https://vborg.vbsupport.ru/showthread.php?t=283146)

Boofo 05-24-2012 06:12 PM

I misunderstood what you meant then. My bad.

I had an options setting for the days in the mod.

nhawk 05-24-2012 06:18 PM

Quote:

Originally Posted by Boofo (Post 2332430)
I misunderstood what you meant then. My bad.

I had an options setting for the days in the mod.

Ah, it's a member option then. Not one set in the ACP.

That's a different animal then. ;)

Paul M 05-24-2012 06:28 PM

Not really, you just change

PHP Code:

$days = array(7,14,30,120,180); 

To pick up the settings from where-ever they are stored.



BTW, I would use ;

PHP Code:

$tabdata[$tabforumid]['children'][] = array( 

There isnt any reason to enclose $tabforumid in quotes, but children should be.

nhawk 05-24-2012 06:32 PM

I understand the array can be from anywhere. But, I'm trying to avoid the use of a plugin in most cases. Creating the links in the DB eliminates the plugin and allows vB to handle the menu system.

But I can see where using a plugin to create the menu would be needed at times. Heck, I'm the one that first questioned the dynamic creation of menus in this thread. :D

Boofo 05-24-2012 06:33 PM

Quote:

Originally Posted by nhawk (Post 2332434)
Ah, it's a member option then. Not one set in the ACP.

That's a different animal then. ;)

No, it was an admin cp option.

--------------- Added [DATE]1337888754[/DATE] at [TIME]1337888754[/TIME] ---------------

I'm getting W3C Validation errors like crazy now:

HTML Code:

syntax of attribute value does not conform to declared value

<li id=""><a href="search.php?do=process&amp;searchdate=90">Post For ?

The value of an attribute contained something that is not allowed by the specified syntax for that type of attribute. For instance, the ?selected? attribute must be either minimized as ?selected? or spelled out in full as ?selected="selected"?; the variant ?selected=""? is not allowed.

--------------- Added [DATE]1337896261[/DATE] at [TIME]1337896261[/TIME] ---------------

How do you get this to display in more than the forum tab when doing it via a plugun?

--------------- Added [DATE]1337896906[/DATE] at [TIME]1337896906[/TIME] ---------------

Quote:

Originally Posted by Badshah93 (Post 2332427)
use array_slice, array_merge to adjust position

I tried it with $roots, but it seems that isn't the right way.

AusPhotography 05-25-2012 11:18 PM

If you need to modify the Tab name on the fly...
Eg: Our photo competition system shows the number of competitions open for you to enter.

@hook: parse_templates (just convenient for me)
Code:

$vbphrase['vb_navigation_tab_YOURTABNAME_text'] = "New text";
Easy!

--------------- Added [DATE]1337991781[/DATE] at [TIME]1337991781[/TIME] ---------------

OP updated with correct hook name set_navigation_tab_fallaback

--------------- Added [DATE]1337992087[/DATE] at [TIME]1337992087[/TIME] ---------------

Using $root example here...

https://vborg.vbsupport.ru/showpost....&postcount=409

--------------- Added [DATE]1337993314[/DATE] at [TIME]1337993314[/TIME] ---------------

Also: More doco needed ... https://www.vbulletin.com/forum/show...96#post2297796

Easy5s.net 05-26-2012 03:10 AM

Pls help me:
https://vborg.vbsupport.ru/showthread.php?t=283451

Paul M 05-26-2012 10:11 AM

No one is going to just write code for you (well, unless maybe you pay them).

Boofo 05-26-2012 01:12 PM

Quote:

Originally Posted by snoopytas (Post 2332890)
If you need to modify the Tab name on the fly...
Eg: Our photo competition system shows the number of competitions open for you to enter.

@hook: parse_templates (just convenient for me)
Code:

$vbphrase['vb_navigation_tab_YOURTABNAME_text'] = "New text";
Easy!

Why nor just edit the phrase?

--------------- Added [DATE]1338041603[/DATE] at [TIME]1338041603[/TIME] ---------------

Quote:

Originally Posted by Paul M (Post 2333012)
No one is going to just write code for you (well, unless maybe you pay them).

Exsactly! As a lot of us are still leaning the new system, too. ;)

AusPhotography 05-26-2012 10:05 PM

Quote:

Originally Posted by Boofo (Post 2333063)
Why nor just edit the phrase?

Because it's dynamic!

We have a Competitions tab which shows Competitions (C,V) where C = competitions open to enter and V = competitions open for voting.
C and V set set per user based on their competition system status.


All times are GMT. The time now is 01:34 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.01403 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (6)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