2014-09-03, 12:19 PM
Hi,
It is my first post here
I have a question
I found this in the code plugin to mybb 1.6
what is wrong?
It is my first post here
I have a question
I found this in the code plugin to mybb 1.6
$stylesheet = array(
"sid" => NULL,
"name" => "overcss.css",
"tid" => "1",
'attachedto' => "",
'stylesheet' => $db->escape_string('/ * over css code here*/'),
"cachefile" => "",
"lastmodified" => TIME_NOW,
);
$sid = $db->insert_query('themestylesheets', $stylesheet);
$db->update_query('themestylesheets', array('cachefile' => "css.php?stylesheet={$sid}"), "sid='{$sid}'", 1);
$query = $db->simple_select('themes', 'tid');
while($theme = $db->fetch_array($query))
{
require_once MYBB_ADMIN_DIR.'inc/functions_themes.php';
update_theme_stylesheet_list($theme['tid']);
}
but it does not work in 1.8what is wrong?