![]() |
set_navigation_tab_main is a hook location. That is selected when you create a plugin. The code he posted is for the plugin. https://www.vbulletin.com/docs/html/plugin_system
|
ok the link helped a bit now i have
http://www.xboxplayers.co.uk/site/images/hookplugin.jpg i guess as i dont know what array is ive got that wrong |
You need to replace this:
(in_array($GLOBALS['forumid'], array(2,15))) with a condition unique to your page. |
Sorry to be dumb Lynne but i don't understand what condition i would even begin to look for i tried forum/forums thinking it goes with the php page somehow, the forum id is definitely 6 but again i don't understand array where do i begin?
|
i want to show one of my forums completely in new tab
but how can i set sub forums or sub threads on that forum highlight? --------------- Added [DATE]1340307067[/DATE] at [TIME]1340307067[/TIME] --------------- Quote:
|
You would need to put all the forumids into the condition.
|
Quote:
thank you but when a thread on that forums opened, default tab selected again what should we do with threads? |
It works just fine on my test site for all the threads. Can you please post *exacly* what you have done?
|
Quote:
Quote:
|
How do I set up the navigation manager so that when the current page is support page that the support menu STAYS in the navigation bar? What's happening is once I click the links in the menus or links I created via the navigation manager, it shows the default forum links in the navigation bar and I definitely DO NOT want that. Any clues?
|
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.
|
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? |
You need a plugin. Hook location - set_navigation_tab_main
PHP Code:
|
Ok, I have made a plugin under the location of "set_navigation_tab_main"
This is the current Code PHP Code:
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 |
Do not put anything in the tab script area.
|
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. |
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).
|
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. |
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.
|
yep thats sorted it thanks. I dont understand it but it works :D
|
the public tab changes back to having the private tab highlighted when im in the public tabs sub forums
|
Quote:
Now, Anyone know a way to copy a group of Link/Menus? Not the actuall tabs but the sub links etc. I have about 7 on my main "forum" tab but then the menus are quite big. I would like to copy all these to my "classifieds" tab for the time being and then might change a few later down the road. I hope there is a quick way to copy them! Thanks Mat |
I think Andreas wrote a modification that will do what you want with the sub links.
|
Quote:
|
Quote:
|
Try setting "Append 'tabid' to URL" to Yes in the Navigation Manager for that tab and see if that fixes the issue. Otherwise, you will need to write a plugin like above. See the manual here - https://www.vbulletin.com/docs/html/plugin_system
|
Thanks. That worked :)
|
1 Attachment(s)
The home tab now highlights, but the site does not land on that page even though I made the default the Home tab.
I don't know PHP, so writing my own plugin is out. Nelson |
My forum tab highlights and I tried everything to get it to stop that. Any ideas what I should do?
|
Can you post all the information in the Navigation Manager tab that isn't working?
|
Identity vbtab_forum
Active Yes Product vBulletin Title Forum Target URL forum.php{session.sessionurl_q} Display Order 5 Show Permission Name Append 'tabid' to URL No Tab Script(s) That is what I have. |
So your target is the forum.php page but you don't want that tab to highlight when you go there?
|
I'm having trouble as well. I'm trying to set up a "Today's Posts" tab that leads to "search.php?do=getdaily". When I select this tab, the forum.php tab remains highlighted and "Today's Posts" is not highlighted.
Identity: tab_nz,1_358 Active: Yes Product: vBulletin Title: Today's Posts Target URL: search.php?do=getdaily Display Order: 55 Show Permission Name: [Blank] Append 'tabid' to URL: Yes Tab Script(s): search search.php does have THIS_SCRIPT defined as such: PHP Code:
|
What I did, and it isn't perfect, is to add the TabID to EVERY tab. That will make the tab you want highlighted.
It will not change the breadcrumbs however. Nelson |
Quote:
|
All times are GMT. The time now is 08:00 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|