Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

showratings

This function will display a rating option for items, the ability to view what others have rated and the also rate the item yourself.

showratings

Quote

showratings ( string $rating_type , int $rating_item_id , string $rating_link )


Parameters
rating_type
There are three types of reserved rating, this is limited to 1 character so think it thorough when choosing one.
This should not be N, A or P which are used inside the PHPFusion system.

rating_item_id
The item id you are rating, this must be unique for the given rating_type.
No other items with this id is allowed with the same rating type.

rating_link
The link for the page which the rating is on

Return Values
This function will return the result of the ratings and a form where you can submit your rating for the item.

Example
Code
<?php
showratings("N", $_GET['readmore'], FUSION_SELF."?readmore=".$_GET['readmore']);
?>


Changelog
7.01.00 - Global ratings_enabled settings added to be able to disable all ratings from the Administration.

Notes
Be careful with the choise of item_type as it only allows one character and some are already being used inside the PHPFusion Core.