Log in

View Full Version : How can I Delete Posts, but Not Post Count


qubed
10-27-2008, 04:02 PM
Is it possible to delete someones post but not have it affect their overall post count?

edermix
10-27-2008, 04:12 PM
open file archive:

includes/functions_databuild.php

search code:

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

{

Add this line below:

$countposts = false;

search code:

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

{

Add this line below:

$countposts = false;

Font: http://www.vb-brasil.org/forums/vb-dicas/422-desabilitando-diminuicao-de-contagem-de-posts.html

qubed
10-27-2008, 04:31 PM
edermix

am i only adding the code or am i changing countpost = true to countpost = false?

Mavrik347
10-27-2008, 07:28 PM
I'd say that's a change if it's already there. You don't want 2 lines for the same variable.

edermix
10-28-2008, 01:28 AM
Just add the line that I mentioned. Is this code tested and functional.

Kangaroo666
10-03-2011, 04:17 AM
Works great on vb 4.1.5 too. Thanks m8. :)

Fready
10-03-2011, 05:52 AM
Don't delete the posts.
Just move them to a Trash Bin