The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Best way of adding custom CSS as part of a plugin
I am working on a plugin, and I like the new product/plugin system very much. I just need to add a couple of custom style definitions to the main CSS file, but I wonder how that can be done in the best way. I could just add it to EXTRA or EXTRA2, but then uninstall becomes difficult. Another option is to put it in a template, and load it with misc.php?do=page&template=nameoftemplate, which I also use for my javascript file. Is there an option which I have overlooked?
[edit] The last option does not work, because FireFox doesn't like CSS files with Content-type: text/html. |
#2
|
|||
|
|||
I would like to know this too.
Anyone? I'm also wondering why the main CSS is inline and not in an external file. |
#3
|
||||
|
||||
Quote:
|
#4
|
||||
|
||||
is this a plugin that will enable adding new css selector fields in the style manager? Like this?
Quote:
|
#5
|
|||
|
|||
Quote:
chmod 777 should make it writable. |
#6
|
|||
|
|||
bump.
Figured out a good way to do this and used it in my new modification https://vborg.vbsupport.ru/showthread.php?t=110401 |
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
I'd just use inline CSS personally, or add it to the headinclude template. Not allowing proper CSS addition via plugins is a pretty chronic oversight in my eyes on Jelsoft's part.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|