Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2011, 04:45 AM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default StyleVars: Am I doing something wrong?

I don't understand these StyleVars... I wish we had some kind of visual reference to know what parts of the pages are covered by which StyleVars. (Googling, I found that "StyleVars Visual Dictionary on vbulletin.com, but it's not really helpful, tbh.)

I was trying to adjust the background and foreground colours of the sidebar that shows up on the left of the profile, to make it uniform with the style I'm trying to create. (I swear, I don't know who had the bright idea for this many StyleVars, but it really makes uniformity a big pain in the ass.)

Anyways, I'm sitting here looking at the StyleVars I can modify, and helpfully there's something right there for profiles, and more specifically, profile sidebars.

...

...or so I thought. After about an hour of frustrating myself trying to find out if I was doing something wrong, or not saving something, or whatever, I stumble across this random StyleVar, "tabslight_selected_background". As I'm trying to navigate around these StyleVars and didn't know what this did, I set it to an eye-burning bright purple.

DING! The profile sidebar background changed!

Okay, my first question is this. Having read this far, is it your opinion that my vBulletin itself is borked, or is this what everyone else is experiencing? Is that the correct way for these StyleVars to act? It's like most of those profile sidebar StyleVars don't do ANYTHING, but that tabslightwhatever changes the sidebar background?

If the answer to that is a woeful "yes, that is the way they are supposed to act," then my second question (after the obligatory "WTF?") is "Okay, now how am I supposed to change the font color of that sidebar? >.>

These StyleVars would probably be great if I knew how to use 'em... But IB doesn't seem to have made them very intuitive (assuming my vB ain't borked).
Reply With Quote
  #2  
Old 01-16-2011, 06:18 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This might help you some:
https://vborg.vbsupport.ru/showthread.php?t=256370

See the helpful links near the top.

Basically stylevars are well... Style Variables, we use that system to key in all sorts of info and most of the stylevars are used in the css so instead of regular css for example:

Code:
.widget_content {
    color: #515151;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    background: #ffffff;
    border: #c4c4c4;
    _background-image: none;
    padding: 5px 5px 5px 5px;
}
We will see this:
Code:
.widget_content {
    color: {vb:stylevar sidebar_content_color};
    -moz-border-radius:{vb:stylevar border_radius};
    -webkit-border-radius: {vb:stylevar border_radius};
    background:{vb:stylevar sidebar_content_background};
    border:{vb:stylevar sidebar_content_border};
    _background-image: none;
    padding:{vb:stylevar vbcms_widget_content_padding};
}
Now I did not reference the stylevars correctly just used as an example however if you see a CSS definition such as:

Code:
    background:{vb:stylevar sidebar_content_background};
Now simply look for... you got it ... the stylevar sidebar_content_background and change it to see the results . It's still being worked on per say (or should be imo) as recently I noticed some sidebar stylevars are used for the widgets as you can note by my css examples lol however they are apparently different systems etc so it's not perfect and not every bit of CSS uses or has a stylevar.
Reply With Quote
  #3  
Old 01-16-2011, 07:08 AM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let me re-state my problem, following the video you link here: http://www.vbulletin.com/forum/conte...deo-version%29


M'kay, I'm looking for how to change the background of the sidebar on the User Profile Page.

I load up the page, load FireBug, and find the HTML Element in question.
HTML Code:
<div id="sidebar_container" class="profile_widgets member_summary userprof_moduleinactive userprof_moduleinactive_border sidebarleft">
Looking at the CSS, I see it gets it background-color property (#1F1F1F) from:
Code:
#sidebar_container.member_summary {
    -moz-border-radius: 5px 5px 5px 5px;
    -moz-box-shadow: -2px 2px 2px #C8C8C8;
    background-color: #F1F1F1;
    border: 1px solid #C1C1C1;
    clear: right;
    display: inline-block;
    float: left;
    margin-bottom: 10px;
    padding: 0;
    width: 240px;
}
I go to my AdminCP, Search in Templates for "member_summary", and the most logical one seems to be userprofile.css.

I find where it gets the background property...
Code:
#sidebar_container.member_summary 
{
	color: {vb:raw moduleinactive_text_color};
	background-color: {vb:raw moduleinactive_background_color};
	background-image: {vb:raw moduleinactive_background_image};
	background-repeat: {vb:raw moduleinactive_background_repeat};
	border-color: {vb:raw moduleinactive_border};
}

Now, I'm sitting here scratching my head wondering 2 things: WTH happened to StyleVars (seems we're using the raw output from some other variable), and how the heck do I change this moduleinactive_background_color variable (except by hunting IT down and using a plugin, which would make no sense)?







