dot-totally.co.uk > Software > WatchRate

WatchRate

WatchRate is basically my experiments into using folksonomy: using tags to identify information. Put simply, the software allows you to rate films and episodes of shows you have watched, and also tag them so you can collect the information together. The idea is simple, the code is simple (and probably, messy too). I developed it for two reasons: one, to help me manage films and episodes I have watched and want to rate simply, and two, so I could advance my skills in MySQL a little bit.

Features

WatchRate features an admin interface, with password, albeit fairly weak security (simple password kept in configuration file) that allows you to add new film ratings, episode ratings to shows, and also edit or delete this information. The admin interface also uses some basic Javascript for adding a new show, where the user selects "New..." from the drop down menu of shows already in the database, and a message box prompts the user to enter new information. Also, another simple javascript function confirms users really want to delete any episodes or films from their list. Viewers can browse the list by tag, and also filter to viewing just film ratings or episode ratings. Using Apache rewrite rules, it also creates clean URIs, such as /tags/adventure/ or /show/the_x_files/.

Future

Possible and better changes for the future include:

Example

To see an example of WatchRate in use, you can see the one I'm personally using here on dot-totally.

I've also integrated it into my Personal page, a feature that is very useful of WatchRate is you can easily implement it using your own choice of template tags into any page - for example you could use it in a sidebar of your weblog. The code I'm using on my personal page is as follows:

$wr = new WatchRate();
$wr->limit = 10; // Only include last 10 results
$wr->overridefilters(false, false, false, false, false); // Don't let results be altered by extra variables
$wr->start(); // Start the WR process

print "<table class=\"linklist\" border=\"0\" width=\"98%\">\n";

while ($wr->ratingsrow()) {

    print " <tr>\n";
    print "  <td><a href=\"" . $wr->getmorelink("", "", "", "", false, true) . "\">" . $wr->gettitle(true) . "</a></td>\n";
    print "  <td style=\"width:1px\">" . $wr->getrating(true, true) . "</td>\n";
    print " </tr>\n";

}

print "</table>\n\n";

Documentation

See WatchRate:Template Tags for information on how to use the template tags to customize your copy of WatchRate.

Downloads

You can download WatchRate from the following URL:

WatchRate v0.26 (45kb, released 26th August 2007)

Notes