![]() |
|
Problem using Zenphoto as a plugin - 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: Problem using Zenphoto as a plugin (/thread-7440.html) |
Problem using Zenphoto as a plugin - sceilig - 2010-08-07 I am using Zenphoto as a plugin by including the template-functions.php file. I can return random images from an album but I find that some images will be returned twice. I would prefer unique images being returned and only landscape ones. I figure I could run a query directly on the database and then use the Image class to create the image object but it gives me a Fatal Error saying "lass 'Image' not found". Should I be using a different approach? Here is my code: Problem using Zenphoto as a plugin - acrylian - 2010-08-07 You should use the |