Wordpress -

Lazyest SlideShow Function is now available as a WordPress PlugIn. Presenting this function as a plugin has many advantages. The most obvious one is that more people may use it - no need for copy/paste and no accidental mess up with Lazyest Gallery core file. And it is easier to maintain the code, as well.

Lazyest Thumbs SLideshow plugin rotates random image thumbs from Lazyest Gallery with fading effect. Driven by JavaScript engine. Fully customizable through admin panel: number of random images, ability to choose Portrait, Landscape or both image types to show, loops to run, fading delay, CSS styles and other settings are specified through admin page.

If you are interested in Widgetizing LazyestThumbsSlideshow plugin then read my article Reviewing Long Awaited WordPress Feature: Widgets.

Release Information:

  • Release Version 2.1
  • Package Updated: July 24,2006
  • Compatibility: Lazyest Gallery 0.8.2 - 0.9.5

Features:

  • v2.1 Added ‘Number of folders’ parameter. Now you can effectively reduce pics array in case you have many folders.
  • v2.0 Now supports LG cropping feature.
  • v1.9 Code rewrited. Now JavaScript engine is in separate file
  • Supports restricted folders access LG feature (recent 0.9.4 update)
  • v1.8 Added option to choose Landscape or Portrait images for slideshow or fetch both types.
  • Takes specified (set through admin page) number of random images from each folder. If set to 2, than having 3 folders will result in 2*3=6 thumbs array
  • Width and Height are taken from LG settings for thumbnails (added in v1.7)
  • Images are linked. Clicking on image opens LG with this image enlarged.
  • Pause on MouseOver effect. You can turn this on/off through admin page
  • Slideshow Padding and Border Styling through admin page (added in v1.7)
  • Slideshow can stop after specified number of loops - set through admin page. Defaults to Non-Stop (0)

Features of LG which are not supported by this plugin:

- LightBox. Cause: JavaScript conflicting between LightBox and this Slideshow

Installation:

  1. Download: Lazyest Thumbs SlideShow Plugin
  2. Make sure your LazyestGallery PlugIn is activated and you have Images in your gallery!!!
  3. Copy lazyest-thumbs-slideshow folder (with all its content) into /wp-content/plugins directory
  4. Activate PlugIn
  5. Place function call in your sidebar like this:
    <?php if(function_exists('LazyestThumbsSlideshow'))
    {LazyestThumbsSlideshow();}; ?>
    
  6. Go admin page (under “Plugins” menu) and tune parameters there
  7. You can widgetize plugin by using code provided with Readme.txt file

Important: Before downloading check if current version is compatible with the version of Lazyest Gallery installed on your site!

Download note: Plugin changes are reflected by: Release Version which reflects new features additions and Package Update date which reflects last changes in code related to compatibility, bugfixes and other changes in code.


Update: August,06 2006. Unfortunately, LG home page is down these days. So i decided to provide people with temporary Lazyest Gallery 0.9.5 download from my site

Questions, bugs, feedback etc.. through comments to this post.

