Swiping

Hello -
I think I'm down to my last getting started question: what about swiping? Internet traffic is moving quickly away from computers and onto iPhones, Androids, and tablets. I've found several posts here about swiping, but none of them seem to have information that is complete, or up to date.

Is there a theme or plugin in the works that will allow for the typical swipe behavior? That is to say that you click on an image in an album, and from then on, you just drag your finger across the image, and the next image quickly appears, without any parts of the webpage. Just the next image?

The Bootstrap theme seems to try to swipe, but the image disappears, and the image.php page reloads in its entirety, and you have to scroll down to see the photo each time. I activated the swipe_gestures v1.0 plugin, but don't see how that works. Even the mobile theme doesn't swipe.

There is a post on how to enable swiping from a year ago, but not sure if it is still valid:

http://www.zenphoto.org/support/topic.php?id=11296

Is swiping possible with zenPhoto, or at least planned for the near future?

Thanks for any info you have about this.

Comments

  • acrylian Administrator, Developer
    swipe_gestures reloads the whole page as if you would click on a next/prev button. But the plugin is theme independent as long as the theme follows the standard way of theming. That might not be the way with third party themes like boostrap if that does something different.

    I don't have any mobile device myself but last time it did work, even using the mouse itself to swipe. The swipe should trigger on the whole page itself actually. If you think it does not work please open a ticket. But please try first with one of the official themes.

    To reaload only the image itself would require a very special theme based entirely on JS/ajax. I personally don't like themes heavily powered by js. A pain to maintain and also problematic since you should havea non js fall back (Yes, I know all have it enabled but it might not work somewhere for whatever reason).

    It should be possible to use the jquery mobile theme and enabled swiping. I think it has a function built in that is not used (and was not requested by anyone at all),
  • Hello -

    Thanks again for your quick reply. I did try it with several of the supported themes and it didn't work. Neither did the mobile version.

    About your concern about themes heavily powered by js: I'm just talking about the images displayed from image.php Just one page, and just when the mobile view is triggered. I'm not a programmer, but that doesn't seem make a theme or plugin heavily js powered, given the one-use, one-file usage. Maybe just wrapping the image with the necessary code to fire off the swipe function when viewed in by a phone?

    Thanks again for your answers.
  • acrylian Administrator, Developer
    Hm, I just recently used the same script for another site, without Zenphoto though. It did work fine.

    Since you are new, are you sure you installed and set the options correclty? Try here:
    http://zenphoto.maltem.de/jpg/Cosmos11.jpg.html
    It does work with the mouse. Not on the image itself though but on the whole content.

    My concern was just that you need to disable standard html behaviour to get what you wish. It is not per se heavily js powered. Since you are not a programmer as you say, please believe it is not that easy as you may think. The whole theme needs to be build differently as you have to disable the actual single image page. You also need extra action to keep the single images bookmarkable.
  • Hello acrylian -

    Your example works the same way as I was experiencing. I didn't realize that what was happening. The page disappears for awhile, then returns with a new photo, so it seems we're talking about the same thing.

    Do you think the best approach would be to make a plug to have just the images swipe in the albums, or to modify the mobile theme?

    Is this something that your paid support would be willing to look at?
  • acrylian Administrator, Developer
    As said the plugin is meant to work directly with any other theme. A theme would have to be modified in any case to add the function to use from the plugin.
    There are several things to think about.

    As noted the paid support is not a service by the Zenphoto team direclty but us as individuals. Generally we look after what is paid :-). You should mail then directly.
Sign In or Register to comment.