Quote:
Originally Posted by Revan
You cannot remove that line.
The only thing you can do is put all the Warning Options under a different category, which would serve no purpose.
EDIT: Actually, it would be possible through hacking the admincp/options.php file, but I must say I am highly against such an edit. It is 100% unneeded and adding more hassle to upgrading is not something anyone needs
As for the template delete, you have been smart enough to name all your templates with a prefix of warn_, so you can just place this somewhere:
$DB_site->query("DELETE FROM `" . TABLE_PREFIX . "template` WHERE `title` LIKE 'warn%' ");
(SELECT *
FROM `template`
WHERE title LIKE 'warn%' to test it )
|
That I've solved. I now have the following issue:
In admin_warn, where the program saves the warning options in the setting table, you have the following code:
PHP Code:
foreach ($options as $opt => $value)
{
if (in_array($opt, $vboptions))
{
$DB_site->query("
UPDATE " . TABLE_PREFIX . "setting
SET value = '$value'
WHERE varname = '" . addslashes($opt) . "'
");
}
}
For some reason, the if does not seem to work. Whatever I change in the warning options page, does not get saved in the settings table. If I remove the conditional, then everything is saved fine. Any ideas?