Welcome to Geeklog, Anonymous Friday, July 19 2024 @ 02:21 am EDT

Geeklog Forums

Gallery Random Photo Block

Status: offline


Forum User
Registered: 07/07/05
Posts: 11
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.

Status: offline


Forum User
Full Member
Registered: 10/09/03
Posts: 161
hi if you have not figured this out yet then take a look at lib-custom.php

on or about line 305
Text Formatted Code

function phpblock_galleryRandomPhoto() {
        global $_CONF, $GALLERY_BASEDIR, $GALLERY_NO_SESSIONS, $gallery;
        $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


All times are EDT. The time is now 02:21 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content