Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 08:15 pm EST

Geeklog Forums

Gallery Random Photo Block


Status: offline

terminator

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

Status: offline

JohnVanVliet

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_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


 Quote

All times are EST. The time is now 08:15 pm.

  • 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