Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Broken Images

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic
Author Message
medic

Beginner
Beginner


Joined: Mar 20, 2006
Posts: 6

PostPosted: Tue Mar 21, 2006 5:45 pm    Post subject: Broken Images Reply with quote

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.");

$g2result = $db->sql_query("SELECT * FROM ".$prefix."_g2config");
list($embedUri, $g2Uri, $activeUserId, $cookiepath, $showSidebar, $g2configurationDone, $embedVersion) = $db->sql_fetchrow($g2result);

if ($g2configurationDone != 1) {
$content = _G2_CONFIGURATION_NOT_DONE;
return;
}

preg_match("/^(.*)?(modules\/.*)/i", $g2Uri, $matches);
require_once($matches[2]._G2_EMBED_PHP_FILE);

if (is_admin($admin)) {
$uid='admin';
}
else {
if (is_user($user)) {
cookiedecode($user);
$uid='';
if (is_user($user)) {
$uid = $cookie[0];
}
}
}

$ret = GalleryEmbed::init(array(
'embedUri' => $embedUri,
'g2Uri' => $g2Uri,
'activeUserId' => "$uid",
'fullInit' => true));

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;
}

$g2moddata = GalleryEmbed::handleRequest();
if(intval($maxSize) > 0) {
list($ret,$html, $head) = GalleryEmbed::getImageBlock(array('blocks'=>$blockType, 'show'=>$display,'itemFrame'=>'solid','albumFrame'=>'solid','maxSize' => $maxSize));
}
else {
list($ret,$html, $head) = GalleryEmbed::getImageBlock(array('blocks'=>$blockType, 'show'=>$display,'itemFrame'=>'solid','albumFrame'=>'solid'));
}

if (!isset($g2moddata['isDone'])) {
echo 'isDone is not defined, something very bad must have happened.';
exit;
}

if ($g2moddata['isDone']) {
exit;
}

$content = $head."\n<center>".$html."</center>";

?>
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Broken Images  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Tue Mar 21, 2006 8:04 pm    Post subject: Re: Broken Images Reply with quote

does your integration of g2 work properly? did you install/activate the g2 imageblock module?
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
medic

Beginner
Beginner


Joined: Mar 20, 2006
Posts: 6

PostPosted: Wed Mar 22, 2006 1:00 am    Post subject: Re: Broken Images Reply with quote

g2 works fine, and the imageblock is installed and working.
http://www.footguild.com/modules/gallery
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Wed Mar 22, 2006 7:19 am    Post subject: Re: Broken Images Reply with quote

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).
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
medic

Beginner
Beginner


Joined: Mar 20, 2006
Posts: 6

PostPosted: Wed Mar 22, 2006 10:05 am    Post subject: Re: Broken Images Reply with quote

I do have the integration installed. It's probably the URL forwarding being masked that belies the actual gallery location, which is:
http://st72.startlogic.com/~footguil/PH ... /main.php?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Wed Mar 22, 2006 10:07 am    Post subject: Re: Broken Images Reply with quote

http://st72.startlogic.com/~footguil/PH ... me=gallery

states the module isn't active. that might be part of it.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic

 
Jump to:  
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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSEO Search Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaCheap Web Design

6th year online! 2003-2009
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia