this patch enables users to specify for every
directory or just some direcs a different thumbnail.
if the album struct is like the following:
albums/birthday/
albums/birthday/franz
albums/birthday/volker
the user may place in the cache the following
thumbnails:
cache/birthday.jpg
cache/birthday/franz.jpg
cache/birthday/volker.jpg
got the idea ? if not, watch http://www.cafe-europa-
bielefeld.de/album
here's the patch fpr index.php:
<table class="body" width="100%">
<?
if (($start == 0) and is_array($dirlist))
{
print "<tr class='album'>\n";
$thisdir = urldecode($album);
if ($thisdir)
{
$thisdir .= "/";
}
reset($dirlist);
while (list(, $dirname) = each($dirlist))
{
# XXX: Look for a user-provided thumbnail in
the cache
//echo "<br>".$scriptbase.$cache_base."/".$this
dir.$dirname.".jpg"; // .$album_img;
if(file_exists
($scriptbase.$cache_base."/".$thisdir.$dirname.".jpg"))
{
DisplayImage
($htmlbase.$albumpath.$userstring."album=" . urlencode
("${thisdir}
${dirname}") . "&dispsize=$dispsize&start=0",
$htmlbase.$cache_base."/".$thisdir.$dirname.".j
pg", 0, 0, $dirname, 'album');
}
else
{
DisplayImage
($htmlbase.$albumpath.$userstring."album=" . urlencode
("${thisdir}
${dirname}") . "&dispsize=$dispsize&start=0",
$htmlbase.$album_img, 0, 0, $dirname, 'album');
}
}
PadTable("album");
}
Logged In: NO
how do i add the script to my album? and do you know how i
could add a user comment script, like the one they have on
http://www.cafe-europa-bielefeld.de/album