![]() |
|
Setting fixed album thumbnail GLOBALLY - 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: Setting fixed album thumbnail GLOBALLY (/thread-4337.html) |
Setting fixed album thumbnail GLOBALLY - ikaruga - 2008-12-29 As much as I love the random thumbnails, this feature seems to be bring my slow webserver to its knees. Is there a way to set a fixed thumbnail from each folder GLOBALLY? I know you can do this for each folder, but as I have +7000 photos with +100 folders, doing this for each folder would suck.... Setting fixed album thumbnail GLOBALLY - sbillard - 2008-12-29 You can run a query to set the EDIT: or you can install tonight's nightly build. I have created a new utility that will do just what you want. Setting fixed album thumbnail GLOBALLY - ikaruga - 2008-12-30 Great thanks for the options. For option #1, what file should I edit? (Sorry I'm completely new to zenphoto.) For option #2, I think I'll wait until I familiarize myself with zenphoto a little more before upgrading. In any case, it seems that the only overhead with random thumbnails is -- generating the thumbnail, right? Choosing a random (pre-generated) thumbnail is negligible in terms of CPU usage, right? If so, then I should be OK once all images are pre-cached. Setting fixed album thumbnail GLOBALLY - sbillard - 2008-12-30 Choosing a random thumbnail will have negligable performance difference from choosing the most recent one. Of course assigning a thumbnail will be the most efficient. There is no file you can update for option one. You would do this from your MySQL management interface. Setting fixed album thumbnail GLOBALLY - ptitmain - 2012-01-22 Maybe it could help: for selecting the albums that have special configuration for the "thumb" parameter, just do: ` select albums.thumb,title,id from albums where thumb is not NULL; ` To restore the default behavior of the "thumb" column of an album, you should set it to NULL, like this for album 586: ` update albums set thumb=NULL where id=586; ` |