Lazyest Gallery slideshow

Slideshow on the sidebar of my site is my hack of Lazyest Gallery plugin for WordPress. When I moved to WordPress my old habits and preferences moved with me, I think. I liked ZoomGallery component for Joomla/Mambo and at some point I made module for showing random pictures from the Zoom gallery on a sidebar. Core of the module was JavaScript Slideshow module which I found on the net.

Lazyest Gallery for WordPress looks and feels much like the ZoomGallery for Joomla and I decided to repeat the same trick. Basically what I did in this case is just made a new function inside the lazyest-gallery.php core functions file. Again, core of this function is JavaScript slideshow engine.

Why not a plugin? Two reasons. First, I don’t know how to code plugins for wordpress. Second, wordpress philosophy of external features doesn’t go beyond plugin category (and I think it is reasonable in many aspects) and I don’t think it is a good idea to make plugin for plugin.

UPDATE: Now Lazyest Slideshow function transformed into PlugIn – Lazyest Gallery Thumbs Slideshow

How it works? Simple. Function code goes through all corresponding thumbs folders in root of the gallery and takes 2 random pictures from each thumb folder and forms array of thumb images and corresponding links to real images.

Array is preloaded when visitor opens website. Thus, the more folders the bigger array and loading time, but, you can change the number of pictures for each folder as well as the number of folders to use. For example, five folders give 10pics, each 3-4kb – not much to feel uncomfortable. And, finally, all these thumbs are dynamically rotated in a slideshow with nice fading effect!

All images are linked and clicking on it opens Lazyest Gallery slideshow main window with that particular image.

3 thoughts on “Lazyest Gallery slideshow”

  1. I couldn’t find a file with the javascript in it, so I viewed the page source and copied out the javascript code. If I wanted to put this javascript into its own file and then include the javascript in the lazyest-gallery.php file, how would I do that? You can say “include_once() or require()” for php code, but can you do that with javascript?
    Thanks, jim

  2. Sorry for not responding for some time. Happy New Year to all !
    My function now available for download. Feel free to ask. I’m not PHP/Wordpress guru
    so excuses in advance for not answering all questions


Leave a Reply

Your email address will not be published. Required fields are marked *