The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Conditional Plugin for additional.css
I'm attempting to create a plugin that will check certain conditions before appending css to additional.css. Here is what I have for a plugin at hook: cache_templates.
Code:
if in_array($foruminfo['forumid'] == array(2,7)) { $sp_css = array ( ".forumbit_post .foruminfo {;", " width: 57%;", " min-width: 30%;", " float: {vb:stylevar left};", " clear: {vb:stylevar right};", " min-height: 85px;", "}" ) foreach ($sp_css as $value) { echo $value; } vB_Template::preRegister('additional.css',array('sp_css' => $sp_css)) I'm completely new to PHP and vBulletin so be nice. :-) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|