ZenphotoCMS Forum
how to select last images from album DB - 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: how to select last images from album DB (/thread-3757.html)



how to select last images from album DB - absolutex - 2008-09-13

DB

i have

zp_albums ID parent folder
1 NULL furniture
4 1 furniture/chair
3 NULL wood-sculpture

zp_images ID albumid filename title
1 4 1.jpg sometitle
3 3 2-1.jpg sometitle

in my file




how to select last images from album DB - code - 2008-09-13

http://www.zenphoto.org/support/topic.php?id=2020#post-11844
I hope this is what your looking for...




how to select last images from album DB - absolutex - 2008-09-13

Thanks but I want to random image external site




how to select last images from album DB - krainbolt - 2008-09-13

absolutex - You can use backtick ( ` ) characters to display code in this forum.




how to select last images from album DB - code - 2008-09-13

You want to what? You can if you use zenphoto as a plugin...
http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin




how to select last images from album DB - absolutex - 2008-09-13

when i used Random Image for external site plugin i got

Fatal error: Call to a member function getAlbumName() on a non-object in C:\AppServ\www\wood\products\zp-core\template-functions.php on line 3042

in file

@readfile('http://127.0.0.1:81/wood/products/zp-core/random.php?num=1&height=50&width=50&class=one-image&album=wood-sculpture');

".$data["folder"]." is alway show funiture

what is wrong in my code ? pls..