Channel Ratings Documentation

{channel_ratings:likes}

{exp:channel_ratings:likes entry_id="{entry_id}"}

    {rating:liked} people found this review useful

{/exp:channel_ratings:likes}


{exp:channel_ratings:top_liked_entries}

{exp:channel_ratings:top_liked_entries custom_fields="body|extended"}
    <h2>{rating:entry_title}</h2>
    <p>{rating:body}</p>
    <p>{rating:extended}</p>
    This entry has been liked {rating:likes} times!
{/exp:channel_ratings:top_liked_entries}


{exp:channel_ratings:my_likes}

{exp:channel_ratings:my_likes like_author_id="CURRENT_USER" type="entry"}
    {exp:channel:entries entry_id="{rating:entry_id}" dynamic="off"}
            <h3>{title}</h3>
            <p>{if "{rating:liked}"}You Liked this article{/if}</p>
            <a href="{rating:delete_url}">Delete</a>
            {if rating:no_likes}<p>You have not liked any entries</p>{/if}
    {/exp:channel:entries}
{/exp:channel_ratings:my_likes}


{channel_ratings:new_like}

{exp:comment:entries channel="default" entry_id="{entry_id}"}
    {exp:channel_ratings:likes comment_id="{comment_id}"}
        {rating:liked} people found this review useful <br />

        {if rating:not_voted}

            {exp:channel_ratings:new_like comment_id="{comment_id}"}

                I <a href="{rating:like_url}">like</a> this
                I <a href="{rating:dislike_url}">don't like</a> this

            {/exp:channel_ratings:new_like}

        {/if}

    {/exp:channel_ratings:likes}

    {comment}
    <p>By {name} on {comment_date format="%Y %m %d"}</p>
{/exp:comment:entries}


{exp:channel_ratings:new_rating}

    {exp:channel_ratings:new_rating entry_id="{entry_id}" captcha="yes" max_value="5" return="/channel_rating/new_rating/"}

        {if rating:already_rated} You have already rated this entry{/if}

        {if rating:not_rated}

                {rating:fields}
                        <label>{rating:field_title}</label>

                        <select name="{rating:form_name}">
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                        </select>
                {/rating:fields}

                {!-- YOU CAN STILL HARDCODE THE form input name, for example: <select name="rating[default]"> --}

                {if rating:captcha}
                        {rating:captcha}
                        <input name="captcha" type="text"/>
                {/if}

                <input type="submit">
        {/if}

    {/exp:channel_ratings:new_rating}


{exp:comment:form}

{exp:comment:form channel="products" entry_id="{entry_id}" dynamic="off" rating:enabled="yes"}

    {if rating:already_rated} You have already rated this entry{/if}

    {if rating:not_rated}
            {rating:fields}
                    <label>{rating:field_title}</label>

                    <select name="{rating:form_name}">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                    </select>
            {/rating:fields}

            {!-- YOU CAN STILL HARDCODE THE form input name, for example: <select name="rating[default]"> --}
    {/if}

    <label>Review</label>
    <textarea name="comment" cols="70" rows="2"></textarea> <br />
    <input type="submit" value="Submit Comment">
{/exp:comment:form}


{exp:channel_ratings:rating}

{exp:channel_ratings:rating entry_id="{entry_id}"}
        Price: {rating:price:stars} ({rating:price:avg} of 5)
        Shipping: {rating:shipping:stars} ({rating:shipping:avg} of 5)
        OVERALL: {rating:overall:stars} ({rating:overall:avg} of 5)
{/exp:channel_ratings:rating}


{exp:channel_ratings:rating_comment}

{exp:comment:entries sort="asc" limit="20"}
        {comment}

        <p>By {name} on {comment_date format="%Y %m %d"}</p>

        Rating: {exp:channel_ratings:rating_comment comment_id="{comment_id}"} {rating:overall:stars} {/exp:channel_ratings:rating_comment}
{/exp:comment:entries}


{exp:channel_ratings:rating_comment_avg}

{exp:channel_ratings:rating_comment_avg entry_id="{entry_id}"}
        Price: {rating:price:stars} ({rating:price:avg} of 5)
        Shipping: {rating:shipping:stars} ({rating:shipping:avg} of 5)
        OVERALL: {rating:overall:stars} ({rating:overall:avg} of 5)
{/exp:channel_ratings:rating_comment_avg}


{exp:channel_ratings:rating_status}

{exp:channel_ratings:rating_status entry_id="{entry_id}" }
        {if rating:already_rated} You have already rated this entry {/if}
        {if rating:not_rated} Please scroll down to submit your rating! {/if}
{/exp:channel_ratings:rating_status}


{exp:channel_ratings:top_entries}

{exp:channel_ratings:top_entries custom_fields="body|extended"}
    <h2>{rating:entry_title}</h2>
    <p>{rating:body}</p>
    <p>{rating:extended}</p>
    Rating: OVERALL: {rating:overall:stars} ({rating:overall:avg} of 5)
{/exp:channel_ratings:top_entries}


{exp:channel_ratings:top_items}

<h3>Top Channel Images</h3>
{exp:channel_ratings:top_items type="channel_images"}

        {exp:channel_images:images image_id="{rating:item_id}"}
                <img src="{image:url:small}">  {rating:overall:stars} <br />
        {/exp:channel_images:images}

{/exp:channel_ratings:top_items}

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.