ZenphotoCMS Forum
- Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: (/thread-12865.html)



- Guest - 20-06-2026

Hello,

Is it possible to navigate from image to image by using left/right arrow keys? About the same way as in Facebook. I currently have a fresh install with the default plugins only. Hopefully this is possible to achieve without any extra plugins. Couldn't get it to work i Fx 3.0 at least.




- acrylian - 05-08-2008

None of the themes is set up (to my knowledge) for keyboard usage. Of course that is possible, this could be done without plugins, but you would need to change the html/css of the theme you wish to use. There are basically two solutions:

  1. HTML: Using access keys within : http://en.wikipedia.org/wiki/Access_keys
  2. Javescript: Using eventhandlers (onKeydown etc): http://www.w3schools.com/jsref/jsref_events.asp



- krainbolt - 06-08-2008

Take a look at the Cimi theme for one way to implement this.




- saraconstanca - 24-05-2011

Here is a possible solution created by my dear friend Jorge Matias who is helping me with webdesign development:

Insert this code snippet in the file: "zenphoto/themes/default/image.php" just before the tag "",

  • ------8

                                     break;
                     }
             }
  • ------>8------

Jorge




- acrylian - 24-05-2011

It is probably much easier to do this using jQuery. If you can live with pressing an two keys you even could do this with CSS alone.




- Laurent - 24-05-2011

Or use this plugin http://www.zenphoto.org/news/keyboard-plugin




- acrylian - 24-05-2011

Right, always good to look what is already there...;-)




- saraconstanca - 24-05-2011

This is cool Laurent, it seems to be pretty much the same thing Jorge Matias did but thanks any way.

I did search for it here Acrylian, but all I found was this thread. I'm probably just a newbie...




- acrylian - 24-05-2011

My comment was actually because I did forget that plugin as well as I did not look, too.