Announcement

#1 2016-06-15 08:07:54

sttjones
Member
Vancouver, WA
2016-06-15
1

URL Link address for thumbnail

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

 

#2 2016-06-15 15:29:42

flop25
Piwigo Team
2006-07-06
6918

Re: URL Link address for thumbnail

Hello
take a look at the Piwigo API also called Web Services (ws)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2016-06-15 23:43:56

Steve Jones
Guest

Re: URL Link address for thumbnail

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

 

#4 2016-06-16 00:16:40

flop25
Piwigo Team
2006-07-06
6918

Re: URL Link address for thumbnail

thank you for coming again sharing your solution
have a good day


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact