Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Current version:
orphaned: Download doesn't work with txp 4.06, author site links outdated
About It:
Get it:
Rate it:
  • Helpful?
  • 3 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

tcm_rating

Allows a rating system.

Features

  • Use images for ratings
  • IP limiting
  • Unlimited rating range

Download:

main download
tcm_ratingcount

Installation:

  • Upload rating_sql.php and rating.php to your Textpattern directory.
  • Go to rating_sql.php
  • Delete rating_sql.php
  • Install tcm_ratinginput and tcm_ratingoutput

Options:

tcm_ratinginput

  • range

tcm_ratingoutput

  • type
    • text (returns the average rating)
    • stars (outputs on/off images to represent the rating)
  • img – the “on” image, the colored-in star
  • offimg – the “off” image, the light star
  • anchor – add an anchor to the rating output

Code examples:
<txp:tcm_ratingoutput type="stars" img="/3/textpattern/graphics/on.gif" offimg="/3/textpattern/graphics/off.gif" anchor="true" />
<txp:tcm_ratinginput range="5" />
<txp:tcm_ratingcount />

Modifications:

Paul Armstrong came up with some nice changes that include auto-submitting and only allowing one vote per article per IP (I’m not sure about that part, considering dynamic IP and ISPs, you might mistakenly block someone else, and a delay is enough to stop flooding)

Article Request Count:

Archived [?]: Download doesn't work with txp 4.06, author site links outdated.

Initially released:
Aug 30, 2004
Posted here:
27 Mar 2005

You know you want to visit the Archives.
Published with Textpattern