![]() |
|
Creating albums... - 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: Creating albums... (/thread-5676.html) |
Creating albums... - Inovati - 2009-08-15 So it may be a bit of a tricky question but I think it can be done if I get started in the right direction. I have a filemaker pro database that has fields for specific information about an item, but doesn't allow images. I have created a button that I can open up a new browser with zenphoto. My question now is can I use information from the database to pass to the URL to automatically pass me to a page with a preformed album (from the database information ie. create an album named XYZ because in FMP I inserted XYZ). Is what I am thinking of possible? Even a direction/file to wander around in relating to this would help. Thanks! Creating albums... - sbillard - 2009-08-15 If you mean to link to the zenphoto image page, yes, you can. Assuming you are using mod_rewrite, the link is zenphoto//. (Assumes you installed in the folder zenphoto.) Creating albums... - Inovati - 2009-08-19 I have done this, and it kind of works. When I type in that address it gives me an index page (i.e. Index of / and file list) of what is in that directory instead of sending me to my album page. And I believe I was a bit unclear in my original post. The database sends the URL, but if the album is not already created, zenphoto does nothing. Typically there will not be an album already created for the images being uploaded. I was hoping that I could just pass to zenphoto: My issue is that I need to sometimes build sub-albums where higher albums/folder structure is not already present. Is this something that is possible by just passing a URL? Thanks again! Creating albums... - Inovati - 2009-08-19 Hello, I have found a way to make the folders that I need for uploading, now I am just trying to figure out how to implement this into zenphoto... ` Creating albums... - Inovati - 2009-08-20 Hello, I have found a way to make the folders that I need for uploading, now I am just trying to figure out how to implement this into zenphoto... ` Creating albums... - sbillard - 2009-08-20 The folder needs to be created within the Zenphoto albums folder. The root of that is got by the function getAlbumFolder(). Please see the function comments for details. I'm unclear as to the structure of the $_GET['album']) parameter. Normally in Zenphoto this would be the naked "album" name so the path would be getAlbumFolder()._Get['album']); Of course, you will need to use make sure the character set is correct--we use the functions InternalToFilesystem() and FilesystemToInternal() to make this happen. Creating albums... - Inovati - 2009-08-20 Sorry I'm very new to php. The filemaker server passes our zenphoto URL with album information already in it. There are fields for our $powder and $substrate variables which filemaker throws together into a url. The url is something like http://server/zenphoto/zp-core/admin-upload.php?album=$folder%2f$powder%2f$substrate and the GET just pulls the information so it knows what folder to go in: Where should I be looking at these files to put something in? and where are the function comments located? Creating albums... - sbillard - 2009-08-20 So then the server path would be |