![]() |
|
Getting the total number of images in whole gallery - 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: Getting the total number of images in whole gallery (/thread-5873.html) |
Getting the total number of images in whole gallery - kagutsuchi - 2009-09-19 So I seem to be having a problem getting a number of all the images in the entire gallery. First I tried using getTotalImagesIn($_zp_gallery) and it gave the error:
Then I tried to use getNumImages($_zp_gallery) and it gives this error:
Am I doing something wrong and is there any easier way to do this? Thanks, EDIT: Never mind, I used the getNumImages() from the Gallery class and that worked perfectly! Getting the total number of images in whole gallery - lestat832 - 2010-06-24 Hi, I am also seeing this error message when I updated versions. Could you please elaborate on how you resolved the issue with getNumImages()? Thanks, Getting the total number of images in whole gallery - acrylian - 2010-06-24 Use the gallery object Getting the total number of images in whole gallery - lestat832 - 2010-06-26 Hi, Sorry but I'm a real noob. I checked out the tutorial at http://www.zenphoto.org/2010/02/zenphotos-object-model-framework/. However, I'm not sure what I need to do. Do I need to go to the theme file editor and update the code? If so, which code am I replacing and if so, what code am I replacing it with. Are there any step-by-step instructions? Thanks! Getting the total number of images in whole gallery - acrylian - 2010-06-26 I can't answer this, you have to edit there where your error occurs. Where that is I can't answer because you provide no info about anyhting. Probably you are using an outdated third party theme. Getting the total number of images in whole gallery - kagutsuchi - 2010-06-26 Btw, I did use what acrylian posted above. Getting the total number of images in whole gallery - lestat832 - 2010-06-28 Ok...you can see the error message here: The error says: In addition, if I go to the Themes tab, I see: I'm assuming I have to change one of the files in the Theme File Editor...I just have problems trying to pinpoint the actual line where the problem occurs. I hope this helps in providing more info about the problem. album.php Getting the total number of images in whole gallery - lestat832 - 2010-06-28 Oh...one thing I did want to add is I saw these error messages AFTER updating to the most recent version of Zenphoto. Getting the total number of images in whole gallery - acrylian - 2010-06-28 The |