Member
Member
Inovati   2009-08-15, 00:30
#1

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!

Member
Member
sbillard   2009-08-15, 02:08
#2

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.)

Member
Member
Inovati   2009-08-19, 19:54
#3

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:
"server/zenphoto/zp-core/admin-upload.php?album=ABC%2fXYZ"
where then the folders for ABC and XYZ are created and I am brought to the upload screen to fill that album with photos and metadata.

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!

Member
Member
Inovati   2009-08-19, 23:55
#4

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...

`

Member
Member
Inovati   2009-08-20, 00:04
#5

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...

`

Member
Member
sbillard   2009-08-20, 02:33
#6

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.

Member
Member
Inovati   2009-08-20, 16:21
#7

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:
-> .../zenphoto/albums/$folder/$powder/$substrate/photos.

Where should I be looking at these files to put something in? and where are the function comments located?

Member
Member
sbillard   2009-08-20, 21:33
#8

So then the server path would be getAlbumFolder().internalToFilesystem($folder.'/'.$powder.'/'.$substrate.'/photos');

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.