Cookbook /
RatingSystem
Summary: Display a widget from Rating-System.com
Version: 2015-09-12
Prerequisites: PmWiki 2.2.79 PHP 5.5 compatible
Status: Alpha
Maintainer: simon
Discussion: RatingSystem-Talk?
Questions answered by this recipe
How do I display a rating box widget from http://rating-system.com?
Description
A recipe to display the widget markup for Rating System
Installation
- download
2015-09-12-ratingsystem.phpΔ
- copy to the
/cookbook/
directory asratingsystem.php
- add to config.php the line
include_once("$FarmD/cookbook/ratingsystem.php");
Usage
- Signup at http://www.rating-system.com/ to obtain a
companyid
andratingboxid
. - Place the directive, as described below, in your PmWiki page.
The recipe provides a page variable {$RatingSystemVersion}
which contains the current version, and $RatingSystem
for a (:if enabled RatingSystem:)
recipe installation check.
Configuration
Required parameters are shown in bold.
(:ratingsystem companyid=companyid ratingboxid=ratingboxid
rspage=rsbox|rsratingbox|rsaverage|rsratereviewbox|rsreviewbox|rsqanda
userid=userid
height=height
width=width
float=left|right
clear=both|left|right
:)
config.php
settings
You can set defaults for a number of values in config.php
. For example
$RatingSystemCompanyId = 9999; # set default companyid
$RatingSystemRSPage = value; # set default RSPage type
Notes
Change log / Release notes
See also
Contributors
Comments
See discussion at RatingSystem-Talk?
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.