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
Licence: GPL3[1]
Users: (view? / edit)
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 as ratingsystem.php
  • add to config.php the line
    include_once("$FarmD/cookbook/ratingsystem.php");

Usage

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

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

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.