Rating 2.0 Quarantine Allowed

Your users can vote to quarantine ratings and reviews that they find offensive. But not all of your users can do so. In the Rating module CP you can control who has that privilege. This function helps you evaluate who can and cannot vote to quarantine ratings / reviews. Most of the time you will use this function to either show or hide your quarantine link or button or whatever. See the 'quarantine' function.

Variables

message

{message}

The 'message' variable will be replaced by the appropriate message generated by the Rating module depending on the permission level of the member viewing the page.

Conditionals

failure

{if failure}{/if}

The 'if failure' conditional will show its contents if the member viewing the page is NOT allowed to quarantine ratings / reviews.

success

{if success}{/if}

The 'if success' conditional will show its contents if the member viewing the page is allowed to quarantine ratings / reviews.

Examples

{exp:rating:quarantine_allowed}
{if success}This rating is offensive. <a href="{path=’rating/quarantine’}{rating_id}">Quarantine It</a>{/if}
{if failure}You are not allowed to quarantine reviews.{/if}
{/exp:rating:quarantine_allowed}

Control Panel

Note: It is necessary to configure your settings for Quarantining ratings in the Rating Control Panel: Weblog Preferences:
(Modules › Rating › Weblog Preferences)
Moderate ratings? must be set to "Yes" and Number of quarantine votes before ratings are quarantined must have a value of 1 or greater, and specifies the amount of times it takes to be voted to be quarantined by members before it becomes quarantined.

You must also configure your settings for Member Group Quarantining privilages in the Rating Control Panel: Group Preferences:
(Modules › Rating › Group Preferences)
Can this group quarantine ratings? must be set to "Yes" for members of that group to be allowed to quarantine a rating.