PDA

View Full Version : O god please (deleting with out taking away post count)


Psychdrone
01-26-2002, 11:19 PM
please someone, I can't figure it out, there have a been a couple of posts, but none of them work:(

So could someone please tell me the code I would replace

THanks!

larryz
01-27-2002, 03:09 AM
In admin/functions.php


FIND:

if (is_array($userpostcount)) {
while(list($postuserid,$subtract)=each($userpostco unt)) {
$DB_site->query("UPDATE user SET posts=posts$subtract WHERE userid='$postuserid'");
}
}



REPLACE WITH:

// if (is_array($userpostcount)) {
// while(list($postuserid,$subtract)=each($userpostco unt)) {
// $DB_site->query("UPDATE user SET posts=posts$subtract WHERE userid='$postuserid'");
// }
// }


That should take care of the problem for ya ;)

Psychdrone
01-28-2002, 07:52 PM
thanks man,

Psychdrone
01-28-2002, 09:44 PM
umm actually I am failing to see the difference in the codes????

what am I missing? all he did, was edit out that code??? with the //

FWC
01-28-2002, 10:00 PM
That's the update query that reduces the users post count. You edit it out, the count shouldn't reduce.

Psychdrone
01-29-2002, 10:57 PM
oooooo well good luck to me~

amsch
01-30-2002, 01:03 PM
I was just thinking the same stuff. Now, I have a question. If i prune my boards and use this. it will not lower the counts for the user but what about total threads on the board? My database is huge over 300mb.. and I am trying to find ways to cut it down. My concerns are losing the total # of threads/posts on the main page. Also, does pruning delete attachments and reduce the search index?

Thanks for the help!

Psychdrone
02-04-2002, 01:23 AM
Dammit surprisingly it did not work:(

Could some one pretty please, help me out here

I don't see what could be so hard about it, althu I don't know php that good

please help thanks!!!!

Psychdrone
02-08-2002, 03:39 AM
OK I am gonna push this one, as I am sure there are a lot of people out there, that might want this, and I don't think it would be that hard........

Psychdrone
02-09-2002, 07:45 PM
grrrr.............

Psychdrone
02-12-2002, 10:56 PM
time for a bump

bertje
02-15-2002, 05:44 PM
thnx , that's usefull

Stoned Gecko
02-15-2002, 05:51 PM
Here is a link to the hack:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=12420

I installed it on 2.2.1 and 2.2.2 and it works for me.

Good luck! :)

Psychdrone
02-15-2002, 11:18 PM
can't get the thread delete part to work,

and what about mass prune:(