PDA

View Full Version : Prune without users losing post counts


telc
03-23-2005, 07:34 PM
When pruning threads I would like to preserve users post counts.

In includes/functions_databuild.php

Within "function delete_thread("

If I remove this query will it stop users post counts from getting decremented when I prune threads. Can you see this causing any other issues.


$DB_site->query("
UPDATE " . TABLE_PREFIX . "user
SET posts = posts -
CASE
$casesql
ELSE 0
END
WHERE userid IN (0$alluserids)
");

pie
03-23-2005, 08:36 PM
This isn't the place to ask.

However I see no problems with removing that.

telc
03-23-2005, 09:17 PM
Why isn't this the place to ask? Its called Modification Requests.

Dead End Society
08-30-2005, 08:23 AM
Worked like a charm, post counts maintained for the forum itself, but not for individuals after updating the counters.

Biker_GA
08-30-2005, 03:04 PM
Why isn't this the place to ask? Its called Modification Requests.

This is the forum to ask for the creation of a hack that enhances your board.