Version: , by tubedogg
Developer Last Online: Dec 2016
Version: 2.2.x
Rating:
Released: 03-26-2001
Last Update: Never
Installs: 45
No support by the author.
Someone mentioned this in the other forum (I think it was Castel). It's hardly a hack, as it consists of commenting out 3 lines, but here's how to do it:
Could you email me the page or send it over PM or something? All my info is in my profile. I would do it myself but for some reason my whole fuctions.php (and others) file is all thrown together. It's not laid out all nice and neat.
First of all, there are many ways of doing this hack, and tubedogs hack, for no decrease in the posting numbers is the best way that I can think of. There are other ways, but to be honest, the way I combined my idea, with tubedog's works just fine.
I will not support this for anybody, because i realize this hack has already received its share of complaints, so keep in mind these simple rules, before taking my advice.
1) Tubedog had origionally created this hack. I'm just adding on to it.
2) all changes, are user responsibility. Backup your functions.php file, and if there are errors, than either figure them out on your own, or go back to your old backed up script, because support is something that I truely tried to provide early on in this game, however, most people are here on a take it and run basis, so I provide this information, on the same premise.
3) Do not Pm me, aol me, icq me, yahoo me, or email me concerning the price of cheese on this hack. respond to this thread if you would like any type of support, which as earlier written, sparse if any.
4) Its a simple hack, so for God's sake read what is written, and all will be ok.
Here are the changes.
you will find these script lines in your functions.php script(functions.php is found in your admin folder)
Find on line 1837, (or around there) to start in the correct area of the needed changes:
a few lines down, on line 1866, (or around there), you will find this line:
PHP Code:
if (is_array($userpostcount)) {
while(list($postuserid,$subtract)=each($userpostcount)) {
$DB_site->query("UPDATE user SET posts=posts$subtract WHERE userid='$postuserid'");
}
}
you can do one of two things.
1) completely take the script out, which is what i did
2) comment out the script such as below.
PHP Code:
//if (is_array($userpostcount)) {
// while(list($postuserid,$subtract)=each($userpostcount)) {
//$DB_site->query("UPDATE user SET posts=posts$subtract WHERE userid='$postuserid'");
// }
//}
either way, the script will not execute.
Secondly, Thanks to Tubedog, make these modifications.
(the line numbers, and some variables may of changed, but the basic principle remains).
Find on line 1886 (or around there) this line, to start in the correct area of the needed changes:
PHP Code:
// ###################### Start delete post #######################
than, a little bit further down, on line 1892 (or around there) find:
PHP Code:
// decrement user post count
if ($postinfo=getpostinfo($postid)) {
if ($countposts) {
$DB_site->query("UPDATE user SET posts=posts-1 WHERE userid='$postinfo[userid]'");
}
and than comment it out as shown below.
PHP Code:
// decrement user post count
if ($postinfo=getpostinfo($postid)) {
//if ($countposts) {
//$DB_site->query("UPDATE user SET posts=posts-1 WHERE userid='$postinfo[userid]'");
//}
NOTE!!!: i did not comment out:
PHP Code:
if ($postinfo=getpostinfo($postid)) {
If you comment this line out, you will receive this error:
PHP Code:
Parse error: parse error in /home/blah/public_html/blah/blah/admin/functions.php on line 1907