The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
How did you add the stylesheet to the templates? What does your plugin look like that does this?
|
|
#3
|
|||
|
|||
|
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}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
{vb:raw headinclude}
<title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}media.css,showthread.css" />
{vb:raw headinclude_bottom}
<link rel="alternate" type="application/rss+xml" title="{vb:var vboptions.bbtitle} {vb:phrase rss_feed} - {vb:phrase media_library}" href="media.php?do=rss" />
</head>
<body>
{vb:raw header}
{vb:raw navbar}
<div id="pagetitle">
<h1>{vb:raw pagetitle}</h1>
<p class="description">{vb:raw description}</p>
</div>
<br />
{vb:raw mediaHTML}
{vb:phrase media_copyright}
{vb:raw footer}
</body>
</html>
Like I said, this works fine, as long as stylesheets aren't saved as files. |
|
#4
|
|||
|
|||
|
You must use cssrollup_xxx.xml to be able to use multiple not default css as files. With:
Code:
<rollup name="xxx-rollup.css">
<template>media.css</template>
<template>showthread.css</template>
</rollup>
Or, easier, separate css: HTML Code:
<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}media.css" /> <link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}showthread.css" /> |
|
#5
|
|||
|
|||
|
Quote:
I also see other places in the official vbulletin stuff using the same type of code. |
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
|||
|
|||
|
You can see that all official vbulletin multiple css are listed in ./includes/xml/cssrollup_vbulletin.xml
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|