![]() |
|
access to object methods to obtain images in an album - 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: access to object methods to obtain images in an album (/thread-13089.html) |
access to object methods to obtain images in an album - DBR - 2018-06-22 I'm programming my own php page, and I want to get the images in a specific album. Documentation says to use the object model, rather than direct mysql queries. access to object methods to obtain images in an album - acrylian - 2018-06-22 The doc refers naturally to usages within Zenphoto context of themes and plugins. If you are referring to external usage take a look here: https://www.zenphoto.org/news/integration-with-existing-sites-and-other-cms/ Maybe investigate if creating a theme isn't the easier way. Zenphoto theming is quite flexible. There is also a third party REST API plugin - well in fact I am a bit involved in it, too – that allowe extern fetching: You cannout MySQL queries because of inheritance of albums regarding visibility and protection. A subalbum may be published but it is not if the parent album is not but the db entry itself does not have info about that. access to object methods to obtain images in an album - DBR - 2018-06-23 Thanks for this info, I'll look into it. access to object methods to obtain images in an album - fretzl - 2018-06-23
access to object methods to obtain images in an album - DBR - 2018-06-23 Thank you so much, this should be perfect and I like using their slide show. But I'm using this from a non-zenphoto page (just my own index.php), so I need to include the zen library. I tried the code on
access to object methods to obtain images in an album - fretzl - 2018-06-23 You are using
instead of
? access to object methods to obtain images in an album - DBR - 2018-06-23 Formatting changed it here - yes, I'm using with underscores. And, verified that it is correct, printing out SERVERPATH. access to object methods to obtain images in an album - acrylian - 2018-06-23 Also the double backward slash? Since that is also different in your example (may also be the formatting). Something must be not correct if the file is really in that place. access to object methods to obtain images in an album - DBR - 2018-06-23 Yes, the double slash is correct too (formatting issue here). The file is definitely found properly, and the resulting 500 error comes up, with no error message in the log. I verified that if I change "template-functions" to a wrong name I get a file-not-found error in the log. access to object methods to obtain images in an album - acrylian - 2018-06-24 Technically it should include the classes - not sure about plugins - but I have to admit we don't really use or test this usage way regulary. It is a kind of workaround. access to object methods to obtain images in an album - DBR - 2018-06-25 Just to close the loop here... I got everything to work. Turns out that I had two functions with names that conflicted with the zenphoto functions: db_error and db_close. Once I renamed my routines things fell into place. Thanks so much for your help. access to object methods to obtain images in an album - acrylian - 2018-06-25 Great. Thanks for the follow up and confirmation that this way of usage indeed still works. |