======PBase now has offical Slideshow support====== **This slideshow feature has been discontinued in favor of Pbase's slideshow feature.** Check out [[http://forum.pbase.com/viewtopic.php?t=21818|Forum announcement]] for the details. The rest of this page is here just for the records and should not be used anymore! ===== Adding Slideshows ===== Please note that the slideshow feature is not a feature implemented by PBase. Do not complain to them if it does not work. Drop a note in the [[http://forum.pbase.com/viewtopic.php?t=15790|forum post]] and hopefully someone will help you. A big "Thank You" to Karthik ([[http://www.pbase.com/yardbird/profile/|yardbird]]) for kickstarting the whole activity and Arjun ([[http://www.pbase.com/arjunrc/profile|arjunrc]]) for some great codes and suggestions. ===== Usage ===== There are two ways to add a slideshow to your gallery. The first provides an inline slideshow that is visible to the user as soon as they enter the gallery and the other method requires them to click (a link or an image) to launch the slidshow. ==== Inline method ==== For this method, use the code below as the starting point. Copy-paste it into your gellery's description field and enable 'html flag'.
Then make the following changes to suit your needs: * Change USER to your username * Change DELAY to the number of seconds delay you would like between slides (minimum is 3 seconds) * Change COLORCODE to the Hexadecimal color code that is used for your gallery backrgound (example ffffff for white, 000000 for black) * Change TITLE to 1 if all your gallery images have titles or 0 if they do not. 0 is assumed if not set explicitly * Change SIZE to 'medium', 'large' or 'auto'. If you choose 'large' make sure that all images in the gallery does indeed have a large sized image. Choose 'auto' if you have panoramic image in your gallery. If nothing is specified, 'medium' is assumed. * Change MAXWIDTH and MAXHEIGHT to the the maximum value of the width and height of the images in your gallery at the SIZE you selected. If not specified they are assumed to be 400 and 300 (if SIZE is medium) or 800 and 600 (if SIZE is large or auto). * If you see scrollbars when you view the gallery, change the values 460 and 450 to larger values. An example code that renders [[http://www.pbase.com/srijith/test|this slideshow]] is:
==== Extra-click method ==== For this method, use the code below as the starting point. Copy-paste it into your gellery's description field and enable 'html flag'
Then make the following changes to suit your needs: * Change USER to your username * Change DELAY to the number of seconds delay you would like between slides (minimum is 3 seconds) * Change COLORCODE to the Hexadecimal color code that is used for your gallery backrgound (example ffffff for white, 000000 for black) * Change TITLE to 1 if all your gallery images have titles or 0 if they do not. 0 is assumed if not set explicitly * Change SIZE to 'medium', 'large' or 'auto'. If you choose 'large' make sure that all images in the gallery does indeed have a large sized image. Choose 'auto' if you have panoramic image in your gallery. If nothing is specified, 'medium' is assumed. * Change MAXWIDTH and MAXHEIGHT to the the maximum value of the width and height of the images in your gallery at the SIZE you selected. If not specified they are assumed to be 400 and 300 (if SIZE is medium) or 800 and 600 (if SIZE is large or auto). * If you see scrollbars when you view the gallery, change the values 500 to larger values. An example code that renders [[http://www.pbase.com/srijith/sstest|this slideshow]] is:
===== Which to use? ===== The inline method involves one less click. However it will use up some space for the slideshow even if the viewer is not interested in the slideshow. The other method does involve one more click but it does not impose the slideshow area onto viewers. ===== Caveat ===== - The slideshow feature will not work in passphrase protected galleries. - Setting title=1 when **all** images in the gallery does not have a title will render the slideshow unuseable. - It may or may not work with non-english characters (Chinese, Japanese etc.). - The slideshow will not work on a multipage gallery. - The script performs server side caching to reduce load. Due to the way this caching works, I (owner of srijith.net on which the script runs) am in the position to see which galleries are using the slideshow feature. This list would also include 'non public' galleries. However, I assure you that I do not have any intention to poke my nose around galleries that have been made non-public. Not enough hours in the day :) - Because of the use of caching (to reduce server loads), any new image you may add to a gallery will not show in the slideshow until after about 2 hours (max as of now). After that 2 hours, the cache will expire and the new image will be added into the slideshow. ===== Disclaimer ===== This is not an official PBase feature. If it does not work, do not email Slug or Emily or anyone else related to PBase as they can't do anything about it! Post a reply in [[ http://forum.pbase.com/viewtopic.php?t=15790|this forum thread]] and some of us will try our best to help you out. No assurances though. If it breaks, all I can guarantee you is that you get to keep the pieces :) While there is no immediate plans to cancel the service, it cannot be guaranteed that this service will be available all the time. If for some reason this service needs to be shut down, a message will be posted in the [[http://forum.pbase.com/|PBase forum]] as well as here, well in advance.