ZenphotoCMS Forum
How to show random picture? - 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 show random picture? (/thread-6.html)

Pages: 1 2 3 4


How to show random picture? - sairuh - 10-11-2007

I updated the plugin to use Thinkdreams' modified version from yesterday, and lo! the thumbnail now appears. Still getting the odd size mentioned in this thread, and the other plugin admin UI weirdness, though.

Nevertheless, thanks for maintaining this plugin, Thinkdreams!




How to show random picture? - aitf311 - 10-11-2007

This is now part of the core code in zp 1.1




How to show random picture? - Daxeno - 12-11-2007

Can someone fix the random images for the recent version, it says

Fatal error: Cannot redeclare getrandomimages() (previously declared in /home/daxenoc/public_html/zp-core/template-functions.php:1320) in /home/daxenoc/public_html/themes/stopdesign/customfunctions.php on line 9




How to show random picture? - acrylian - 12-11-2007

You should try using the stopdesign theme which is included in zenphoto. I am sure your version is older. The old theme version had the function in its custom functions file, which is not necessary anymore because the getRandomImages function is in the core now. The theme tries to call the already declared function a second time, that's why you get the error.




How to show random picture? - Daxeno - 12-11-2007

Thanks Acrylian.

I just deleted the customfunction file and it works. anyways, thanks a lot.