vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   New tab not staying selected (https://vborg.vbsupport.ru/showthread.php?t=283498)

Lynne 06-28-2012 02:44 PM

Since you have supplied very little information, all I can really tell you is that you enter the correct information into the Tab Script(s) field for the tab.

M4T VW 07-22-2012 09:43 AM

I have 3 tabs on my forum. Home - Forum - Classifieds

The classifieds tab is a link to a section of the forums, forumdisplay.php?11-Classifieds

I have put "forumdisplay" in the tab script but when you visit some different sections of the forum, the highlighted tab changes to the classifieds tab. It only happens on some sections.
Obviously im aiming for it to only highlight when you are in the "forumdisplay.php?11-Classifieds" sections.

Any ideas?

Lynne 07-22-2012 04:46 PM

You need a plugin. Hook location - set_navigation_tab_main
PHP Code:

if (in_array($GLOBALS['forumid'], array(y,z)))  $root 'tab_xxx_xxx'

Change y,z to your forumids and tab_xxx_xxx to the tab name.

M4T VW 07-22-2012 08:26 PM

Ok, I have made a plugin under the location of "set_navigation_tab_main"

This is the current Code
PHP Code:

if (in_array($GLOBALS['forumid'], array(155,100,48,46,50,54,56,101,49,47,55)))  $root 'tab_mdkx_204'

The tab name is "tab_mdkx_204"
In the tab I have the following Url "forumdisplay.php?{session.sessionurl_q}11-Classifieds"
And in tab script I have just "forum display"

11 is the forum classifieds display, and the numbers in the array above are all the sections under the section 11 forum.

However when I view a few different forums (not all) the classifieds tab gets selected. For example its shows on my general chat section 16.

What am I doing wrong?

Thanks Lynne

Mat

Lynne 07-23-2012 02:33 AM

Do not put anything in the tab script area.

invitezone 07-26-2012 07:10 PM

I wonder if someone can give me some help on my tabs.
I am sure your sick of tbs questions by now by reading some of the above responces to your help, but im really stuck with this.
I am a total n00b with Vbulletin so I cannot make sense of the advice you are giving above, so please if you can be clear with me :)

any here are some screens of the tabs I have created.

http://img232.imageshack.us/img232/1633/tab1g.jpg
http://img826.imageshack.us/img826/8878/tab2c.jpg
http://img818.imageshack.us/img818/2148/tab3x.jpg
http://img266.imageshack.us/img266/8233/tab4.jpg

Now as you can see I have the tabs working, but as also im sure you will see straight away, my tabs wont be highlighted after I click them.
I know from reading above that I may need to create plugins or something and do something with This_Script, but I dont really know what these things are or how to do them.

I know I ask a lot but this is so frustrating. I would really appreciate anyone taking the time to write a simple step by step set of instructions for me to follow.
Hopefully it will help others with their problems as well as me.

Thank you to whoever tries to help me.

kh99 07-26-2012 07:24 PM

Try this: set the Tab Script fields as follows: Private Forum and Public Forum tabs - leave blank. Arcade - "arcade", and DONATE - "payments" (don't include the quotes).

invitezone 07-26-2012 08:32 PM

ok the payments and donate tabs are highlighting fine now, thanks for that.
The Private Forum and Public Forum tabs are still not working though. The Private forum tab is highlighted when i click on either one of them.

kh99 07-26-2012 08:41 PM

Hmm...and you still have "Append 'tabid' to url" set to yes only for the private tab? Try putting "index" in the Tab Script field of the Public tab.

invitezone 07-26-2012 09:52 PM

yep thats sorted it thanks. I dont understand it but it works :D


All times are GMT. The time now is 04:38 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.01181 seconds
  • Memory Usage 1,739KB
  • 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_php_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