Skip to main content

added a random picture

..raw:: html

<html><body><p>I just finished adding a random picture to the <a href="/index.html">main index</a>.

Download <a href="http://www.barcahall.com/gallery/block-random.phps">block-random.phps</a>, rename it to block-random.php and copy it to your Gallery directory. Then add this PHP include to the file you want to add a random picture to: <code>&lt;?php include("http://www.yoursite.com/gallery/block-random.php"); ?&gt;</code>. The current code allows you to add a <code>?album=albumname</code> parameter to the php file, so you can force it to use just one album.

I had to edit the code a little bit, because it expects to be embedded within an IFRAME. Because they are evil, I hacked the code to only generate an IMG tag.</p></body></html>