Using EasyDiscuss - Recent Discussions (Version 4.0.12), I noticed that the number of hits is always displayed and can't be switched off.
I was going to hack the code to turn it off but a check of the default.php file however showed that the section that displays this is wrapped in a conditional statement. That is, it indicated that the designers anticipated that this could be switched off.
Long story short, it seems all the infrastructure to allow switching this on or off was done but someone forgot to add the last piece of code in to activate this.
So, in mod_easydiscuss_recentdiscussions.xml, amending ...
to ...
... brings up the option.
Can someone fix this omission and update the module release?
I was going to hack the code to turn it off but a check of the default.php file however showed that the section that displays this is wrapped in a conditional statement. That is, it indicated that the designers anticipated that this could be switched off.
Long story short, it seems all the infrastructure to allow switching this on or off was done but someone forgot to add the last piece of code in to activate this.
So, in mod_easydiscuss_recentdiscussions.xml, amending ...
<field name="showtotalvotes" type="radio" class="btn-group" default="1" label="MOD_EASYDISCUSS_RECENTDISCUSSIONS_SHOW_TOTAL_VOTES" description="MOD_EASYDISCUSS_RECENTDISCUSSIONS_SHOW_TOTAL_VOTES_DESC">
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
to ...
<field name="showtotalvotes" type="radio" class="btn-group" default="1" label="MOD_EASYDISCUSS_RECENTDISCUSSIONS_SHOW_TOTAL_VOTES" description="MOD_EASYDISCUSS_RECENTDISCUSSIONS_SHOW_TOTAL_VOTES_DESC">
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="showhits" type="radio" class="btn-group" default="1" label="MOD_EASYDISCUSS_RECENTDISCUSSIONS_SHOW_HITS" description="MOD_EASYDISCUSS_RECENTDISCUSSIONS_SHOW_HITS_DESC">
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
... brings up the option.
Can someone fix this omission and update the module release?