This is the text I've got:
PHP Code:
<!-- message -->
<if condition="$post[goodrank] >= 10">
<span style="color:lime;">$post[message]</span>
<else />
$post[message]
</if>
<!-- <div id="post_message_$post[postid]">$post[message]</div> -->
<!-- / message -->
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:
PHP Code:
<!-- message -->
<if condition="$post[goodrank] >= 10">
<span style="color:lime;">$post[message]</span>
<else />
<if condition="$post[badrank] >= 10">
<span style="color:red;">$post[message]</span>
<else />
$post[message]
</if>
<!-- <div id="post_message_$post[postid]">$post[message]</div> -->
<!-- / message -->
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.