New Section and Updated Star Rater Script

August 19, 2006

I just added a new section to the site called "The Lab" where my feeble attemps at PHP scripting and Wordpress plugins will be found. Right now the main (read: only) thing there is an updated Star Rating script. It's much improved over the original. You'll love it.

Here are some of the new features in v1.1:

  • Uses unobtrusive Javascript, so ratings will still work if the user has Javascript off (the script has been tested in IE 6, Safari, and FF).
  • keeps Javascript out of the HTML, resulting in cleaner markup
  • There are now some checks in place to discourage monkey-business, like negative numbers, or funky IP's
  • IP lockout is now in the script
  • You can now specify the number of units! If you want 5 stars, just add a 5, otherwise the script defaults to 10.
    Examples:
    • <?php rating_bar('2',5); ?>
      Outputs a 5-star rating, with an id of 2.
    • <?php rating_bar('3b',8); ?>
      Outputs an 8-star rating, with an id of 3b.
    • <?php rating_bar('66'); ?>
      Outputs a standard 10-star rating, with an id of 66.
  • Enter database info in one place rather than three places
  • This script only uses ONE small image
  • Better installation documentation

So for now, just skip visiting The Lab's (mostly barren) main page and jump right to the star-rating goods right here »

4 Comments

  1. 1. oreonix

    August 20th, 2006

    Hey

    For some reason the Star rater will not download in linux under firefox 1.5.01, but I was able to download it under IE in windows.  Just to give you the heads up.  I haven’t tried the prog yet, but looks good.
    -----

  2. 2. ryan

    August 21st, 2006

    Wow. Glad to know I can put something together that works in IE but doesn’t using Linux and Firefox. I quit!

  3. 3. omur

    October 31st, 2006

    Looks cool :) thanx @ryan

  4. 4. ic

    November 22nd, 2006

    Hi, great script. Hangs on the working gif in Firefox 1.5 & 2 on Mac tho. A page refresh shows the successful vote.

    Pity as I was going to use this

Sorry, comments are closed.