vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create a New Tab in the navbar (with template) (https://vborg.vbsupport.ru/showthread.php?t=228313)

Adem GEN? 11-29-2009 12:11 AM

Hi,

https://vborg.vbsupport.ru/showthread.php?t=228112
A test.php page I've created here

New tab is not selected TEST

My bad English

For test.php please tell me?

Regards

ragtek 11-29-2009 08:32 AM

Quote:

Originally Posted by AdemGEN? (Post 1922262)
Hi,

https://vborg.vbsupport.ru/showthread.php?t=228112
A test.php page I've created here

New tab is not selected TEST

My bad English

For test.php please tell me?

Regards

what?

Adem GEN? 11-29-2009 08:55 AM

Like this https://vborg.vbsupport.ru/attachmen...8&d=1258596456

I click new tab TEST
test.php page opens
But
Forum tab will be selected

Lynne 11-29-2009 02:04 PM

Quote:

Originally Posted by AdemGEN? (Post 1922403)
Like this https://vborg.vbsupport.ru/attachmen...8&d=1258596456

I click new tab TEST
test.php page opens
But
Forum tab will be selected

Reread part 2 of the article:
Quote:

As you see, i've defined "ragteknews" on my news.php page.If ragteknews is defined, $vbulletion->options['selectednavtab'] will be set to ragteknews.

steven s 11-29-2009 02:36 PM

Sorry, this may very obvious, but why is there a condition?
I would want the tab to be visible whether I am viewing the CMS, Blog or forum.

EDIT: As it is always with me, I understand it a little more after posting a questions and rereading the original post.
Is the condition for when the link is selected, do some action, like go to that link?

EDIT2: How do I put a name on the tab? Do I create a phrase?
Is there anything wrong with me replacing {vb:rawphrase ragtek_news} with my tab name?

Lynne 11-29-2009 03:43 PM

The condition is for when that tab is 'active' and the submenu shows.

steven s 11-29-2009 04:47 PM

Quote:

Originally Posted by Lynne (Post 1922552)
The condition is for when that tab is 'active' and the submenu shows.

Ah. Similar to your new tab in nav bar?
I'm just looking to add a tab when clicked goes to another page.

Lynne 11-29-2009 04:57 PM

Quote:

Originally Posted by 1996 328ti (Post 1922592)
Ah. Similar to your new tab in nav bar?
I'm just looking to add a tab when clicked goes to another page.

Yes, my mod and ragtek's do the same thing. We happened to each write them using a different approach to do the same thing. :)

pokash 11-29-2009 08:52 PM

Could someone show this noob how for example I could create 2 tabs each linking to an url? I don't understand what exactly I need to do.

Hoagie 11-30-2009 11:51 AM

any word on my issues? post #17 and the forum tab selected instead of the "Ranks" page???


All times are GMT. The time now is 04:45 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.01426 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
  • (5)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