As part of album.pl, you can incorporate bits and pieces of your album into other pages. In each case below, the output is generated without header, footer or style info, so the HTML can be inserted directly into an existing page. (See
http://perl.cdnarmy.ca/album, under Pic Randomizer for an example.)
Here are the "SSI" enabled calls:
View the 10 most recent uploads, formatted for inclusion in other pages:
http://perl.Bobbitt.ca/cgi-bin/album.pl?album=:recent;ssi=10View a randomly selected photo, formatted for inclusion in other pages:
http://perl.Bobbitt.ca/cgi-bin/album.pl?random=1;ssi=2View the thumbnail of a randomly selected photo, formatted for inclusion in other pages:
http://perl.Bobbitt.ca/cgi-bin/album.pl?random=1;ssi=1View randomly selected photos in a slideshow (5 second delay), formatted for inclusion in other pages:
http://perl.Bobbitt.ca/cgi-bin/album.pl?random=1;ssi=2;slideshow=5View the thumbnails of randomly selected photos in a slideshow (5 second delay), formatted for inclusion in other pages:
http://perl.Bobbitt.ca/cgi-bin/album.pl?random=1;ssi=1;slideshow=5View a specific photo, formatted for inclusion in other pages:
http://perl.Bobbitt.ca/cgi-bin/album.pl?photo=photoname;ssi=1View photos in a slideshow (5 second delay), formatted for inclusion in other pages:
http://perl.Bobbitt.ca/cgi-bin/album.pl?photo=photoname;slideshow=5;ssi=1View randomly selected photo directly (no HTML, just the image itself):
http://perl.Bobbitt.ca/cgi-bin/album.pl?image=randomView randomly selected thumbnail directly (no HTML, just the thumbnail itself):
http://perl.Bobbitt.ca/cgi-bin/album.pl?image=randthumbView thumbnails of 10 most popular photos, formatted for inclusion in other pages:
http://perl.Bobbitt.ca/cgi-bin/album.pl?popular=1;ssi=10View thumbnails of 10 most popular albums, formatted for inclusion in other pages:
http://perl.Bobbitt.ca/cgi-bin/album.pl?popular=2;ssi=10In PHP, you can do the same thing like this:
<?php include "http://perl.cdnarmy.ca/cgi-bin/album.pl?album=:recent;ssi=10" ?>And in standard HTML, you can use inline frames:
<IFRAME src="/cgi-bin/album.pl?album=:recent;ssi=10" width="200" height="800" scrolling="no" frameborder="0">
Your browser does not support frames.
</IFRAME>
Here's an SSI example of the same:
<!--#include virtual="/cgi-bin/album.pl?album=:recent;ssi=10"-->You can also make direct calls to the "image" generation URLS:
<img src="http://perl.Bobbitt.ca/cgi-bin/album.pl?image=random">
<img src="http://perl.Bobbitt.ca/cgi-bin/album.pl?image=randthumb">