![]() |
|
getMostRecentPhotoURL - 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: getMostRecentPhotoURL (/thread-1490.html) |
getMostRecentPhotoURL - teriiehina - 2007-06-18 Hi everybody. first, a big thank to the developers of ZenPhoto, it's exactly what I was looking for second, it's exactly what I was looking for but it lacks a function for displaying the latest image uploaded (for a photoblog-like functionning). that is because is wanted to display the most recent photo but also the galleries index. by the way, i'm french so it's normal if my english sounds weird so here the little code i had to templates_functions.php, line 92: ` function getMostRecentPhotoURL() {
} ` it's not perfect but it works and i hope a zenphoto guru will replace the ugly parts (mysql connexion) with the nice zenphoto adequate functions in my template, i use: ` [img][/img] ` i hope that will be useful to someone as zenphoto is useful to me. thx again guys getMostRecentPhotoURL - teriiehina - 2007-06-18 hey, me again. i had 15 minutes so i search in the .php files on zenphoto and i found the corresponding functions. here's a cleaner version: ` function getMostRecentPhotoURL() {
} ` do you see more improvement? perhaps about the mysql_result() calls? getMostRecentPhotoURL - thinkdreams - 2007-06-18 You might want to try: http://www.zenphoto.org/trac/wiki/ZenphotoHacks#LatestImagesCustomFunction It seems to work very well. |