vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Tab and Link Manager Lite (https://vborg.vbsupport.ru/showthread.php?t=247375)

COL NIL SATIS 11-21-2010 04:26 PM

tagged !!

mgurain 12-12-2010 08:36 AM

These did not work ! :
- links
- submenues
- highlight of active tab
I have added links & submenues but they didn't show up.
please fix ?
thanks,,

Mosh 12-12-2010 08:48 PM

Quote:

Originally Posted by Fusion2 (Post 2124188)
The pictures show how to create separate tabs, links and submenus.

My question: Is there a place where you can associate tabs with specific links and submenus, as there is no photo showing that?

Simple, if i create TAB 1, and want to display only LINK 2 and SUBMENU 3, not others?

Sub-menu links are associated (linked) with one Link, and Links are associated (linked) with one Tab, not the other way around, so you can not create one Link and associate it with more than one Tab at the same time, same goes for Sub-menu links, they can only be associated than one Link at a time.

Mosh 12-12-2010 08:52 PM

Quote:

Originally Posted by mgurain (Post 2132760)
These did not work ! :
- links
- submenues
- highlight of active tab
I have added links & submenues but they didn't show up.
please fix ?
thanks,,

There is nothing wrong with this hack at all, it is how you are utilising it on your site.... there is nothing to fix, this hack has worked bug-free for more than a year (no actual bug or error messages have ever been posted here, and that is since I released it here in July 2010).

Merjawy 12-12-2010 11:33 PM

Thanks for the mod

Tabs work just fine.. but links don't show anywhere.. I haven't tried sublinks yet

Mosh 01-08-2011 12:52 AM

Hi all,

Free support has now been moved back to vBulletin.org.

Please see the first post for more information (and also this thread at Wolfshead Solutions).

Enjoy :)

Regards,

Mosh Shigdar - Wolfshead Solutions.

Mosh 01-08-2011 04:38 AM

Quote:

Originally Posted by ascroft (Post 2093880)
Thanks - installed this - with 2 links under the tab - however they (the links) don't appear to display when I hover over the tab - if I click on the tab it launches the URL I have on the tab.

Quote:

Originally Posted by Russ_T (Post 2104734)
Does this work for anyone? Doesn't highlight for me at all.

I have so far not found a single tab mod that works :( Anyone any ideas please?

Quote:

Originally Posted by mgurain (Post 2132760)
These did not work ! :
- links
- submenues
- highlight of active tab
I have added links & submenues but they didn't show up.

Links and SubMenu Links only appear under a tab when it is highlighted.

A tab will only be highlighted if:
  • the file is locally installed on the forum (not an external web site)
  • the THIS_SCRIPT line in the local file matches the file's name (define('THIS_SCRIPT', 'XXXX'))
  • the tab is not pointing another tab that has the same THIS_SCRIPT line in the file
  • the links associated with the tab are sections related to the local file.
I will give an example below (it is bare-bones, and will not work as it is, but is an example to explain the above):

Lets say we have a file you have uploaded to the root of your forum.... say test.php, the contents are as below:
PHP Code:

<?php 
// this should be the same name as the file
define('THIS_SCRIPT''test');  

// set to main page, if there are no arguments
if (empty($_REQUEST['do']))
{
    
$_REQUEST['do'] = 'main';
}

// this is the main section
if ($_REQUEST['do'] == 'main')
{
    
// DO MAIN STUFF
}

// this is another section
if ($_REQUEST['do'] == 'stuff')
{
    
// DO SOME STUFF
}

// this is yet another section
if ($_REQUEST['do'] == 'otherstuff')
{
    
// DO SOME OTHER STUFF
}
?>


We can create the tab and point the Tab URL to test.php or test.php?do=main.

The two links that will allow the tab to stay highlighted when either are clicked would have to have the Link URL field of each link set to test.php?do=stuff and test.php?do=otherstuff

Tab highlighting will not work if:
  • the Tab URL points to an external site
  • the THIS_SCRIPT line in the file matches another file that already has another tab that points to it
  • the Link URL fields do not point to sections of the same file that is pointed to by the tab they are associated with

I hope this explain things a bit, and as to why some people are having problems with getting tabs to highlight. It is not this hack that is the problem, it is how it is being utilised that is the problem.

kether1 01-11-2011 11:30 PM

Guess I am not understanding this mod.

Here is what I want to do:

I have the vBadvanced CMS as a portal page for my site. It is located in the root of the site on the same level as the forum.

I created a tab that is called portal and pointed it to index.php. It works great except for the fact that it highlights the forum.php tab that come with vbulletin4.

If I click on the forum.php tab (native to vb4) it goes to forum.php, but now, after installing this modification, it highlights the Portal tab (index.php) created by this mod.

To be clear my two links are:

http://www.mysite.com/forum/index.php (vbadvanced portal)
and
http://www.mysite.com/forum/forum.php (regular forum page)

vBadvanced comes with the ability to create a custom tab for each page created with it, but no way to easily add submenu links (or as this product calls them - 'links') to the navbar. So, I came here looking for help and found this mod.

I installed this on my test site which is vb4.1.0pl2.

It doesn't seem to matter what file I link to. Every tab I create always highlights the forum tab.

some links I tried include:

index.php
downloads.php
php_test.php

No matter the link, if it is on the site, the tab links correctly, but highlights the forum tab. The other native tab, "whats new", seems to work just like it should and is not affected by this modification.

Can you offer any advice? I cannot seem to get it to work correctly on my own.

Thank you.

Mosh 01-12-2011 10:11 AM

Quote:

Originally Posted by kether1 (Post 2147770)
Guess I am not understanding this mod.

Here is what I want to do:

I have the vBadvanced CMS as a portal page for my site. It is located in the root of the site on the same level as the forum.

I created a tab that is called portal and pointed it to index.php. It works great except for the fact that it highlights the forum.php tab that come with vbulletin4.

If I click on the forum.php tab (native to vb4) it goes to forum.php, but now, after installing this modification, it highlights the Portal tab (index.php) created by this mod.

To be clear my two links are:

http://www.mysite.com/forum/index.php (vbadvanced portal)
and
http://www.mysite.com/forum/forum.php (regular forum page)

vBadvanced comes with the ability to create a custom tab for each page created with it, but no way to easily add submenu links (or as this product calls them - 'links') to the navbar. So, I came here looking for help and found this mod.

I installed this on my test site which is vb4.1.0pl2.

It doesn't seem to matter what file I link to. Every tab I create always highlights the forum tab.

some links I tried include:

index.php
downloads.php
php_test.php

No matter the link, if it is on the site, the tab links correctly, but highlights the forum tab. The other native tab, "whats new", seems to work just like it should and is not affected by this modification.

Can you offer any advice? I cannot seem to get it to work correctly on my own.

Thank you.

As the vBadvanced index file has the THIS_SCRIPT line of:
Code:

define('THIS_SCRIPT', 'adv_index');
You need to edit the file and change it this to:
Code:

define('THIS_SCRIPT', 'index');
Then the vBadvanced tab should highlight correctly.

kether1 01-12-2011 12:12 PM

Thank you sir. I will give it a go.

Edit: Tried it. I edited the index.php file and changed the this_script line as indicated. I still get the same issue. Thanks for trying to help though. I appreciate it.

Regards,
K


All times are GMT. The time now is 01:02 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.01341 seconds
  • Memory Usage 1,761KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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