Member
Member
risottto   2012-06-29, 05:42
#1

After some work and failed experiments I got my zenphoto gallery working with swipes on iOs devices (image mode only). Here's how it works:

First you need to load the jQuery mobile framework, I put it in a subfolder of my theme directory called scripts. I also only have it active if you are on an iOs device (some things get messed up on regular browsers if it's active on a computer).

Use the PHP code in the head:

`

Member
Member
risottto   2012-06-29, 06:58
#2

i forgot, don't forget to include the jQuery Mobile stylesheet as well:

http://jquerymobile.com/download/

direct links to your head are:
``

and

``

it sais you are supposed to use jQuery 1.6.4, even through the latest version included with zenphoto is 1.7, seems to work ok, a few things turned blue, but that can be fixed with some css fiddling.

Administrator
Administrator
acrylian   2012-06-29, 08:14
#3

FYI, Zenphoto 1.4.3 will include a new specific jQuery mobile theme which can be previewed in the beta naturally.

Member
Member
risottto   2012-06-29, 17:55
#4

Good news, I was waiting for the final release, only 2 days left!

Member
Member
darkufo   2013-02-03, 20:59
#5

Thank you for this, just implementing it now

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