ZenphotoCMS Forum
Is there a way to sort images in ablum by votes/rating? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Is there a way to sort images in ablum by votes/rating? (/thread-4563.html)



Is there a way to sort images in ablum by votes/rating? - Jay5oh - 2009-01-29

Is there a way to sort images in ablum by votes or rating? I would really like that..




Is there a way to sort images in ablum by votes/rating? - sbillard - 2009-01-29

The next release of zenphoto will provide a custom sort that lets you sort by any field in the database. (This is available for preview in the nightly builds.) There is not exactly a field for the rating but there is a total_value field. That might be close enough.




Is there a way to sort images in ablum by votes/rating? - Jay5oh - 2009-01-29

Excellent..can't wait!




Is there a way to sort images in ablum by votes/rating? - sbillard - 2009-01-30

Then download the nightly and you will have it now!




Is there a way to sort images in ablum by votes/rating? - Jay5oh - 2009-01-30

Well I'll give it a go tonight. Is there anything special I need to do with the nightly thing?

Thanks!




Is there a way to sort images in ablum by votes/rating? - Jay5oh - 2009-01-30

I do not see a total_value sort anywhere.

Also, where is the image.php file now?




Is there a way to sort images in ablum by votes/rating? - acrylian - 2009-01-30

You need to look at the backend options. There you can set that manually for any db field, total_value is a db field.

Sorry, what image.php file?




Is there a way to sort images in ablum by votes/rating? - Jay5oh - 2009-01-30

Ok, I'll look there for setting that field...thanks

Before I switched to the nightly build I had a image.php file. See this thread : http://www.zenphoto.org/support/topic.php?id=4812

I added a hit counter. Now with the nightly build I have no hit counter and no image.php file to edit.

I do like the statistics page and I suppose this would suffice..

My main concern right now is the sorting..




Is there a way to sort images in ablum by votes/rating? - sbillard - 2009-01-30

Every theme should have an image.php script. Something has gone wrong with your install somehow.




Is there a way to sort images in ablum by votes/rating? - Jay5oh - 2009-01-30

And it should be located:
/zenphoto/image.php correct?




Is there a way to sort images in ablum by votes/rating? - sbillard - 2009-01-31

No, it would be in the theme folder--say default/image.php It has never been placed in the root folder.

You can look at the zenphoto.packate file for a list of files.




Is there a way to sort images in ablum by votes/rating? - Jay5oh - 2009-01-31

Got it! thank you. Just need to center it and I'm golden...until I start messing with the DB for the sort option...