Customizing SMF > Mod Requests
Disable Decrease Post Count
(1/1)
smokester:
Old Fossil suggested this might be a better place to request a mod that did what this mod did, but for the new 2.0.2 version of SMF.
The old mod is now completely outdated and cannot be forced to work. Is there someone then who could script another mod to do the same thing?
I really need this mod as I have to postbomb some threads occasionally and unfortunately it also bombs members' postcounts. I can as admin, manually adjust the postcounts to what they were before the bomb, but this mod would save a lot of aggravation.
Many thanks to whoever can help.
Masterd:
This actually requires only two simple edits.
Open file RemoveTopic.php located in Sources and find the following.
--- Code: ---// Removes the passed id_topic's. (permissions are NOT checked here!)
function removeTopics($topics, $decreasePostCount = true, $ignoreRecycling = false)
{
global $sourcedir, $modSettings, $smcFunc;
--- End code ---
Replace that code with this one.
--- Code: ---// Removes the passed id_topic's. (permissions are NOT checked here!)
function removeTopics($topics, $decreasePostCount = true, $ignoreRecycling = false)
{
global $sourcedir, $modSettings, $smcFunc;
$decreasePostCount = false;
--- End code ---
Then just repeat this action one more time.
Find.
--- Code: --- if (empty($message) || !is_numeric($message))
return false;
--- End code ---
Replace.
--- Code: --- if (empty($message) || !is_numeric($message))
return false;
$decreasePostCount = false;
--- End code ---
That's all.
smokester:
Many thanks Masterd and sorry for the delay in replying.
I'll try the edits you generously have given me later this evening, and report back if I encounter any issues.
Navigation
[0] Message Index
Go to full version