SMF Support > SMF 2.0.x Support

disable post count function---2.02

(1/2) > >>

DarkAngel612:
I know this comes as part of the smf 2 upgrade now but how to get it to work?

I have gone into admin and set it to allow by ticking the box for it, which I also assume that the database reading a number 1 means it is allowed

or did I get it backwards....something I do very often as in typing or talking, and was I suppose to leave alone in admin and make it a 0 in database

otherwise can someone tell me which files I need to comment out the aility to reset the post counts so when my admins delete posts the members count stays put without going down.

well darn it all, I wanted to show you the setting and I can't find it anymore...everything is just jumbling up in my old eyes right now

please help

Arantor:
Um, don't touch the database at all?

Admin > Configuration > Core Features > Advanced Profile Fields.

Turn that on, then you can hide post counts once it's enabled.

DarkAngel612:
I don't want them disabled. I want them to stop going down in count when posts are deleted....if 1502 is count then it stays that way after deleteing even 3 is what I want.

there used to be a mod for it but not for 2.02 version. i think it was a decrease/increase post count mod

I tried commenting out some items in the source files but it does stop the decrease from happening until one of the mods/admins goes to admin to maintenance and hits to recount all totals, then all counts are tallied again.

I just want to not have them decrease in count when posts are removed

I think this was the mod that does not work now in 2.02

http://custom.simplemachines.org/mods/index.php?mod=1130

if I knew coding better I could try to see what is different but unfortunately I am still learning.

Kermit:
You can try to install the mod manually

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1130;attach=75480;smf_version=2.0.2

and for ./Sources/ManageSettings.php part try this


--- Code: (find) --- // Number formatting, timezones.

--- End code ---


--- Code: (replace) --- // Decrease post count option.
array('check', 'disablePostDecreasePostCount'),
array('check', 'disableTopicDecreasePostCount'),
'',
// Number formatting, timezones.

--- End code ---

DarkAngel612:
ok, I will try installing manually. I have already done it several times but no matter what it did not work, when I deleted a post the count went down...lol

I even removed the

updateStats('message');
    updateStats('topic');

from these files, but also when I deleted a post the count still went down.


MoveTopic.php
RemoveTopic.php
RepairBoards.php
Subs-Boards.php
ManageMaintenance.php
MessageIndex.php

Navigation

[0] Message Index

[#] Next page

Go to full version