vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   What stylevar changes the post background? (https://vborg.vbsupport.ru/showthread.php?t=269659)

CouponWCents 09-04-2011 04:51 PM

What stylevar changes the post background?
 
How do we change the color of the background of a post?

setishock 09-04-2011 10:52 PM

Add this to your additional.css>
Code:

.postbit .postbody {
        clear: both;
        color: {vb:stylevar postbit_color};
background: Your color goes here;
}

You can make the background an image if you like by making the background statement look like this (somewhat...) >
Code:

background: url(path/to/your/image);

Mark.B 09-04-2011 11:08 PM

Can't you just change the value in the stylevar postbit_background?

setishock 09-07-2011 09:15 PM

That stylevar is dead. You have to edit the css.
I sure wish they would fix all that.

Mark.B 09-07-2011 09:19 PM

Quote:

Originally Posted by setishock (Post 2243173)
That stylevar is dead. You have to edit the css.
I sure wish they would fix all that.

Is it? I'm using it. 4.1.3.
Did it die after that? I hope not. I shall just put it back.

There is postbit_background and postbit_userinfo_background, the second one does the bit where the avatar is.

*edit - this is in the legacy postbit, did it perhaps die in the other postbit?

setishock 09-07-2011 09:23 PM

I'm running 4.1.2 and it's been dead since 4.0.8. I use postbit and it has no effect.

Mark.B 09-07-2011 09:57 PM

Seems to work in postbit legacy only then.

That's a bit stupid.

I guess you could just add it to the postbit template in some way.

Checked it - the stylevar itself definitely works, it just isn't present within the postbit template, only postbit_legacy.

So it can just be added as a background to the relevant template code. Something like
Code:

style="background: {vb:stylevar postbit_background};"
That will definitely work. As will postbit_userinfo_background, which is usually slightly darker (a bit like alt1 and alt2 on vB3).


All times are GMT. The time now is 01:13 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.01053 seconds
  • Memory Usage 1,721KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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