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)
-   -   Forum Home Enhancements - [YUI] Tabbed Forum Home (https://vborg.vbsupport.ru/showthread.php?t=233135)

STR8H8TEx 05-24-2013 09:06 PM

DUDE YOU ARE THE MAN!!! I appreciate you coming back and helping man! It's a good mod! I wish someone would put your fix into the very top so others don't struggle!!

again thank you!!!

cric2k 06-02-2013 08:09 AM

Hello,

I have made a simple modification to this code to make it remember the last tab you clicked on and use that as the default instead of default that is stored in the database (basically if you click on a home link after browsing to a tab it brings you back to the same tab).

Open the PHP file 'tabindex.php' in your root folder and add the following code a line or two after 'error_reporting(E_ALL & ~E_NOTICE);' at the top of the script:

PHP Code:

#request ID of tab clicked
$tabID $_REQUEST['tID'];

#save it in cookie
if (isset($tabID))
{
     
setcookie("LinkClickedID"$tabID);


Now go to your ADMINCP, Plugin Manager, edit 'Create Tabs'.

There are two instances of this piece of code:

PHP Code:

if($tab['default_tab'] == "1" AND empty($vbulletin->GPC['varname']))  
        {  
            
$active 'true';  
        } 

Replace the above piece of code in both cases with this:

PHP Code:

if(isset($_COOKIE["LinkClickedID"]))
{
        if(
$tab['tabid'] == $_COOKIE["LinkClickedID"] AND empty($vbulletin->GPC['varname']))
        {
            
$active 'true';
        }
}
elseif(
$tab['default_tab'] == "1" AND empty($vbulletin->GPC['varname'])) 
        { 
            
$active 'true'
        } 

and there you have it - your last clicked on tab is now stored as the default (and it should use the database default if cookies are not allowed on the browser).

killerford 06-05-2013 09:43 AM

Is it possible to change a colour change for dark skins? I'm using both a light and dark skin but wanting to change the colours for the dark skin so the white don't look weird on it. Can anyone help?

CybertronWizard 06-06-2013 07:04 AM

Please update this to vbulletin 4.2

killerford 06-06-2013 09:03 PM

Quote:

Originally Posted by CybertronWizard (Post 2426076)
Please update this to vbulletin 4.2

I'm using this on my board which is 4.2. Works fine just needing someone to help me make the skin of the mod transparent so I can use it on both dark and light themes.

Typhome 06-19-2013 09:28 PM

Please update to 4.2.1, thanks.

K4GAP 06-20-2013 03:24 AM

Quote:

Originally Posted by Typhome (Post 2429229)
Please update to 4.2.1, thanks.

I'll second that :cool:

TheInsaneManiac 06-20-2013 05:54 AM

How do I fix the size of the line above the forum gradient?
https://vborg.vbsupport.ru/external/2013/07/69.png

Bladinium 06-25-2013 11:53 AM

Hello, it's possible to disable plugin to Visitor? no tab forum classic only it's possible ?

nsdqmaester 07-04-2013 04:04 AM

I tried installing on VB 4.21 and I get the tabs but no Forums are showing Added all relative code listed and added tabs in manage tabs. The Modules show up if I enable them and tabindex.php?tabcat[]=all works if access via page. Click on category it says loading content then is just blank.


All times are GMT. The time now is 04:07 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.02078 seconds
  • Memory Usage 1,749KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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