The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
New CSS Panels
I figured out for the most part how to add new panels to css.php, but the problem is I would like to make this a driven feature in the admincp.
Here is what needs to be done: An Insert into template like so where ssdark would be the name of the new css: Code:
INSERT INTO `template` ( `templateid` , `title` , `template` , `version` , `styleid` , `template_un` , `templatetype` , `dateline` , `username` ) VALUES ( '', '.ssdark', 'a:7:{s:10:"background";s:7:"#F5F5FF";s:5:"color";s:7:"#000000";s:4:"font";a:3:{s:5:"style";s:0:"";s:4:"size";s:0:"";s:6:"family";s:0:"";}s:5:"EXTRA";s:0:"";s:6:"LINK_N";a:3:{s:10:"background";s:0:"";s:5:"color";s:0:"";s:15:"text-decoration";s:0:"";}s:6:"LINK_V";a:3:{s:10:"background";s:0:"";s:5:"color";s:0:"";s:15:"text-decoration";s:0:"";}s:6:"LINK_M";a:3:{s:10:"background";s:0:"";s:5:"color";s:0:"";s:15:"text-decoration";s:0:"";}}', '', '-1', '', 'css', '1073534577', 'SpeedStreet' ); Code:
After: print_css_row($vbphrase['highlighted_font'], $vbphrase['highlighted_font_desc'], '.highlight', 0); Build: print_css_row($vbphrase['ssdark'], $vbphrase['ssdark_desc'], '.ssdark', 1); Could anyone write up a simple function that could do this? I think most of the work is already done here. The benefit to this woul dbe the abililty to add additional css into your styles. Sometimes, I like to have more options that what the original styles provide me, and this is a good way of managing them versus adding lines to the existing css box at the bottom. |
#2
|
|||
|
|||
Quote:
The only problem I am having, is that now the database has the required values, and css.php can read them...but it doesn't seem to be building the new values into the actual css file. Does anyone have any ideas on this? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|