The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Include another default CSS template via plug-in
Hi,
I would like to include the album.css styles on FORUMDISPLAY pages. Is there a way to achieve this via a plug-in? I'm aware that I could inject the stylesheet into the header, but I would like it to be compatible with both embedded and outsourced (filesystem) CSS. Thanks! Marcus |
#2
|
||||
|
||||
Any method atm will almost certainly change in 4.0.2, so best to wait.
|
#3
|
||||
|
||||
There is an article in the vb4 articles forum that you may want to read. But, as Paul said, things may change a bit... I know there is a template_hook available right now but exactly how it is to be used may change.
|
#4
|
||||
|
||||
Okay, thanks then... I'll wait.
|
#5
|
|||
|
|||
Any news on this?
I would like to use one CSS template from 'showthread' in 'newthread' - how is the script told what CSS template to use on what page? |
#6
|
||||
|
||||
Several ways to do it. One way..
hook location - parse_templates PHP Code:
|
#7
|
|||
|
|||
Thanks for your answer.
Depending on what page I am, vBulletin knows what CSS templates to include - what controls this behaviour? I was hoping the only thing I need to do is add something to an array (like what you do when you want to add a custom template to the cache) and it just works. I mean.. there must be something that is responsible for the default CSS templates. Don't get me wrong, there is basically nothing wrong with your solution but it has one flaw: It links to another CSS file - the stock installation composes many different files into one and that's what I am trying to achive. (less files - more speed). |
#8
|
||||
|
||||
If you know you are not going to be storing css in the file system, then you can use the template_hook custom_css_list (in headerinclude template) to add to the list of templates.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|