![]() |
vB4 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('s p_css' => $sp_css)) If there is a way that I can have the array in this plugin display each element I think this would work. The goal in this particular experiment would be, if specfic forum ID's are matched, add these lines to additional.css. Obviously what I have here isn't working. I'm completely new to PHP and vBulletin so be nice. :-) |
الساعة الآن 05:15 AM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir