Exclude original post from comment count
Hi there,
I would like to exclude the first/original post of a discussion from the comment count. I want the comment count to be changed on all areas of the wbesite. So for example, if we were in the 'all categories' view and there was a category with only 1 discussion with only the original comment then the count would read:
1 discussion, 0 comments
Or for example if we were inside that specific category and viewing the dicussions that same discussion would read:
0 comments
I noticed in applications/vanilla/models/class.commentmodel.php there is some code that has '+ 1' hardcoded with the comment:
// Include the first comment (in the discussion table) in the count.
I removed this in both cases in this file but this is only affecting the count in the discussions view, and even then it doesn't seem to be working correctly all the time.
I noticed when creating a new discussion the CountComments in the Discussion table is 1 but I can't find where it is being set in the PHP.
Any help would be appreciated, thanks.
Comments
I'm using Vanilla version 2.0.18.8.
Even I am facing the same issue. Tried changing the commentcount to -1 at discussion.php but didn't work. Any help?
Have you tried this plugin ?
http://vanillaforums.org/addon/refreshcounts-plugin
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Should I use this plugin after changing to -1 or 0.
Just try it as is and see what it does.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Didn't worked.
Empty the ini files from the cache and see it that works. try -0 instead in the changes that you made
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
or -0 + 0 + (172 * 0)
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
You may laugh but that actually worked on something in the past ...the negative 0 that is
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
You may laugh but that actually worked on something in the past ... the -0 + 0 + (172 * 0) that is
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.