News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Post Count Changes

Started by LBizGrl, December 31, 2006, 07:43:44 AM

Previous topic - Next topic

LBizGrl

SMF Version: SMF 1.1.1
I have had several members tell me that there post count has decreased. What could have caused this?

I though it would be because of forum maintenance...however, when I did a search here someone said that would not be the reason...ACK!

Any help is appreciated!
Smile! :)

It burns WAY more calories than a frown!

SleePy

Deleting posts will cause your post count to decrease. Even moving them to the recycle board (if enabled) will cause this.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

LBizGrl

Is there any way around that? I mean, I want to be able to delete posts AND members keep their post count :(
Smile! :)

It burns WAY more calories than a frown!

SleePy

you could attempt to remove it in RemoveTopic.php
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

codenaught

Open Sources/RemoveTopic.php.

Find:

function removeTopics($topics, $decreasePostCount = true, $ignoreRecycling = false)

Change to:

function removeTopics($topics, $decreasePostCount = false, $ignoreRecycling = false)

Find:

function removeMessage($message, $decreasePostCount = true)

Change to:

function removeMessage($message, $decreasePostCount = false)
Dev Consultant
Former SMF Doc Coordinator

LBizGrl

Smile! :)

It burns WAY more calories than a frown!

meadows317

Sorry to bump this topic up, it's old.  But I didnt want to re-create another topic identical to it.      I noticed the date on the topic and the version is different.    But can this coding still work the same?

:)

- Amber -

codenaught

Yeah it should still work. The same exact lines of code that are being searched for are also in the latest version of SMF.
Dev Consultant
Former SMF Doc Coordinator

meadows317

- Amber -

Kat9119

#9
Same for bumping it ...again, but this same coding is in 1.1.4 as well? I'd like to not have my post counts drop either.

EDIT: It seemed to work for me...so...cool  :)

Advertisement: