Quote:
Originally Posted by Noctavia
I can't figure out how to make the text red if there's 10 negative however. If the post has 10 positive AND 10 negative, it's still staying green. I wasn't sure if the following is correct to make it work that way:
|
You need to reverse your code...
Right now you are saying if the post has more than 10 goodrank it should be green. If not AND if it has more than 10 badrank it should be lime. Instead you need to say if it has more than 10 badrank make it lime first since this is the end goal.
Quote:
Also, with regards to the "x members liked this post." phrase, I can't figure out how to add in the second "don't like this post" line. The phrase I have is: {1} members liked this post. If I try {1} members liked this post. {2} members don't like this post. - the number 2 part is taking into account ALL votes, so it looks like 1 member liked it, but 2 didn't like it... when really, it's 1 like and 1 dislike.
|
You're using the wrong phrase variable. You need to edit:
Code:
<phrase 1="$post[goodrank]" 2="$post[totalrank]">$vbphrase[helpfulanswer_x_out_of_y]</phrase>
And change it to:
Code:
<phrase 1="$post[goodrank]" 3="$post[badrank]">$vbphrase[helpfulanswer_x_out_of_y]</phrase>
This variable already exists in 1.9.