PDA

View Full Version : Disable Post Count Decrease


KOKS@LN
01-28-2006, 10:00 PM
Description: Users' post counts will not decrease when you delete posts or threads.
Credits: Andreas for vB 3.0 Ver. (https://vborg.vbsupport.ru/showpost.php?p=480449&postcount=2)
File Modifications: 1

------------------------------------------------------------
In includes/functions_databuild.php

FIND:
function delete_post($postid, $countposts = true, $threadid = 0, $physicaldel = true, $delinfo = NULL, $dolog = true)
{

ADD BELOW:
$countposts = false;

FIND:
function delete_thread($threadid, $countposts = true, $physicaldel = true, $delinfo = NULL, $dolog = true, $threadinfo = NULL)
{

ADD BELOW:
$countposts = false;

IrPr
01-29-2006, 01:37 PM
AWESOME ! ur 1st work ?
chaX! will try on my test board ASAP

IrPr
01-29-2006, 01:55 PM
ok installed and works fine;)
is it possible to do this for Total Forum Posts / Threads ?

KOKS@LN
01-29-2006, 01:56 PM
AWESOME ! ur 1st work ?
chaX! will try on my test board ASAP

LoL, I'm not a coder and this mustn't be considered as a work. Andrea's code helped me a lot. Thanks Andreas ;)

IrPr
01-29-2006, 01:59 PM
LoL, I'm not a coder and this mustn't be considered as a work. Andrea's code helped me a lot. Thanks Andreas ;)

Special Thanks to Andreas and You too ;)

J82980BA3E43
01-29-2006, 04:02 PM
ok installed and works fine;)
is it possible to do this for Total Forum Posts / Threads ?

installed and works fine
But is this also possible https://vborg.vbsupport.ru/external/2010/10/3.gif
thanks

Hornstar
01-31-2006, 08:15 AM
Correct me if im wrong, but you would just add "$countposts = false;" under each $threadid = *....}

ToMMyHR
02-16-2006, 09:35 PM
Thanks KOKS@LN & Andreas! :)

OndaReal
02-17-2006, 12:57 AM
excellent, i have alot of members that moan about post counts being decresed :O

RaZor Edge
04-13-2006, 02:26 PM
I was searching for that!

Thank you very much KOKS@LN!

Smiry Kin's
04-18-2006, 03:55 AM
dude could you make a hack that could seperate threads from posts..?

e.g they are counted seperately

maharajah
04-19-2006, 11:02 PM
Does this also stop the reduction in posts when threads are pruned from the Admincp ?

maharajah
04-28-2006, 11:36 AM
is anything hapenning here ?

No support ?

.

Stifmeister2
10-29-2006, 03:43 PM
Thanks. :)

Edmund Tan
12-24-2006, 04:23 PM
How do I get to edit the functions_databuild.php?

Stifmeister2
01-14-2007, 04:02 PM
How can I make this work for 3.6 ???

arena
01-24-2007, 02:59 PM
How can I make this work for 3.6 ???
yes

arena
01-24-2007, 03:11 PM
for members Users post members counts not decrease?

Stifmeister2
02-17-2007, 01:57 PM
Any news on the working version for 3.6.4 ?

Pamela
03-14-2007, 05:27 PM
*Clicks install*

Thank you!!!! I definitely needed to know how to do this!!! :D



For anyone having trouble with this, try putting the edits AFTER this symbol:

{


Putting it before that symbol, didn't work for me. :)

Pamela
02-29-2008, 04:36 AM
Can anyone code this to work in 3.7.0? I really need this mod!

Thank you!!! :)

yingzhou
02-20-2009, 01:16 PM
I need this too for vb 3.8.x! Could this work for 3.8?

yingzhou
02-21-2009, 12:10 AM
work fine with vb 3.8.0, no error found yet.

SweetAngel
09-09-2010, 07:49 AM
This is awesome and exactly what I have been looking for!

And it works in the 4 versions too

SweetAngel
01-09-2011, 03:31 AM
:(

Unfortunately, this doesn't work with the new version.

Does anyone have any ideas to stop the post counts decreasing when deleting posts?