I want to add a voting/rating 1 to 10 option button function to it

I do have some basic idea of a function, but where should I past it, should I just add it as a new class?

Any help or how the code is to be would be great

I would really like to do this without having the mysql database changed cause i may want to reupload the database to other places

Comments

  • acrylian Administrator, Developer
    We already have a voting system within zenphoto (1-5 only). Take look at our functions guide on http://www.zenphoto.org/documentation and search for albumrating and imagerating functions.
  • but i dont see it in the demos, where does the code for it reside
  • Well, and how to use `printImageRating()`? If i put `<?php printImageRating(); ?>` into the `image.php` file of my theme it returns some kind of a list, but no rating system/info at all.

    http://img131.imageshack.us/img131/2889/bildschirmfototo5.png
  • acrylian Administrator, Developer
    It's currently implemented in the default and the example theme. If you want it in any other theme, you have to place these two links in the html head section:
    `/plugins/rating/rating.js">

    /plugins/rating/rating.css" type="text/css" />`

    Sorry, we forgot to mention that. You may want or need to adjust the stars.
    Then all you have to do ist to put the `printImageRating()`on image.php or if you want album rating `printAlbumRating()`on album.php.
  • Hoooooooray, it works! Now i’m looking forward to i18n ;)

    Thanks!
Sign In or Register to comment.