Hey can anyone make this hack work with 2.2.6 running the Store hack? I'm about to install the store hack, but i'm stuck on the part where it says this;
------
------------------
find(around line 1897):
------------------
$DB_site->query("UPDATE user SET posts=posts$subtract WHERE userid='$postuserid'");
------------------
change it to:
------------------
$storeadmin = $DB_site->query_first("SELECT * FROM storeadmin");
$storemin=$storeadmin[newthread];
$DB_site->query("UPDATE user SET posts=posts$subtract,storep=storep-'$storemin' WHERE userid='$postuserid'");
------------------
find(around line 1930):
------------------
$DB_site->query("UPDATE user SET posts=posts-1 WHERE userid='$postinfo[userid]'");
------------------
Change it to:
------------------
$storeadmin = $DB_site->query_first("SELECT * FROM storeadmin");
$storem=$storeadmin[newreply];
$DB_site->query("UPDATE user SET posts=posts-1,storep=storep-'$storem' WHERE userid='$postinfo[userid]'");
------
That's in functions.php
The problem here is that i've commented out what ToraTora! has said to do.
I don't know any PHP and not this advanced either. So if anyone could re-write those two steps from the Store Hack taking mind that i've commented out what ToraTora! said to do and I still don't want post counts to be reduced during a prune....
If anyone can do that, which i'm sure is Very simple for someone who knows PHP, I will be very grateful