Log in

View Full Version : Miscellaneous Hacks - Disable Post Count Decrease


dxt-cobra
04-01-2009, 10:00 PM
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
04-02-2009, 03:28 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=121871" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=121871</a>

Jasem
04-03-2009, 12:20 AM
Good work, thank you......

Installed

puertoblack2003
04-03-2009, 02:12 AM
https://vborg.vbsupport.ru/showthread.php?t=121871


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

FiMeTi
04-03-2009, 08:51 AM
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-04-2009, 07:07 AM
Nice, it works! Thanx (installed)

c.oper
04-05-2009, 12:59 AM
It works very well in 3.8.1 PL1! Thanks! Installed!

Stifmeister2
04-05-2009, 06:44 PM
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
04-05-2009, 06:50 PM
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
04-07-2009, 05:06 PM
I just released an update of my older version:
https://vborg.vbsupport.ru/showthread.php?t=210570

Alexey?
04-07-2009, 07:07 PM
this is nice tnx

rigodiaz
02-04-2010, 01:24 AM
Works great, thank you.