Table of Contents

PBase now has offical Slideshow support

This slideshow feature has been discontinued in favor of Pbase's slideshow feature.

Check out 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 forum post and hopefully someone will help you. A big “Thank You” to Karthik (yardbird) for kickstarting the whole activity and Arjun (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'.

<center>
<iframe frameborder="0px" style="border:0px" width="460" height="450" src="http://www.srijith.net/pbase/slideshow.cgi?user=USER&gallery=GALLERY_NAME()&delay=DELAY&color=COLORCODE&title=TITLE&size=SIZE&maxwidth=MAXWIDTH&maxheight=MAXHEIGHT">
<!-- Alternate content for non-supporting browsers -->
<h2>Your browser does not support the technology needed for this slideshow.</h2>
</iframe>
</center>

Then make the following changes to suit your needs:

An example code that renders this slideshow is:

<center>
<iframe frameborder="0px" style="border:0px" width="460" height="450" src="http://www.srijith.net/pbase/slideshow.cgi?user=srijith&gallery=GALLERY_NAME()&delay=3&color=4d4d4d&title=1&size=medium&maxwidth=400&maxheight=300">
<!-- Alternate content for non-supporting browsers -->
<h2>Your browser does not support the texhnology needed for this slideshow.</h2>
</iframe>
</center>

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'

<center><a href='javascript:doslide()'><img src="http://www.srijith.net/pbase/ss-img/ss.jpg" /></a></center>
<script language="JavaScript1.2">
function doslide()
{
   document.write('<html><head></head><body bgcolor=#COLOR>')
   document.write('<center>')
   document.write('<iframe frameborder="0px" style="border:0px" width="500" height="500" src="http://www.srijith.net/pbase/slideshow.cgi?user=USER&gallery=GALLERY_NAME()&delay=DELAY&color=COLOR&title=TITLE&size=SIZE&maxwidth=MAXWIDTH&maxheight=MAXHEIGHT">');
   document.write('<h2>Your browser does not support the technology needed for this slideshow.</h2>')
   document.write('</iframe> </center></body></html>')
}
</script>

Then make the following changes to suit your needs:

An example code that renders this slideshow is:

<center><a href='javascript:doslide()'><img src="http://www.srijith.net/pbase/ss-img/ss.jpg" /></a></center>
<script language="JavaScript1.2">
function doslide()
{
   document.write('<html><head></head><body bgcolor=#4d4d4d>')
   document.write('<center>')
   document.write('<iframe frameborder="0px" style="border:0px" width="500" height="500" src="http://www.srijith.net/pbase/slideshow.cgi?user=srijith&gallery=GALLERY_NAME()&delay=3&color=4d4d4d&title=1&size=auto&maxwidth=400&maxheight=300">');
   document.write('<h2>Your browser does not support the technology needed for this slideshow.</h2>')
   document.write('</iframe> </center></body></html>')
}
</script>

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

  1. The slideshow feature will not work in passphrase protected galleries.
  2. Setting title=1 when all images in the gallery does not have a title will render the slideshow unuseable.
  3. It may or may not work with non-english characters (Chinese, Japanese etc.).
  4. The slideshow will not work on a multipage gallery.
  5. 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 :)
  6. 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 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 PBase forum as well as here, well in advance.