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 - Add additional_css.css to all your pages (https://vborg.vbsupport.ru/showthread.php?t=228628)

Lynne 12-28-2009 05:28 PM

Both css files get appended to your style. If you have stuff in additional_css2 from a parent style, it will get added to a child style unless you delete it. It acts just like any other template that inherits stuff from it's parent.

Alien 12-28-2009 06:50 PM

I have a fully loaded additional_css in the parent, and then MOST of the same content (but a bunch of changed values) in the child style's additional_css2 file. It has not worked yet.

I've also tried keeping additional_css2 blank in the both parent and child, and just overwriting everything in the additional_css in the child style and that hasn't worked either.

I get the concept, I just really have no idea what could possibly be going on!

BSMedia 12-28-2009 07:43 PM

Well the good news is that it's going to be default in 4.0.1

Lynne 12-28-2009 08:29 PM

Quote:

Originally Posted by Alien (Post 1940723)
I have a fully loaded additional_css in the parent, and then MOST of the same content (but a bunch of changed values) in the child style's additional_css2 file. It has not worked yet.

I've also tried keeping additional_css2 blank in the both parent and child, and just overwriting everything in the additional_css in the child style and that hasn't worked either.

I get the concept, I just really have no idea what could possibly be going on!

Do you have a link? Are you putting something in the .css template to clearly state what style the template is in so when you view it from the browser window, you can tell?

Alien 12-29-2009 12:04 AM

Lynne: I don't have a public link at the moment, as I'm editing together a new style behind the scenes.

I have added a comment to the CSS to identify that particular css clearly. When I view the page source, it links to the proper style id # but when you click the css call (in firefox) it displays the original one from the parent without my comment! I'll also try this with IE8 and Chrome to see if they have the same issue or if Firefox is doing something I've never seen before even though I'm hard refreshing *every* time.

Alien 12-29-2009 12:11 AM

I got it to work with child styles.

In vB 3.8.x, I would be able to set "users can change styles" = no, and even have it turned off in the style manager and STILL be able to test and use it behind the scenes as an admin.

Now in 4.0.0 (gold), I noticed if you have it clicked "off" in the style manager it doesn't seem to load the custom css properly. It has to be selectable (which is not what I want until i'm ready)! I quickly turned all this on to test (then off so no one else could preview it) and I was able to get your modification to work brilliantly.

Thanks for helping and for your patience! I'm glad this is making it into 4.0.x!

Kevin McGowan 01-08-2010 07:39 PM

Installed, great :)

Trek 01-14-2010 03:01 AM

Just a heads up, this was added into 4.0.1, but isn't complete and basically doesn't work. So... this mod is still useful and well... works. ;)

Alex@Mk3OC 01-14-2010 01:32 PM

As above, I thought I'd be able to use the new inbuilt one, but it did nothing so had to re-enable this one, think I'll just leave it installed tbh

Alien 01-14-2010 04:22 PM

Even if it did work properly in 4.0.1, they don't setup child styles as eloquently as Lynne did unless I'm missing something. ;)


All times are GMT. The time now is 06:31 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.01146 seconds
  • Memory Usage 1,735KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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