After a request for a block for the most popular image in your photo albums, we've created one. Read on for more...
Grab the zip file here. Unzip into your blocks directory and change the following two lines to reflect your installation:
$GALLERY_BASEDIR = "/home/httpd/htdocs/modules/gallery/";
define(SERVER_ADDR,"/");
Next, if the name (the directory that your Gallery is stored in) of your Gallery module is something other than "gallery", you will have to change the two following lines:
$albumURL .= "&op;=modload&name;=gallery&file;=index&include;=view_album.php";
$url .= "&op;=modload&name;=gallery&file;=index&include;=view_photo.php";
Change the "gallery" to whatever you called your Gallery.
That's it. Activate the block and you're set.
Right now, this does a real-time check of the Gallery (no cache files are created). Also, it doesn't provide the capability for most popular in the last hour/day/month/year. If you'd like to see this capability, please vote in the survey.