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.
-1 comment sorted by votes
Irfanalam123
New
when no answer is posted, -1 comment sorted by votes. And when a answer is posted then 0 comments sorted by votes. Please help someone !
Also
I incremented as mentioned in a post http://vanillaforums.org/discussion/comment/185789/#Comment_185789 from -1 to 0 and it worked but after this if I click vote up or down then it result in blank browser with only written TRUE
0
Comments
read the documentation on troubleshooting...
http://docs.vanillaforums.com/developers/troubleshooting/
or
try
Wrap(T('Comments')) . Gdn_Format::BigNumber($Discussion->CountComments);
Based on your questions, it sounds like you've got some studying to do css, php syntax, web developer tools, and troubleshooting.
http://docs.vanillaforums.com/developers/troubleshooting/
http://vanillaforums.org/discussion/20231/how-to-become-somewhat-adept-at-modifying-vanilla-to-meet-your-needs-for-free
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I dont know how but the new plugin already has the same code you mentioned but still showing -1 for no comment...
I changed
$AnswerCount = $Sender->Discussion->CountComments - 1;
to$AnswerCount = $Sender->Discussion->CountComments - 0;
in line 186 in class.voting.plugin.phpCurrently It is working for me !
This has to do with the way comment count calculations changed from 2.0 to 2.1. A discussion with no replies in 2.0 was considered to have 1 comment.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.