Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Patrick_D1985
Experienced
Topic Author
Posts: 149
Joined: 19 Jul 2008, 06:26

Mobile version - download an image

02 Aug 2012, 16:13

Hi all :)

Been a while and just got to testing 2.8.1 (yeah I know 2.8.2) just arrived but for the time being I have one issue.
Is there anyway to offer visitors a download on the mobile version?

Have been trying to hack slash my way into it but ... well was wondering if there is an easy way.

Thanks in advance for your replies :)
PFSquad : Party Freakz Online
Owner / Webmaster / Administrator / Head of Photography
Website : http://pfsquad.nu
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Mobile version - download an image

03 Aug 2012, 02:03

Patrick_D1985 wrote:Been a while and just got to testing 2.8.1 (yeah I know 2.8.2) just arrived but for the time being I have one issue.
Is there anyway to offer visitors a download on the mobile version?
In the Photoswipe interface, with all the javascripts going on, it gets complicated. The easy solution, is to change the "Images" for folder view mode, which would allow download by simply tapping the images.
Image
https://www.photo.gallery/documentation/mobile-guide/
(*See Folder View Mode)
 
User avatar
Patrick_D1985
Experienced
Topic Author
Posts: 149
Joined: 19 Jul 2008, 06:26

Re: Mobile version - download an image

03 Aug 2012, 11:25

Karl thanks for the feedback!
But as my galleries contain sometimes hundreds of pics that was sadly not a good option for me

I was able to create a nice way to do so with some hack and slashing ... and searching.
Now after spending some hours finding the correct places it is done :)

At first I tried working with the touch event but it was not that reliable (sometimes you needed to double tap, triple tap or single tap to get the actual image)
As it was to unreliable ... well I started looking in a different direction.

In short im abusing the say hi example which you can find in the Photoview examples with a change of:
Code
alert('hi!');
becomes:
Code
var currentImage = instance.getCurrentImage();
window.open(currentImage.metaData.relatedUrl);
Offcourse I needed to make that relatedUrl variable available for the images so I had to edit /iv-includes/templates/mobile/index.html.phtml

Result being:
http://pfsquad.nu/Pictures/?mobile=1#/2 ... +BROADWAY/
(offcourse looks better on mobile devices (iPad/iPhone have been tested)

What did I do:
- Add the slideshow option back (we love that kind of feature)
- As we dont use captions I have disabled the caption toolbar
- Added a line to show the current folder you are in with mention of the photoid
- Added a link (which also works on mobile devices) which you can click to open a new tab with the actual image so you can save it or link to it.

Took me some time to get it working but a nice custom addition :)

If someone could give me feedback on other mobile devices it would be great :D
PFSquad : Party Freakz Online
Owner / Webmaster / Administrator / Head of Photography
Website : http://pfsquad.nu
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Mobile version - download an image

04 Aug 2012, 03:37

Yup. Seems to work. We will take a closer look ...