Rating 2.0 Quarantine
Your users can vote to quarantine ratings / reviews that they find offensive or inappropriate. They do so by clicking a link that you provide. The link will point to a template that has this function in it. This function will allow you to show a message to the user depending on the success or failure of the action.
Parameters
rating_id
{rating_id}
This is a required parameter. The 'rating_id' parameter tells the Rating module which rating / review will receive the quarantine vote.
Variables
message
{message}
The 'message' variable will be replaced by the appropriate message generated by the Rating module depending on the outcome of the quarantine action.
Conditionals
failure
{if failure}{/if}
The 'if failure' conditional will show its contents if the quarantine action fails for any reason.
success
{if success}{/if}
The 'if success' conditional will show its contents if the quarantine action succeeds.
Examples
{exp:rating:quarantine rating_id="{segment_3}"}
{if success}Quarantine successful.{/if}
{if failure}Quarantine failed.{/if}
{message}
{/exp:rating:quarantine}