Greetings,
Thanks in advance for your help. I have a gallery and I want to associate the location in Google Maps with the album thumbnail (small images). I would like to use a thumbnail URL for an album to show in the location pop-up in Google Maps. I would like a url like: www.eyehike.com/pgallery/_data/i/galler … 827-th.jpg where 4827 is the photo ID. All I can find for a thumbnail is something like: https://www.eyehike.com/pgallery/_data/ … aay-th.jpg
Am I even on the right track in building a mysql table with the album thumbnails hard-coded or should I be writing some sort of request in javascript to get the album thumbnails when Google maps loads?
Piwigo version: 2.7.4
PHP version: 4.6.0
MySQL version: Unknown
Piwigo URL: http://www.eyehike.com/pgallery/
Best Regards,
Steve Jones
Offline
Hello
take a look at the Piwigo API also called Web Services (ws)
Offline
Thanks for your quick response. I looked at the web API and saw how the Categories had some data I could use for linking. I also ran across the plugin RV Maps & Earth which does some of what I want to do.
Thanks to your help I used sql to link data from the _categories table with the _images table and then to my lat/long coordinates from my old Google Maps. I also finally found how to link to the thumbnails.
I'm using the format of: http://www.eyehike.com/pgallery/i.php?/ … aac-th.jpg
where the last part is from the File field in _images with -th inserted just before the file type extension for a thumbnail.
Hope this might help others who want to build the thumbnail URL for the album highlight photo.
Please consider my question closed and thanks for showing me about web API: http://piwigo.org/doc/doku.php?id=dev:webapi:start
thank you for coming again sharing your solution
have a good day
Offline