
01-11-2005, 12:54 PM
|
 |
|
|
Join Date: Jan 2002
Location: Long Beach
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by sv1cec
OK, let's do this test. Open your includes/functions_warning.php file and find:
PHP Code:
$DB_site->query("insert into ".TABLE_PREFIX."warnings values('','{$user['userid']}','{$bbuser}','".time()."','{$wcomment}','{$wpost}','{$warn_type['tid']}','N','A','','')");
Replace that line with:
PHP Code:
$DB_site->query("insert into ".TABLE_PREFIX."warnings (wid, warned_user, warned_by, warned_time, warned_reason, warned_post, warned_warning_id, caused_ban, warned_status, removed_by, removed_date) values('','{$user['userid']}','{$bbuser}','".time()."','{$wcomment}','{$wpost}','{$warn_type['tid']}','N','A','','')");
See if that works OK.
Rgds
|
I couldn't find that exact line in a fresh upload of the file but found something very close and changed it. This is what I get now.
Code:
Database error in vBulletin 3.0.5:
Invalid SQL: insert into warnings (wid, warned_user, warned_by, warned_time, warned_reason, warned_post, warned_warning_id, caused_ban, warned_status, removed_by, removed_date) values('','1742','1','1105455062','Just testing ignore this.','809396','11','N','A','','')
mysql error: Unknown column 'caused_ban' in 'field list'
mysql error number: 1054
Date: Tuesday 11th of January 2005 06:51:02 AM
Script: http://www.letsgokings.com/bbs/Warn.php
Referer: http://www.letsgokings.com/bbs/Warn.php?do=WarnUser&id=1742&post=809396
Username: RinkRat
IP Address: 66.214.41.130
|