Quote:
Originally Posted by Silviu
Hello Ted,
Question: is there a way to hide the "helpfulanswer_x_out_of_y" variable if the user hasn't rated a reply yet?
Right now, the "x out of y members found this post useful" is displayed right next to the thumbs up / down buttons, which we don't really want, because it can bias the opinion of the would-be voter ( oh, look, this reply has only 2 positive votes out of 5, i won't bother to read it, just hit minus and be done with it)
|
Sure...
Just modify the conditional...
Code:
<if condition="$post['totalrank']">
<phrase 1="$post[goodrank]" 2="$post[totalrank]" 3="$post[badrank]">$vbphrase[helpfulanswer_x_out_of_y]</phrase>
</if>
To something like
Code:
<if condition="$post['totalrank'] AND $post['helpfulanswerid']">
<phrase 1="$post[goodrank]" 2="$post[totalrank]" 3="$post[badrank]">$vbphrase[helpfulanswer_x_out_of_y]</phrase>
</if>