
12-06-2004, 11:42 AM
|
|
|
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Delphy
Hiya,
Just found this hack and tried installing from scratch. I get an error:
Invalid SQL: INSERT INTO `warning_options` values ('1','Yes', 'Yes','No', '','0','7','10','8','6','8','0','Yes','3','All','Y es','Yes','No','Yes','Yes','15')
mysql error: Column count doesn't match value count at row 1
Looking at the script, the "`max_no_bans` int(5)," column is missing from the insert statement. Adding this back in (Line 208 of install_warn.php) makes it work.
I guessed at a value for max_no_bans - can you tell me what it *should* be?
Regards
Delphy
|
Delphy,
It was not the max number of bans which was missing, it is the aprotected_usergroups.
Try changing that line to:
PHP Code:
$install[]="INSERT INTO `".TABLE_PREFIX."warning_options` values ('1','Yes', 'Yes','No', '','0','7','10','8','6', '6','8','0','Yes','3','All','Yes','Yes','No','Yes','Yes','15')";
Mind you, I just uploaded a new version, so you may want to download the latest zip.
Rgds
|