Also, I don't understand why the profile_sidebar_background and other profile_sidebar variables have no effect. Except for the avatar maxwidth (which doesn't change anything for the avatar itself, but instead for all other images in the sidebar) and maybe some that I didn't get to toying around with. It just makes no sense to me.
Reply With Quote
  #4  
Old 01-16-2011, 07:17 AM
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Location: Argentina
Posts: 667
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sidebar css is generated dynamically.
See ./vb/profilecustomize.php line #229.

Also check this:
http://www.vbulletin.com/forum/conte...-Profile-Style.
Reply With Quote
  #5  
Old 01-16-2011, 07:24 AM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ForumsMods, I'm not quite sure what I'm looking at, there, tbh. O.o That seems to deal with Profile Customization, but I don't have my profile customized.

(Also, isn't pretty much all of the CSS generated dynamically from the StyleVars? Or do you mean a different type of dynamically. @_@ Confusing...)
Reply With Quote
  #6  
Old 01-16-2011, 07:31 AM
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Location: Argentina
Posts: 667
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sarteck View Post
@ForumsMods, I'm not quite sure what I'm looking at, there, tbh. O.o That seems to deal with Profile Customization, but I don't have my profile customized.

(Also, isn't pretty much all of the CSS generated dynamically from the StyleVars? Or do you mean a different type of dynamically. @_@ Confusing...)
When there is not a profile customization, vb uses default profile style and if this does not exist, generates it from stylevars which you can see in php file.

You can modify the php file or create a default theme.
Reply With Quote
  #7  
Old 01-16-2011, 07:47 AM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

M'kay, I see where you are talking about...

in that profilecustomize.php,
PHP Code:
        'moduleinactive_background_color' => self::$stylevars['tabslight_selected_background']['color'], 
So now I finally get where the tabslight comes in. Now I have to find out where the rest of the stuff comes from...



What I don't get is why there are a bunch of profile_sidebar StyleVars that seem to do nothing, then. :<

I mean, it would make some sense if I could change the background of the profile sidebar using profile_sidebar_background. :< Why put in them StyleVars, if we can't use 'em? XD










So wait.

Let me get this straight...

Half of my profile page, even if I'm not using customization, is more than likely NOT going to mesh with my skins?

You're saying it gets the values from a default profile... So if I want it to actually behave "normally," I have to edit the PHP?



Am I getting that right? It doesn't make much sense to do it that way, so I'm probably wrong...
Reply With Quote
  #8  
Old 01-16-2011, 07:49 AM
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Location: Argentina
Posts: 667
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would create a default theme or modify the css templates rather than modify the php file.

I wonder the same thing as you, maybe in next version vB will use these stylevars.
Reply With Quote
  #9  
Old 01-16-2011, 07:53 AM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want to get away with modifying as few of the templates as possible, tbh... After my last upgrade and all the "conflicts" when doing the template stuff. :< But I guess that's the only feasible way to go.

Making a "Default" theme would put me in the same boat I'm in now, since I have a bunch of style I offer my members to choose from, and having one "default" would pretty much screw all the others.

/me shakes a fist at IB.

Get off yer butts and make yer product compatible with itself!
Reply With Quote
  #10  
Old 01-16-2011, 08:05 AM
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Location: Argentina
Posts: 667
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can use additional.css templte to modify css without edititing default templates
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:55 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.04740 seconds
  • Memory Usage 2,273KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete