By Martin Johnsen on Friday, 05 August 2016
Posted in Technical Issues
Replies 5
Likes 0
Views 768
Votes 0
Hi,

For accepted answers on Easydiscuss the answer counter (counter shows 0) and string is incorrectly. however it works fine if answer is not accepted as correct answer(solution).

see attached image.

what can the problem ?
Hi Martin Johnsen,

I've tried to replicate this issue locally seems there are some mistranslated in your language ini file where it is not suppose translated as answer but response and replies (please refer my attached images) .
·
Friday, 05 August 2016 18:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Thanks for you quick reponse, we translated reply to answer that is fine. To replicate the issue can you please follow the steps, after creating a discussion post:
1. reply to that post.
2. mark it resolved.

check counter view replies at the top and on the bottom; it shows zero even in then screenshots you attached. That is the actual issue, counter is zero and it should not be.

Correct me if I am wrong.

Thanks
·
Friday, 05 August 2016 18:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Martin Johnsen,

I've replicate this locally and seems I can replicate this. I've extends this to our developers and it is a default behavior where total replies is counted for the replies in a thread only where not included the accepted answer
·
Friday, 05 August 2016 19:40
·
0 Likes
·
0 Votes
·
0 Comments
·
yes ok, but I do not think it is better to exclude the count of accepted answer.

let's say there are 5 replies to a thread and counter shows 4? The user will get confused about the very reason about total replies minus accepted reply.

Can you please give me a hint so that i can update/change this behaviour locally to my website ?
·
Thursday, 25 August 2016 19:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Martin Johnsen,

You can make a simple hack for that, try to comment out/remove the code below
$query .= ' AND `answered` = ' . $db->Quote('0');

in the function getTotalReplies in the file
JOOMLA_FOLDER\administrator\components\com_easydiscuss\models\posts.php
and see how it goes?

p.s: I would suggest you to backup the file beforehand, because any we will not responsible on any customization.
·
Thursday, 25 August 2016 19:47
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post