if overall_rating
Posted: 29 August 2007 03:59 PM   [ Ignore ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-25

I’m having trouble with this logic.

What I want to happen:
If there are no comments
Display “Comment on This”
If there are
Show Number of Comments

This is the code I’m working with:

{exp:rating:stats entry_id="{entry_id}" theme="default"}
{if overall_count
> “0"}({overall_count}){/if}
Rate This
{exp:rating:stats}

What is happening is:
If there are no comments, nothing is being displayed.
If there are, this is displayed” Comments (3) Rate This

Profile