![]() |
Problems with custom CSS files...
Okay, so I made a new template called "media.css" and it was correctly placed into the CSS Templates folder.
I then added this stylesheet to the rest of my templates in my mod with the following code: Code:
<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}media.css" /> With the default settings, this works GREAT. However, if I enable the "Store CSS Stylesheets as Files?" it stops working. The rest of my forum works great, but even though the media.css file is correctly being made in my clientscript/vbulletin_css folder, none of the style settings in the file are being implemented. |
How did you add the stylesheet to the templates? What does your plugin look like that does this?
|
Plugin? I didn't use a plugin... I just made the css template and added it to my page shell... the line of code is in red.
Code:
{vb:stylevar htmldoctype} Like I said, this works fine, as long as stylesheets aren't saved as files. |
You must use cssrollup_xxx.xml to be able to use multiple not default css as files. With:
Code:
<rollup name="xxx-rollup.css"> Or, easier, separate css: HTML Code:
<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}media.css" /> |
Quote:
I also see other places in the official vbulletin stuff using the same type of code. |
Take a look at the headinclude template and you'll find the condition you need to use for your css checking to see if it is stored in the filesystem or not.
|
Quote:
|
All times are GMT. The time now is 08:22 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|