
03-17-2005, 06:37 AM
|
 |
|
|
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by kmike
It's actually pretty much of production quality, I'm running this with small changes now. According to dwh's thread at vb.com, he has this hack applied and running, too.
This hack doesn't depend on PHP version, only on MySQL version - anything greater than 4.0 works.
My changes are:
1. This string has a typo, there should be a space after "FROM"
PHP Code:
$DB_site->query("DELETE FROM". TABLE_PREFIX ."threadviewsaggregate");
2. After applying hack, move this line immediately after the line with INSERT SQL statement:
PHP Code:
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "threadviews");
Reason for this is explained here:
http://www.vbulletin.com/forum/showp...4&postcount=16
|
So what should the full code look like then?
|