vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Forum tab always highlighted (https://vborg.vbsupport.ru/showthread.php?t=325774)

the one 11-16-2017 05:20 AM

Forum tab always highlighted
 
If you go to my forum here https://jandeane81.com/forum.php

You will notice the forum tab highlighted.

If you click on any of the navbar links the forum tab still remains highlighted.

Is there anyway to fix this in the navigation manager

Using vbulletin 4.2.1.

Many thanks

Malc.

MarkFL 11-16-2017 06:17 AM

In your Navigation Manager, do you have anything entered into the "Tab Script(s)" field for the tabs not highlighting correctly?

the one 11-16-2017 10:57 AM

Quote:

Originally Posted by MarkFL (Post 2591104)
In your Navigation Manager, do you have anything entered into the "Tab Script(s)" field for the tabs not highlighting correctly?

Hi Mark

I dont all these are blank

MarkFL 11-16-2017 03:00 PM

Okay, you need to enter the name of the script being called...if you are unsure, look in the associated PHP file, and near the top, you should find a line of the form:

PHP Code:

define('THIS_SCRIPT''script name'); 

Enter the value given there, for each external script.

the one 11-16-2017 03:34 PM

Quote:

Originally Posted by MarkFL (Post 2591107)
Okay, you need to enter the name of the script being called...if you are unsure, look in the associated PHP file, and near the top, you should find a line of the form:

PHP Code:

define('THIS_SCRIPT''script name'); 

Enter the value given there, for each external script.

Sorry to sound thick would this be in my cpanel files and what will the php file be called and where is it situated

I have entered this define('THIS_SCRIPT', 'index'); in the forum tab where it says Tab Script(s)

When i pressed save it gave this error

Error: The specified 'script' is invalid.

MarkFL 11-16-2017 03:47 PM

You should actually have copies of the external scripts on your local media (hard drive, etc.) from which you uploaded to your server, so you can check these copies.

The name of the PHP file you need to check for each tab should be specified in the "Target URL" field in your Navigation Manager.

the one 11-16-2017 03:50 PM

Quote:

Originally Posted by MarkFL (Post 2591109)
You should actually have copies of the external scripts on your local media (hard drive, etc.) from which you uploaded to your server, so you can check these copies.

The name of the PHP file you need to check for each tab should be specified in the "Target URL" field in your Navigation Manager.

I am having a omg moment mark lol

I have access to my cpanel and whm but do not know where to locate any of this lol.

MarkFL 11-16-2017 04:39 PM

You shouldn't need to check the files on your server, unless you haven't kept the files you uploaded to your server. :)

the one 11-16-2017 04:41 PM

Quote:

Originally Posted by MarkFL (Post 2591111)
You shouldn't need to check the files on your server, unless you haven't kept the files you uploaded to your server. :)

Thanks Mark i am rubbish at this but my admin as just logged on and fixed it

Many thanks

MarkFL 11-16-2017 04:44 PM

I should have told you, and I apologize for not suggesting this first, but it's been my experience that the script name is usually defined to be the same as the file name, minus the .php extension.

I'm glad you got it sorted out! :)

the one 11-16-2017 05:13 PM

Only me again so its working but the little navbar under the main one as disappeared and you can only view it if you click the forum tab.See here https://jandeane81.com/forum.php if you then click on chat or latest posts its gone

Any ideas how to get it back for them tabs

Thanks

MarkFL 11-16-2017 05:46 PM

Each tab you set up using the Navigation Manager (and for which you have specified a script) will only have the links and menus in the navbar that you define as its children. So, what you'd have to do is look at the children of the "Forum" tab and make copies of those as the children of the other tabs as you desire.


All times are GMT. The time now is 06:16 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.01089 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete