PDA

View Full Version : Miscellaneous Hacks - Disable Post Count Decrease


dxt-cobra
02 Apr 2009, 15:06
This should work for any version. I found an older version of this and did not see any updates, so here is something that will work for anyone.

Credits goto:
Original Maker of Disable Postcount
Author: Paul41598

Find this template
"includes/functions_databuild.php"

FIND THIS:

function delete_thread($threadid, $countposts = true, $physicaldel = true, $delinfo = NULL, $dolog = true, $threadinfo = NULL)
{
global $vbulletin, $vbphrase;


Under This line "global $vbulletin, $vbphrase;"

ADD THIS:
$countposts = false;

FIND THIS:

function delete_post($postid, $countposts = true, $threadid = 0, $physicaldel = true, $delinfo = NULL, $dolog = true)
{
global $vbulletin, $vbphrase, $threadinfo;

Under this line "global $vbulletin, $vbphrase, $threadinfo;"

ADD THIS:
$countposts = false;

save your file and go test!!! noone's post count should drop anymore.

MrZeropage
02 Apr 2009, 17:28
http://www.vbulletin.org/forum/showthread.php?t=121871

Jasem
03 Apr 2009, 02:20
Good work, thank you......

Installed

puertoblack2003
03 Apr 2009, 04:12
http://www.vbulletin.org/forum/showthread.php?t=121871


last post date is april 17,2008 do we know if it works for the latest version???

FiMeTi
03 Apr 2009, 10:51
Nice idea, but I dont like those file edits at all.
Thx anyway.

@MrZeropage, can you confirm your mod working for 3.8.2? (or anyone else)

Frondy
04 Apr 2009, 09:07
Nice, it works! Thanx (installed)

c.oper
05 Apr 2009, 02:59
It works very well in 3.8.1 PL1! Thanks! Installed!

Stifmeister2
05 Apr 2009, 20:44
Nice idea, but I dont like those file edits at all.
Thx anyway.

@MrZeropage, can you confirm your mod working for 3.8.2? (or anyone else)
Yep it's working.

MrZeropage
05 Apr 2009, 20:50
Yes, the "old" one is still working (otherwise I wouldn't have posted a link to it here), and I think it will work all over 3.8.x :)

MrZeropage
07 Apr 2009, 19:06
I just released an update of my older version:
http://www.vbulletin.org/forum/showthread.php?t=210570

Alexey™
07 Apr 2009, 21:07
this is nice tnx

rigodiaz
04 Feb 2010, 03:24
Works great, thank you.