Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Comments count increment in 2.1
Kswift
✭
Just got back to tuning my beta 2.1 install, and noticed that the Vote plugin seems to have an issue showing the corrent comment count. On my install, it is stuck at -1 (negative).
Upon searching I saw @vrijvlinder mentioned that this plugin has this problem; wonder if you have been able to solve it? I went into the code a bit, but simply changing -1 to 0 did not seem to change anything on my side.
Tagged:
0
Comments
Sorry, it's actually not stuck at -1 but rather one count behind, so the code just needs to be incremented by one, somewhere
is this the line you chnaged it on?
Wrap(T('Comments')) . Gdn_Format::BigNumber($Discussion->CountComments - 1)
try using -0
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
use the increment view plugin it may work for you
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Thanks! The code you suggested worked perfectly well. Maybe I didn't properly empty cache before... No need to use the increment view plugin, I guess.
minus zero .
1+1- 0 = 1+1
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.