Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #51  
Old 06-28-2012, 02:44 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #52  
Old 07-22-2012, 09:43 AM
M4T VW M4T VW is offline
 
Join Date: Jan 2012
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #53  
Old 07-22-2012, 04:46 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #54  
Old 07-22-2012, 08:26 PM
M4T VW M4T VW is offline
 
Join Date: Jan 2012
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #55  
Old 07-23-2012, 02:33 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do not put anything in the tab script area.
Reply With Quote
  #56  
Old 07-26-2012, 07:10 PM
invitezone invitezone is offline
 
Join Date: Mar 2008
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.






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.
Reply With Quote
  #57  
Old 07-26-2012, 07:24 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #58  
Old 07-26-2012, 08:32 PM
invitezone invitezone is offline
 
Join Date: Mar 2008
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #59  
Old 07-26-2012, 08:41 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #60  
Old 07-26-2012, 09:52 PM
invitezone invitezone is offline
 
Join Date: Mar 2008
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep thats sorted it thanks. I dont understand it but it works
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:48 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.05936 seconds
  • Memory Usage 2,274KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete