Posted on: 07/07/05 10:35am
By: terminator
Hi all, I have a peculiar problem with the random photo block. I have installed as per the instructions, however the block displays "no photo chosen". Now, here is the peculiar part, if I change the lib-custom entry for the cache directory to a non existant directory. Then the header displays this error, "failed to open stream: Permission denied". However, the block displays the photo. I would appreciate any assistance you guys can provide.
Gallery Random Photo Block
Posted on: 07/09/05 03:47pm
By: JohnVanVliet
hi if you have not figured this out yet then take a look at lib-custom.php
on or about line 305
..............
function phpblock_galleryRandomPhoto() {
global $_CONF, $GALLERY_BASEDIR, $GALLERY_NO_SESSIONS, $gallery;
$GALLERY_NO_SESSIONS=true;
$GALLERY_BASEDIR = "/??/???/Gallery/";
define(CACHE_FILE, "/??/???/Gallery/Albums/block-random.cache");
define(CACHE_EXPIRED, 86400);
//define(CACHE_EXPIRED, 86);/*--update list*/
require_once($GALLERY_BASEDIR ."init.php");
include_once($_CONF['path_html'] . "/block-random.php");
.............
change 86400 to 86 then reload your page
then change it back to 86400 and reload your page again