L litu2009 New Member Apr 12, 2009 #1 Please any one give this here Custom CSS Definitions - vBulletin.org Forum Best regard litu2009 thank you in advanced
Please any one give this here Custom CSS Definitions - vBulletin.org Forum Best regard litu2009 thank you in advanced
M MobileHacks New Member Apr 13, 2009 #2 The process is pretty straight forward: First of all you have to create a new entry in table template: templatetype = css product = Your product id styleid = -1 template Your serialized CSS definitions. To start with empty definitions just use PHP: a:1:{s:3:"all";s:0:"";} title Your CSS classname, for example .cssdemoclass dateline Current UNIX timestamp username Your username in your dev board version The version number of your modification I suggest to do this in phpMyAdmin, which results in a query (if you want to do it fully manually) similar to PHP: INSERT INTO template (styleid ,title,template,templatetype,dateline,username,version,product) VALUES (-1, '.cssdemoclass', 'a:1:{s:3:"all";s:0:"";}', 'css', 1239459129, 'Kirby', '1.0.0', 'cssdemo'); Now that you've added the new class, you should rebuild all styles. Afterwards, you need two plugins to make the class actually editable in style manager: css_edit PHP Code: PHP: print_css_row($vbphrase['css_demo_class'], $vbphrase['css_demo_class_desc'], '.cssdemoclass', 1); css_output_build PHP: $css_write_order[] = '.cssdemoclass'; That's it, now you can edit your own class as you could edit any default class.
The process is pretty straight forward: First of all you have to create a new entry in table template: templatetype = css product = Your product id styleid = -1 template Your serialized CSS definitions. To start with empty definitions just use PHP: a:1:{s:3:"all";s:0:"";} title Your CSS classname, for example .cssdemoclass dateline Current UNIX timestamp username Your username in your dev board version The version number of your modification I suggest to do this in phpMyAdmin, which results in a query (if you want to do it fully manually) similar to PHP: INSERT INTO template (styleid ,title,template,templatetype,dateline,username,version,product) VALUES (-1, '.cssdemoclass', 'a:1:{s:3:"all";s:0:"";}', 'css', 1239459129, 'Kirby', '1.0.0', 'cssdemo'); Now that you've added the new class, you should rebuild all styles. Afterwards, you need two plugins to make the class actually editable in style manager: css_edit PHP Code: PHP: print_css_row($vbphrase['css_demo_class'], $vbphrase['css_demo_class_desc'], '.cssdemoclass', 1); css_output_build PHP: $css_write_order[] = '.cssdemoclass'; That's it, now you can edit your own class as you could edit any default class.