Rating Documentation

Rating:Reporting_Allowed template tag

The Rating:Reporting_Allowed tag is basically a conditional that allows/disallows your visitors to report ratings/reviews they find offensive or inappropriate. In the Rating control panel area, you can configure which member groups can report ratings, and how many reports are necessary to quarantine a rating. You would normally create Reporting links that link to the template with the Rating:Report function, and surround the link with the conditionals available within the Rating:Reporting_Allowed tag.

{exp:rating:reporting_allowed} content {/exp:rating:reporting_allowed}


The following parameters are available for use:



This parameter is required to use this tag. You would usually pull a rating ID from the Rating:Entries loop, but you could also do this through the URI, or through an embedded template.


The following conditionals are available for use:


{if failure}{/if}

This conditional will show its contents if the user viewing the page is NOT allowed to report ratings/reviews.


{if success}{/if}

This conditional will show its contents if the user viewing the page is allowed to report ratings/reviews.


The following is an example of the Rating:Reporting_Allowed feature in use within a Rating:Entries loop (where it needs to be), assuming you’re on a Single Entry View template:

{exp:channel:entries require_entry="yes"}

<h3>Ratings for this Entry:</h3>

    {if screen_name}
            <a href="{path='user/profile'}/{member_id}/">{screen_name}</a>
        {if avatar}
            <img src="{avatar_url}" width="{avatar_width}" height="{avatar_height}" />
        <p>{name} (Guest)</p>
        <p>Submitted on {rating_date format="%F %j, %Y at %g:%i %a"}</p>

    {exp:rating:reporting_allowed rating_id="{rating_id}"}
        {if success}
                <a href="{path='rating/report'}/{rating_id}/">
                    Flag this review as Spam / Offensive?
        {if failure}
                You are not allowed to flag reviews.



Having problems setting up and/or using Rating? 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.