ZenphotoCMS Forum
"Recent comments" and "Top rated photos" - 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: "Recent comments" and "Top rated photos" (/thread-4674.html)



"Recent comments" and "Top rated photos" - nik - 2009-02-11

Hey, guys! I wonder, how is it possible to make "Recent comments" and "Top rated photos" on the main page of ZenPhoto...for example, smthn like here http://yabasta.cz/zenphoto/

Thnx.




"Recent comments" and "Top rated photos" - acrylian - 2009-02-11

http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintLatestComments
http://www.zenphoto.org/documentation/plugins/_plugins---image_album_statistics.php.html#functionprintTopRatedImages




"Recent comments" and "Top rated photos" - klimas - 2009-02-22

Hi, function doesn´t work when I log-out in the nightly build 1.2.3 [3509]

It brings

Notice: Undefined variable: passwordcheck1 in /3w/mysteria.cz/h/hospody5/zenphoto/zp-core/template-functions.php on line 3059

Notice: Undefined variable: passwordcheck2 in /3w/mysteria.cz/h/hospody5/zenphoto/zp-core/template-functions.php on line 3060

error to me.
Klimas




"Recent comments" and "Top rated photos" - sbillard - 2009-02-22

Thanks. Will get a fix in soon.




"Recent comments" and "Top rated photos" - klimas - 2009-02-22

Thanks. Is it possible to sort same rated TopRatedImages according to the hitcounter? (If I have for example one picture rated 5 stars by 2 viewers and another rated 5 stars by 3 viewers, the zenphoto would show first picture rated more times)




"Recent comments" and "Top rated photos" - sbillard - 2009-02-22

You could change the plugin circa line 342 to use:
case "toprated": $sortorder = "(images.total_value/images.total_votes) DESC, images.total_votes"; break;