Member
Member
dacksal   2008-02-09, 07:34
#1
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
Administrator
Administrator
acrylian   2008-02-09, 11:18
#2
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.
Member
Member
dacksal   2008-02-09, 20:33
#3
Member
Member
dacksal   2008-02-09, 20:37
#4
but i dont see it in the demos, where does the code for it reside
Member
Member
DirkSohler   2008-02-09, 21:18
#5
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
Administrator
Administrator
acrylian   2008-02-10, 10:50
#6
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:
`<script type="text/javascript" src="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/plugins/rating/rating.js"></script>

<link rel="stylesheet" href="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/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.
Member
Member
DirkSohler   2008-02-10, 14:33
#7
Hoooooooray, it works! Now i’m looking forward to i18n Wink

Thanks!
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.