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)

Popa Andrei 09-27-2010 02:36 PM

can u tell me how to make a diferent style var for a light theme?
I have a light theme and a dark one.

PJSkiboy 09-27-2010 02:41 PM

Quote:

Originally Posted by stormzone (Post 2103718)
can u tell me how to make a diferent style var for a light theme?
I have a light theme and a dark one.

Storm,

I'm in the same boat.

Right now I've got the tab mod installed on my light theme and not on my dark theme because when you change the hex code in the css file for the mod, it changes that background color in between the categories for ALL styles you have that mod installed on.

Pretty sure we'd have to edit the mod to where it called a different .css file for each style.

If I could manage some free time in the next week, I'll tinker with it some, but no promises. I'm not much of a coder.

Lionel 09-27-2010 02:45 PM

Quote:

Originally Posted by stormzone (Post 2103718)
can u tell me how to make a diferent style var for a light theme?
I have a light theme and a dark one.

edit the tabview.css or skin-tfh.css to remove those declarations:

.yui-navset .yui-nav .selected a,
.yui-navset .yui-nav a:focus,
.yui-navset .yui-nav a:hover
.yui-navset .yui-content

and then in FORUMHOME template put this in your head

Quote:

<style type="text/css">
.yui-navset .yui-nav .selected a,
.yui-navset .yui-nav a:focus,
.yui-navset .yui-nav a:hover {
background:{vb:stylevar forumhead_background};
color:{vb:stylevar forumhead_color};
font-weight:bold;
}
.yui-navset .yui-content {
background:#ffffff;
border-top:5px solid #384b6b;
}
</style>
go there and switch style to see result

Lionel 09-27-2010 03:02 PM

Quote:

Originally Posted by Crrrazzzy (Post 2101928)
what did you do to fix this as i am having hte same issue

fixing this is very simple. Edit the template Create Tabs at forumhome_complete and replace the second line with

$yui = new vB_YUI($vbulletin, $vbulletin->userinfo, 'tfh');

and in class_yui.php

replace the line below (I don't remember what the original code was)

$tab['limitTo'] = explode(",", $tab['limitTo']);

with:

if (is_member_of($this->usergroup, $tab['limitTo']))

so the block becomes

PHP Code:

              if($verify_usergroup)
            {
              if(
$tab['limitTo'] == 'all')
                {
                    
$this->code .= "YAHOO.plugin.Dispatcher.delegate(new YAHOO.widget.Tab({label: '" mysql_escape_string($tab['title']) . "', " $tab['contentT'] . ": '" $tab['content'] . "', active: " $tab['active'] .", cacheData: " $tab['cacheData'] ."}), " $this->name ");";
                }
                else
                {
                    
$tab['limitTo'] = explode(","$tab['limitTo']);
                    if (
is_member_of($this->usergroup$tab['limitTo']))
                    {
                        
$this->code .= "YAHOO.plugin.Dispatcher.delegate(new YAHOO.widget.Tab({label: '" mysql_escape_string($tab['title']) . "', " $tab['contentT'] . ": '" $tab['content'] . "', active: " $tab['active'] .", cacheData: " $tab['cacheData'] ."}), " $this->name ");";
                    }
                }
            } 


Popa Andrei 09-29-2010 02:31 PM

1 Attachment(s)
Quote:

Originally Posted by Lionel (Post 2103722)
edit the tabview.css or skin-tfh.css to remove those declarations:

.yui-navset .yui-nav .selected a,
.yui-navset .yui-nav a:focus,
.yui-navset .yui-nav a:hover
.yui-navset .yui-content

and then in FORUMHOME template put this in your head

go there and switch style to see result

It works but can you make the same thing like in the tabs to this area to?
Attachment 122416

PS this fix should be integrated in the mod.

Pvtiste 09-29-2010 04:19 PM

Excellent ! Thank you for sharing :)
Installed and perfectly works!

Santori 09-30-2010 01:38 AM

Sorry, but what happens with de collapse button, nobody wants to give a solution?

Popa Andrei 09-30-2010 08:34 AM

if the autor of the plugin would give a little bit interest in the mod....

Crrrazzzy 10-03-2010 01:50 PM

Quote:

Originally Posted by stormzone (Post 2104648)
It works but can you make the same thing like in the tabs to this area to?
Attachment 122416

PS this fix should be integrated in the mod.

this should be added to the plugin

masterweb 10-03-2010 04:11 PM

Installed on a 4.0.7 version and never worked as supposed. Unisntalled :(


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