Channel Ratings Documentation

Like - Like Stats Tag

{exp:channel_ratings:likes}

Parameters

Parameter Description
entry_id For Channel Entries
url_title For Channel Entries
comment_id For Individual Comments
member_id For Site Members
ci_id For Channel Images
cf_id For Channel Files
cv_id For Channel Videos
br_id For BrilliantRetail Products
collection A specific ratign collection
prefix This parameter allows you to change the default variable prefix used. This is especially useful when you are nesting tags to avoid variable collisions. Default is "rating".

Variables

Variable Description
{rating:liked} Total number of likes
{rating:liked_p} Total like percentage
{rating:disliked} Total number of dislikes
{rating:disliked_p} Total dislike percentage
{rating:total} Total number of submissions
{rating:latest_vote} The date/time of the latest like/dislike submission for this item For date variable info see: http://expressionengine.com/user_guide/templates/date_variable_formatting.html

Conditionals

Conditional Description
{if rating:no_votes} This tag will conditionally display the code inside the tag if there where no likes/dislikes recorded yet.
{if rating:voted} This tag will conditionally display the code inside the tag if the current user already has voted.
{if rating:not_voted} This tag will conditionally display the code inside the tag if the current user didn’t cast a vote yet.

Example

1
2
3
4
5
{exp:channel_ratings:likes entry_id="{entry_id}"}
 
        {rating:liked} people found this review useful
 
{/exp:channel_ratings:likes}

Support

Having problems setting up and/or using Channel Ratings? Support is offered from 10am to 4pm EST weekdays. Send us an email at help@eeharbor.com and we will respond as quickly as we can.