![]() |
|
Album Password - But Random image should show - 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: Album Password - But Random image should show (/thread-11221.html) |
Album Password - But Random image should show - chrisonline - 2013-07-29 I have passwords on every subalbum. I think this is because all subalbums are password protected. Album Password - But Random image should show - sbillard - 2013-07-29 You will have to create your own version of the random image function. The standard one will not show password protected items. Album Password - But Random image should show - chrisonline - 2013-07-29 Thanks, can you please write down in which file this function is? Album Password - But Random image should show - sbillard - 2013-07-29 I do not understand. I believe I said you would have to create such a function. If you are asking that one of us write it for you, please visit the paid support link on our WEB pages. Album Password - But Random image should show - acrylian - 2013-07-30 If you asked where the function there is a documentation and all functions are named "speaking": Album Password - But Random image should show - chrisonline - 2013-07-30 Thanks for the info, but I don't wanted that you code it for me. I've found it now in class_album.php, function getAlbumThumbImage and changed it. My next problem is the "latest images". But as of now I didn't find the right php/class file to remove the password check. Where is the "latest images" function located? Album Password - But Random image should show - acrylian - 2013-07-30 latest images is part of the image_album_statistics plugin. In any case you need to create your own custom functions either via custom plugins or your themes functions.php. Otherwise you will have to re-apply your changes with any Zenphoto update. Album Password - But Random image should show - Papyrus - 2013-07-30 As just a side note (in case anyone references this thread), the StopDesign theme uses it's own function in the index.php so that the random images / recent images works even without image_album_statistics plugin turned on. It's not advised, but if you are writing your own function anyway you could either use image_album_statistics as a base to go by the plugin architecture or just use the StopDesign function for the base of your new function and modify it as a "quick and dirty" fix. Album Password - But Random image should show - chrisonline - 2013-07-30 Thanks for the information. Album Password - But Random image should show - acrylian - 2013-07-30 image_album_statistics has indeed a random option. But all official themes that use random images don't use it but the randomimages functions linked above. Album Password - But Random image should show - Papyrus - 2013-07-30 Thanks for the clarification, Acrylian. Much appreciated! |