vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   VB seems to deliver the wrong style's CSS (https://vborg.vbsupport.ru/showthread.php?t=301745)

TiKu 08-31-2013 10:16 PM

VB seems to deliver the wrong style's CSS
 
Hi,

We've a phenomenon with the CSS definitions of our styles. We have the following style structure:
  • MASTER-Style
    • VB4 Default Style (with very few customizations, not selectable by users)
      • Our Main Style (many customizations, selectable by users)
        • Special Style for a specific forum (not selectable by users)
VB uses templates from the correct style. However, CSS definitions always come from "Our Main Style". If I open the forum that has its special style, I get the special templates, but the CSS from the style's parent style ("Our Main Style").

The generated HTML code is correct, it always calls css.php with the correct styleid parameter in the URL. It also doesn't seem to be a caching problem - neither on the server side nor on the client side.

What could make VB 4.1.11 deliver the wrong style's CSS?

Zachery 08-31-2013 10:33 PM

Pretty sure users have to be allowed ot use the style, for the style override to work.

TiKu 08-31-2013 10:56 PM

Well, I doubt it. Let me explain a bit. We recently upgraded our forum from VB 3.8 to 4.1. For testing this upgrade, we have cloned the forum before the upgrade and tested the upgrade with this clone.
And here comes the interesting part: The clone doesn't suffer from this problem and so far I could not find any difference in settings or templates that I would consider relevant. Even the style ids are the same in both installations. You cannot select the special style in the test installation either.

Lynne 09-01-2013 02:27 AM

Try moving the CSS from the database to the file system (or vice versa) and see if you still have the same issue.

TiKu 09-09-2013 06:29 AM

Thank you, that did the trick.


All times are GMT. The time now is 10:10 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.01032 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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