View Full Version : Post counts wont decrease on deleted threads
Sonic625
02-22-2004, 07:14 AM
Looking for a simple hack like in vb2 that when posts and threads are deleted it wont take away from the users post count.
Thanks,
S
Christine
02-22-2004, 12:38 PM
In the ACP > Counters there is a script that you can set to reset post count based on the current posts in the database.
If you don't push that button, it will keep your member's post counts as posted.
Will that work?
Zachery
02-22-2004, 02:54 PM
In the ACP > Counters there is a script that you can set to reset post count based on the current posts in the database.
If you don't push that button, it will keep your member's post counts as posted.
Will that work?
Either deleting or softdeleting posts the count goes down, it only makes sense... If you prune it shouldnt go down however.
Sonic625
02-22-2004, 07:49 PM
In the ACP > Counters there is a script that you can set to reset post count based on the current posts in the database.
If you don't push that button, it will keep your member's post counts as posted.
Will that work?
yeah I actually deleted the script command in vb2 to make sure none of the admins accidentally pushed it. However like Zachery said if you manually delete a thread or post, any post made will be substracted from the users total post count.
here is the hack from 2.x:
https://vborg.vbsupport.ru/showthread.php?t=45158&highlight=post+count
Thanks,
S
Christine
02-22-2004, 08:09 PM
Oh - that is good to know!
CHeeKY
02-24-2004, 05:07 PM
still , I dont want to decrease peoples posts when they clean up the forums, any ideas?
Zachery
02-24-2004, 09:00 PM
Prune them or move them to a forum they dont have public access to.
CHeeKY
02-25-2004, 05:11 PM
Understand ya Zach, but still it causes the DB to grow, will get my head on and try to suss out the code for this hack...
Zachery
02-25-2004, 05:13 PM
Understand ya Zach, but still it causes the DB to grow, will get my head on and try to suss out the code for this hack...
Why are you so worried about db size?
move all "deleted" posts to a specific forum and prune them off once a month. theres your sulution.
Mustang5ohhh
04-06-2004, 01:45 AM
yeah I actually deleted the script command in vb2 to make sure none of the admins accidentally pushed it. However like Zachery said if you manually delete a thread or post, any post made will be substracted from the users total post count.
here is the hack from 2.x:
https://vborg.vbsupport.ru/showthread.php?t=45158&highlight=post+count
Thanks,
S
Anyway to make this hack work with VB3 ?
Pruning posts does reduce post count.
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)
");
snake-boy
04-17-2005, 01:09 PM
I really don't understand why so many people request this hack, and each time we have first justify why we would need such a thing.? There are so many absurd hacks out there, I really don't understand the fuss about this one in particular.
In my case, my host only allows 100meg of space, and with a db sitting at just over 80meg, it's a constant battle to prevent going over quota (and thus having to pay more). Currenly just moving posts to a 'hidden' forum to avoid the post count decrement, but this is wasting space.
Allowing users to delete their own posts once the information is no longer relevant would help a LOT, but users are not going to want to decrease their post counts (obviously).
They have already contributed to the board by commiting the "act of posting" and therefore they deserve the post count. Whether or not the post exists after they've posted it is irellevant.
I should mention that this is not a public board, so there's not the usual issues about post spamming, but I could REALLY use a hack that would prevent post counts decreasing. Ever.
-snake
Zachery
04-17-2005, 03:29 PM
You'd be better off finding a more competant host than some ++++ty onne that only allows you 100MB for DB size, sounds like you're with 1&1
snake-boy
04-17-2005, 04:47 PM
I still think a simple hack would do the job.
I am contractually bound to my hosts for some time still, and plan on moving once this period expires, however this does not solve my problem in the interum.
I guess I just find it strange that some people are happy to acommodate complex and numerous 'useless' hacks for their VB, but when someone needs something actually functional and for a specific reason, nobody seems prepared to assist.
Don't get me wrong, I'm not ungrateful for the TONS of help and assistance (and great hacks) I have found here. I do not "expect" that every request for every hack needs to be attended to. This is of course a favour granted to us by those with the skills to do so. This mentality just does not seem to be consistent to me. And since I've seen this hack requested in several places on this board alone (nevermind the several requests at vbulletin.com) I know I am not the only one who would find a use for this.
If people have issues with spammers and feel there is some kind of 'moral' issue involved with a hack a like this because it involves post counts, they should bear in mind that not everybody's circumstances are the same. And it is actually physically possible that there may a legitimate need for something like this.
(It's also been an admin-selectable option in all the other board software I have used, which also seems to indicate to me that others have acknowledged that there can indeed be a use for such a feature.)
As much as I LOVE vb, I believe this is the single biggest omission in it's vast feature set.
Thanks for listening to me whine. :)
-snake
Bro_Joey_Gowdy
08-14-2005, 08:34 PM
Any updates on this ?
ashley53680
09-23-2005, 09:54 PM
I could use this too!
I've read that I can just prune the threads that I want removed and it won't affect the post count until I update the counters. Well... at some point in time I am sure I'll have to update the counters then I'll be SOOL.
My main reason for wanting this is because my members would get on me if their post counts went down. (they worked hard for them ya know! :lol: ) Especially because I have several members with over 10,000 posts, they like seeing their high numbers.
If anyone comes up with anything I would be ever so grateful if you could pass it on.
THANK YOU!
Ashley
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.