60 Responses to “Lazyest Gallery Thumbs SlideShow PlugIn”

  1. Art  

    Your rotator shows one image and then the next image doesn’t show. Instead, it shows the name of the image but with a red X.

    Any ideas?

  2. 1 Tash  

    I see the error. I will fix this and post update. Though, not sure how fast.

  3. 2 Tash  

    Fixed. Download fresh zip. Let me know if still have problem.

  4. 3 Roge  

    Ok I am picky!
    For an ultra newbee like me, in the next version, that would be nice to have in option, to be able to pick up on the fly the border, the padding. In other words to set up the final output of the thumbnail anyway you want it without having to play with css.

    Thanks for your plugin! It works fine with widget by the way!

  5. 4 Tash  

    Glad to hear that you are happy with plugin. I’ll see what can be done with CSS styling from admin side. Meanwhile just add class .photo a img {….} to themes style.

  6. 5 Omitshu  

    This plugin is awesome ^^, nice fast and sleaké, I only have one tiny request ^^; is it possible to select the random thumbnails dependant on size, you’ll agree with me that if landscape and potrait photos look funny whilst they are fading. I’m trying to hack that in ^^;

  7. 6 Omitshu  

    and sorry to double post, but I think I’ve found a bug ^^; or at least something not nice. As the slideshow is finding url’s to put in, it also takes into account directories which have a captions.xml, but don’t actually have any pictures, so you end up with empty slots for parts of the slideshow, the only way I got round it was to surround the

    echo “fadeimages[$m]…etc” (around line 209)

    with

    if (substr($thumbUrl, -1, 1) != “/”) {
    echo “fadeimages[$m]…”
    $m=$m+1;
    }

    If you can think of a more tidy way please do ^_^, again great plugin!!

  8. 7 Tash  

    omitshu: size dependant display is interesting feature. I will think.

    also, thanks for noticing bug. Your solution works. Though there is another one. Logically it is better to change all IF code starting with

    if (count($imgfiles) <= 1) {……….} else {…..}

    to:

    if (count($imgfiles) != 0) {
    if (count($imgfiles) == 1) {…..} else {……}

    }

    UPDATE: package updated : bug fixed, requested feature added.

  9. 8 ReDirEct__  

    Hi… i’ve installed your plugin but don’t work… i have 1 test folder for my LG installation but when i put the code into my side bar, only appear a white sqare with nothing in it… you can see it here :
    http://redirect1.altervista.org
    I placed the code at the end of sidebar contents

  10. 9 Tash  

    ??? I visited your site and the slideshow was working. Do not see your problems

  11. 10 Omitshu  

    yay ^_^, thank you for adding the feature!!
    I’ve upgraded and will let you know if I find anything else ^_~. Again awesome plugin!

  12. 11 joe  

    I must be doing something wrong–the gallery shows up at http://www.mountebank.org/blog/photo-gallery , but no slideshow (or any images at all!) in the sidebar at http://www.mountebank.org/blog

    (I’m using the widgetized version).

  13. 12 Tash  

    Did you check one of the boxes: Portrait or Landscape images to show in admin? if you leave both of them unchecked then no images will be shown.

    if this is not the case then check LG version compatibility. Also, if you downloaded latest package then be aware that it supports protected folders feature of LG 0.9.4 and doesnt fetch images from folder if user level is lower than folder’s

    Update: I see that plugin function did not load. Try to place a call directly , without widget, or double check that you widgetized it correctly.

  14. 13 Tash  

    I will dig from my side and as soon as find something I will post. I like this plugin too, though LG is changing so fast that i thought at one moment that i will drop maintaining it.

    UPDATE: Joe, I updated package. Now all java script code is inside one routine and nothing goes to header section. there wasn’t real need in this, in fact. we do make from time to time things which i would call as a “monkey business”.. forgetting golden rule - if something works - don’t touch it.

    just download package again and let me know results. if nothing again, then its something to do with your installation or theme.

  15. 14 joe  

    Well, I guess it’s something to do with my installation or theme, Tash. Thanks again for trying–the new package doesn’t work either.

    I switched to the Flickr badge, but I appreciate your efforts!

    Cheers!

  16. 15 el tiki  

    such a cool plugin! thanks!
    see it in action here:
    http://www.magnolia.ch/dirkbonsma/
    and here:
    http://www.magnolia.ch/SilkeThoss

  17. 16 Daniele  

    I tried it on k2 theme, but don’t work…. only she the image file name and nothing else… with kubrick work very well…

  18. 17 Tash  

    Daniele: Never tried it with K2 theme. K2 is full of javaScript snippets and there may be some kind of a conflict. I will look more close at this issue

    UPDATE: Checked it with latest K2 theme - it works. Do not see any problems. Make sure you placed LazyestThumbsSlideshow function call in your K2 sidebar!

  19. 18 Daniele  

    Yes.. sorry… the theme is 3k2 and not k2… it’s a 3 column version of k2 theme, based on an old release of it…
    http://aydin.net/blog/2006/03/23/three-column-k2-theme-for-wordpress-3k2/
    this is the url… LGTSS don’t work with it :(

  20. 19 Tash  

    Daniele: Checked with 3column K2. Works on my WP installation on localhost. Maybe some settings in K2 configuration options are causing this issue. Also, did you put function call in sidebar for 3K2 theme?

    UPDATE: Played with 3K2 settings - still works.

    UPDATE2: If you are using cropped images as thumbnails for your gallery then try using “cropped” images option in LGTS which is implemented in recent LGTS release v2.0, thus the thumbs will be taken from thumbs cache folder and not created “on the fly”. If this option is not enabled then thumbs are created “on the fly” by lazyest-img.php functions. Though I think that if Slideshow works with default Kubrick theme , then there should be an issue with your k2 theme.

  21. 20 Annie  

    Hi Tash!

    I have a fix to offer, and a question!

    First, I’m *loving* the plugin, which I’m using with the sidebar widget and it’s just *wonderful*! Thank you!

    For those who are complaining about how the varying sizes of a thumbnail cause ‘dead space’ to show in the sidebar, here’s a fix: that ‘dead space’ (shows as white around your thumbnail) is defined to be white by the plugin, but you can change that to match your background colour, and it will no longer show. Go to your lazyest-thumbs-slideshow directory, and in the file called “lazyest-thumbs-slideshow.php” look for this line:

    if ($LGTS_fadebg == ”) { $LGTS_fadebg = “#ffffff”; };

    Change “ffffff” to you background colour, and voila!

    Be SURE to back up the file before you edit it, though, because if you accidentally blow it away you’ll break things and need to reinstall or delete the plugin.

    And now the question, Tash: Is there any way to define how many thumbnails across (how many columns of thumbnails) show up in the gallery view? As you can see, in my site it’s trying to force 4 across, and the 4th one is getting cut off; I’d like to restrict it to three:

    http://www.mangemerde.com/photo-gallery/

    Thanks!

    Annie

  22. 21 Tash  

    Annie!

    There is an option to change fade background color through admin page for LGTS! Look through all settings in admin page for LGTS - it is there. White (#FFFFFF) color is just default color in case you leave that setting in admin page blank.
    Or that setting doesnt work in your case?

    Your question is connected to Lazyest Gallery, as i understand.
    This setting (Number of Columns) is specified through Lazyest Gallery admin page.

    Tash

    P.S. One thought came across my mind when i read your “about” story: it would be great to have comments enabled on a wordpress page. Never thought about this before.

  23. 22 Annie  

    Tash!

    Doh!!

    Thank you!!!

    Annie

  24. 23 Annie  

    Tash - I’m running into a situation with my server where the rotation of the thumbnails in the slideshow is causing a load issue..I enabled caching and that’s helped quite a bit, but is there a way to slow down how quickly it swaps out pictures? I tried playing with the fade delay, and the # of loops..but neither seem to have helped that I can tell.

    What I’d really love is to have the image only change when the page is loaded/reloaded, but even just slowing it down’d be great!

    Thanks! I’m loving this otherwise!

    Anne

  25. 24 Tash  

    Annie,

    Fade delay is a time period after which picture is starting to fade out and doesn’t help in any way with load issues.

    With “loops” parameter you can specify how many times preloaded set of thumbs will be rotated (before you reload the page). If specified “1″ then set of random pics will be preloaded, rotated in a slideshow one time and then slideshow will stop on a last pic from the set.

    Java engine used in this slideshow preloads pics before it starts slideshow. So, it may take some time and bandwidth to preload dozen or more pictures. 5-6 thumbs shouldn’t be a problem even for slow connections (from client side) and for server bandwidth as well. So, if you got 5-6 folders in your gallery, then just specify 1 thumb per folder to show up in a slideshow (specified through LGTS admin page).

    I suggest you reducing “number of pics to show from each folder” parameter to 1.

    Or you may consider using sidebar random picture feature from Lazyest Gallery. It will load one random picture each time the page is loaded/reloaded. I do not use this, so you better read LG instructions or visit LG site.

  26. 25 Annie  

    Tash…

    Aaaah…thanks so much!!!

    Anne

  27. 26 bjeanes  

    I am having an interesting problem. I have uploaded a few pictures into my gallery album and installed the LGTS. The strange thing is that only some of the pictures rotate. I uploaded four into a folder (and put the number of pics to show from each folder setting to 5 or 6), but only two ever appeared in the thumbnail slideshow (even though they show in the album fine). I re-uploaded in different combinations, etc, but still only certain pics were displayed (always the same ones). And yes, both portrait and landscape are set to show. The only thing that I can find in common with the uploaded pics is that they were renamed post upload. One of them had a dash (-) in it, which was removed, and the other had exclamation marks (!), which were also removed. They were all different file types and sizes, so there was no common element there. A bug? or am i missing something?

    thanks,
    Bo

  28. 27 Tash  

    Bjeanes: This is normal. Im sorry, i didnt explain this elsewhere in readme file or in the post. The slideshow routine is supposed to form random pics array. The problem here is that if user sets \”pics to display\” to a number which is almost near the total number of pics in a folder, then random feature wont work. Many images will appear twice. So to make it really random (and simplify the routine), the fetched number should be significantly lower than total. I limited it to half of total pics in folder. Though, there is a way to overcome this. If \”pics to show\” parameter is equal or bigger than total number in given folder then \”random\” feature for this folder is switched off and routine shows all pics in that folder.

    There is also other practical reason in this limit. \”double\” instances of pics is the cause of extra traffic and bandwidth waste.

    This limitation is noticeable only in cases when user have not so many pics. But imagine you got 5-6 folders and 20 or more pics in each folder. If you set \”pics to display from each folder\” to 20 then preloading resulting array (100 and more thumbs) will take significant amount of time.

    Anyway, after page refreshed are reloaded, new array is formed and other pics will appear.

  29. 28 bjeanes  

    Hrm i had noticed that. However, no matter what number i change the pics per folder setting to, this one pic that i have simply does not display. I’ve tried removing every other pic in the album/s, reuploading tihs pic with other name, reuploading other pics with different names, changing settings, but under no circumstance will the pics display. If every pic except the problematic one is removed, the slideshow in the sidebar simply displays nothing. This is with the pics per album setting at 1, 2, 3, 4, and 5. None of it worked. Is this normal behaviour, it seems more likely to me that something in the js does not like something about this particular picture.

    bo
    p.s. what is the plugin you have for the authorization below the comment box?

  30. 29 bjeanes  

    sorry to double-post but i thought it important to mention that the Lazyest Gallery setting for what to display for an album (i.e. Folder Icon, Random Image from Gallery, or None), when set to random image, sees my image fine. Obviously it’s a little different, because the LG random is implemented in the PHP i would imagine, but still thought i should mention. Thanks, Bo

  31. 30 Tash  

    Could you give me the name of that problematic picture? I will download it and try to locate problem.

    Actually, in one of the recent updates i implemented Random function which checks if the pic is already in the array, but i left old limitation for number of pics per folder.

    The image verification plugin im using is CaptCha! http://www.boriel.com/?page_id=17

  32. 31 peter  

    great !!!
    thx so much 4 your work !!!

  33. 32 bjeanes  

    this is the pic that won’t load in the random slideshow on my site

    http://www.bjeanes.com/wp-gallery/Misc/thumbs/scaryme.jpg

    there were others also, but i deleted them.

    bo

  34. 33 Tash  

    Bjeanes: I think i found the bug. Its in the php routine not in js. The routine checks if the picture portrait or landscape, but misses the case when picture is square….

    I fixed this by assigning square pics to portrait case. Download fresh zip.

  35. 34 bjeanes  

    Ok great. Thanks a lot for your help, that seems like a very logical explanation haha! Thanks for your great work :-)

    Bo

    p.s. when a picture appears that is in a gallery with certain characters (such as & and =), the link from the slideshow does not work because it treats the & as a literal. Perhaps pass a urlencode() over the links. This is also a bug in LG but i manually patched that, though the slideshow still provides incorrect links. No rush though, I think i have already found the line i need to modify anyway :-) cheers.

  36. 35 Gavin  

    Great work. Is there a simple change that would allow me to select only one album from which to pull images, instead of choosing images from the entire lazyest gallery? I tried setting the $gallery_root variable to a single directory in hopes that it could be a simple solution… but no luck. Thanks for your work!

  37. 36 Tash  

    Gavin: I’m afraid this will not be a simple change. I’ll think what can be done and may implement this feature in next release

  38. 37 madmandiary  

    Hi Tash, TQ for this really nice slideshow plugin. Downloaded it, activated and got it working right away. It’s really great!

    I have a feature request that hoefully you could consider in future release: That is the ability to select only specific folder(s) to display the slideshow from.

    Reason being: As the number of photo folders increase, so will the total number of random photos displayed. This will slow down the loading time of the site without us realizing it. Having the feature would enable us to only display slideshow from our latest photo album.

    Thanks for hearing me out and TQ the wonderful plugin again!

  39. 38 Tash  

    I think i’ll do something about this. Maybe i’ll introduce ‘number of random folders’ parameter? Not sure, but this looks like a more elegant solution than ’specific folder’ way and easy to implement.

  40. 39 madmandiary  

    Sounds cool! Thanks for reading my small suggestions Tash!

  41. 40 tiki  

    hmmmm … my portrait pictures get cut off on the bottom-part. i’m not using any crop-thingy … any ideas?
    besides: everything else works super-smooth! :-)

  42. 41 Tash  

    I will try to find out what causes this.

    UPDATE: I’m afraid there is some css issue with K2 theme (css styling for sidebar). I will check it with K2 on my local installation.

    UPDATE: Yes, as I expected, its a conflict with K2 theme styling. In Style.css for K2 theme:

    .secondary div {…….. padding:0;}

    Changing padding to padding:0 0 5px 0; fixes your problem. But that will add extra 5px to all DIVs in sidebar, so I came up with defining padding in CSS styling inside of plugin. I’ll not update the package, but just provide you with patched version here: lazyest-thumbs-slideshow.php

    Let me know if this patch work fine for you.

  43. 42 tiki  

    Tash you\’re the man! Thanks so much for fixing this! It works great now :-) !!!

  44. 43 Pascal  

    Hello,

    Don’t know why but the slideshow doesn’t show at all.
    Any idea?

    thanks
    Pascal

  45. 44 Tash  

    pls, give more details.

  46. 45 Pascal  

    I am using WP 2.0.4 and Fasttrack theme (nothing special there)…

  47. 46 frapuano  

    Hi, first of all thanks a lot for your plug in that is really very usefull.
    Because the picture that I use in my gallery have very different formats for what concern the sizes you can see on the site http://www.anielloscotto.altervista.org/blog/
    the following behaviour that is not very nice. When in the sequence there is after an image another one that is larger in size you see that part of the this image is already shown ( ther is no cropping effect and there is a prefetching of the next image in the sequence ) creating a bad looking effect.
    Then the actual image fades out and comes up the new one and if the next one in the sequence is larger continue the problem . Would like to know if there is any suggestion from your side to avoid this from happening.

    Thanks in advance for your help and regards

    Franco

  48. 47 Tash  

    That is the way this slideshow engine works. It doesnt normalize pics to the same size and shows only what LazyestGallery produce. Try using cropping, or normalize pictures in your gallery(make them the same proportions).

  49. 48 frapuano  

    have used the cropping and the situation doesn’t improve. For me is ok how the system works , don’t want that the size is normalized . What I guess is not completely correct is the presence of the next image in the sequence in the meantime with the actual one . In my opinion is necessary that the actual image fades out and then should fade in the next one . Probably to save time the next one is prefetched giving this strange effect .

  50. 49 Tash  

    The whole idea of fading in this slideshow is fading one picture into another. As i understand you want them to fade out (to nothing - white background) and only then show up next.

    That means rewriting engine. The problem is that i did not code the engine - i just coded plugin which is using free java engine.

  51. 50 Giuseppe *  

    First of all thanks for developing this useful plugin.
    I set to display only landscape pictures. Nevertheless there’s still a space under the slideshow in my kubrick sidebar. How can I avoid it?

  52. 51 RAMI7250  

    hay i was activate the plugin + confirm the options + post the code into the function.php file + insert the “LGTSlideshow” thing to the sidebar widgets, and i getting that massege in the sidebar (under the title of the LGT slideshow- see in the image below):

    “var fadeimages=new Array() var loop=stop=0 w=10 h=10 b=0 d=6000 p=1 f=”#FFFFFF” lloops=0″

    + got a problem on the sidebar (see below the image)

    you can see a photo that shows what i got:
    http://uplode.us/images/230problemfs.JPG

    can you tell me what is the solution?

  53. 52 houserocker  

    thanks so much for this great and easy to use tool!!!

  54. 53 marco  
  55. 54 vacuum cleaners  

    I like the fading effect. Might be nice if you could add more effects to the plugin. Maybe make it like a ‘mini-photo-show’ like you get on Apple with the normal photo show, except now in a thumbnail version. In other words, the photos kind of fade into each other but also scroll to the left or upper right etc. like the Apple photo viewer thingie works (which works very well). I think this might actually have a very nice effect to it.

  56. 55 johnnyTHM  

    So I activated the plugin and it won\’t display my images. I used the manager (lazyest gallery) to upload them, give them a caption, and description in my \’test\’ folder. And when I go to view the gallery, I see all the framework, and folders and titles and such, but where the picture thumbnails should be, there are white boxes. And when I browse to the folder outside wordpress, I can see that it did upload the images. Oh and yes, I\’ve restarted, checked file permissions, uploaded the plugin again, reactivated it and tried different images all to no avail. Any ideas? Thanks.

  57. 56 css designer  

    thanks downloading right now , playing soon!

  58. 57 Gerry  

    Good evening. Hello guys. you rock.Love your style. Help me! It has to find sites on the: Free standing bathroom mirrors. I found only this - bono debt relief 33010. Offer codes discount codes, voucher codes and money saving offers. So, everytime they went out side and into the world it was there for them to see. Best regards :o, Gerry from Albania.

  59. 58 Syna  

    Hi guys. Americans are benevolently ignorant about Canada, while Canadians are malevolently well informed about the United States. Help me! Looking for sites on: Buy tanning bed. I found only this - about tanning beds. Many thanks to my irish, scot brit forefathers foremothers, ye whiter than white jerkweeds. However, in the fda began a review of these warnings and is considering strengthening its warnings about the risk of skin cancer and eye damage, according to the agency. Thanks :-(. Syna from Iraq.

  60. 59 furniture stores  

    This is a great sideshow plugin, thanks a lot!

Leave a Comment

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a