Posted: Tue Mar 21, 2006 5:45 pm Post subject: Broken Images
The block-G2_ImageBlock is linking correctly to my Gallery, but the images inside the block are broken. I'm not sure what I've got wrong. I've been searching without applicable results, I'm just not sure what I'm overlooking.
The site is at http://www.footguild.com
Relevant info follows:
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):http://footguild.com/modules/gallery
Gallery version:2.1.rc2a
Apache version: unknown, hosted
PHP version (don't just say PHP 4, please): unknown, hosted
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):
The CONFIG lines from the top of your block file(s):
<?php
/*
* $RCSfile: block-G2_ImageBlock.php,v $
*
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2006 Bharat Mediratta
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
/**
* Gallery 2 image block for PHPNuke.
* @version $Revision: 1.10 $ $Date: 2006/03/02 16:05:34 $
* @author Dariush Molavi <dari@nukedgallery.net>
*/
/****************************************************************************/
/* This is your configuration section of your Gallery 2 image block. */
/* */
/* 1. Select which block you want to show from the list below: */
/* */
/* randomImage : A random image is shown */
/* recentImage : The most recent image is shown */
/* viewedImage : The most popular image is shown */
/* randomAlbum : The highlight from a random album is shown */
/* recentAlbum : The highlight from the most recent album is shown */
/* viewedAlbum : The highlight from the most popular album is shown */
/* dailyImage : A new image each day */
/* weeklyImage : A new image each week */
/* monthlyImage : A new image each month */
/* dailyAlbum : A new album highlight each day */
/* weeklyAlbum : A new album highlight each week */
/* monthlyAlbum : A new album highlight each month */
/* */
$blockType = "randomImage";
/* 2. Select what album/image properties you want displayed, you can */
/* display more than one, but separate them by | (the pipe symbol) */
/* */
/* title : Show the title */
/* views : Show how many views the item has */
/* date : Show the capture/upload date */
/* owner : Show the item owner */
/* heading : Show the item heading ("Random Image","Daily Image", etc) */
/* fullSize: Show the full sized item (not a thumbnail) */
/* none : Don't show anything, just the thumbnail */
/* */
$display = "title|heading";
/* 3. What size image do you want displayed? If you want the default */
/* thumbnail, leave this empty, otherwise, enter the max pixel size. */
/* IF YOU SPECIFY A SIZE LARGER THAN THE DEFAULT THUMBNAIL SIZE, YOU */
/* MUST ALSO ADD "fullSize" TO THE $display VARIABLE ABOVE. */
$maxSize='';
/* */
/****************************************************************************/
if (eregi("block-G2_ImageBlock.php", $_SERVER['SCRIPT_NAME'])) {
Header("Location: index.php");
die();
}
global $admin, $user, $cookie, $db, $prefix;
define("_G2_EMBED_PHP_FILE","embed.php");
define("_G2_CONFIGURATION_NOT_DONE","The module has not yet been configured.");
if ($showSidebar) {
$content = "The Gallery2 sidebar is enabled.<br>You should disable it before using this block.";
return true;
}
list($ret, $modulestatus) = GalleryCoreApi::fetchPluginStatus('module');
if($modulestatus['imageblock']['active'] != '1') {
$content = 'You need to install and/or activate the ImageBlock module in Gallery 2 before using this block';
return true;
}
Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
Posted: Wed Mar 22, 2006 7:19 am Post subject: Re: Broken Images
did you install the integration? it doesn't look like it, since you should not be able to visit your gallery via the index.php file (as you have up there). _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum