badkidsrevenge
09-15-2004, 09:13 PM
First off, I'm slowly teaching myself basic php. Secondly I'm using the save the gummmybears thumnail generator. Thirdly, my problem is that my thumbnails aren't genearting, though when i click on the red x, my photo pops up in a seperate window.
example: http://www.frankdelrosario.com/lomo/index.php?gallery=warclosure
below is the code for my index.php page
<title>lomography by francois</title>
<a href="index.php?gallery=warclosure">warclosure</a> -
<a href="index.php?gallery=withindistance">within distance</a> -
<a href="index.php?gallery=newlomos">new lomos</a><br><br>
<?php
switch($_GET["gallery"]) {
case "warclosure":
require("warclosure/index.php");
break;
case "withindistance":
require("withindistance/index.php");
break;
case "newlomos":
require("newlomos/index.php");
break;
default:
require("newlomos/index.php");
break;
} // switch
?>
The stg tg files are located in the directory my images are located in.
Does anyone have any ideas?
I would like to separate all my photos, in due time, i'll have way too many to just put in one gallery.
Any help would be greatly appreciated.
Thank You
-Frank
badkidsrevenge
09-15-2004, 09:21 PM
I also noticed, when I check the properties of the red X it says:
http://www.frankdelrosario.com/lomo/generate.php?pic=fd01.jpg
When it really should say:
http://www.frankdelrosario.com/lomo/warclosure/generate.php?pic=fd01.jpg
or atleast I think.
here is my setup.inc.php which states my path
<?
/*************************************
* thumbnailGenerator v2.25
* last update: 21|07|2004
* written by michael kloepzig
* mischer@save-the-gummybears.org
* http://www.save-the-gummybears.org
*************************************/
//SETUP
$picFolder = 'warclosure/'; //PATH TO THE PICS, RELATIVE TO THIS FILE, ENDING WITH /
$gallery = 0; //0 ... POPUP WINDOW | 1 ... CLICK-THROUGH-GALLERY
$thumbWidth = 100; //WIDTH OF THE THUMBNAILS
$thumbHeight = 75; //HEIGHT OF THE THUMBNAILS
$thumbSpacing = 5; //SPACE BETWEEN THE THUMBNAILS IN PIXEL
$picsInARow = 4; //NUMBER OF THUMBNAILS IN A ROW
$randomize = 'on'; //SWITCH RANDOM POSITION OF THE THUMBNAIL CUTOUT IN THE PIC "on" or "off"
$thumbCount = 'on'; //SWITCH INCREMENT NUMBERS BELOW THUMBNAILS "on" or "off"
$sortBy = 'name'; //SORT IMAGE FILES BY 'name' OR 'date'
$sortByOrder = 'asc'; //SORT IMAGE FILES IN ASCENDING ORDER: 'asc' OR IN DESCENDING ORDER: 'desc'
//LAYOUT
$bgCol = '#ffffff'; //BACKGROUND COLOR OF THE GALLERY
$borderCol = '#444444'; //COLOR FOR THE BORDERS AROUND THUMBNAILS
$borderSize = 2; //SIZE OF THE BORDERS AROUND THUMBNAILS IN PIXEL
$font = 'verdana,arial,tahoma,trebuchet ms'; //FONTS FOR THUMBNAIL COUNT
$fontSize = '8pt'; //FONT SIZE
$fontCol = '#ffffff'; //FONT COLOR
$fontWeight = 'normal'; //FONT WEIGHT, USUALLY 'bold' OR 'normal'
$fontStyle = 'normal'; //FONT STYLE, 'normal' OR 'italic'
$textDeco = 'none'; //TEXT DECORATION, 'none' OR 'underline' OR 'overline' OR 'line-through' OR 'blink'
?>
could the path on $picFolder be my problem? I know if i were to change that to "./" i would be able to view the generated thumnails when I would access the directory directly. (www.frankdelrosario.com/lomo/warclosure)
Koobi
09-18-2004, 12:22 PM
The stg tg files are located in the directory my images are located in.
What are stg tg files?
By the way, your link:
http://www.frankdelrosario.com/lomo/index.php?gallery=warclosure
Shows me this error:
Fatal error: Call to a member function on a non-object in /home/frank570/public_html/lomo/warclosure/index.php on line 40
Which means youre calling a funtion that does not exist within a PHP class (OOP)
I'm not sure what you're asking for...it sounds like your resizing function doesn't work.
Show me the code and I will tell you what's wrong with is...or I have my own image resiging function if you need it.
Also, make sure you're using the right GD version (resizing images require a vcertain GD Library version...which version you need depends on the functions used)
Excuse me if I missed something, I'm slightly "intoxicated" now heh ehh :D
Octane
09-19-2004, 05:24 AM
you have your generate files in a different directory than the index page for your gallery. Put them in the same dir.
decadence
09-19-2004, 10:45 AM
you have your generate files in a different directory than the index page for your gallery. Put them in the same dir.
Thanks to the above comment, I sorted out my own issue as well. Thanks by proxy :dub: