Koozali.org: home of the SME Server

Photo gallery site examples

Ray Mitchell

Photo gallery site examples
« on: December 19, 2002, 01:34:26 PM »
Dear All

Does anyone have a photo gallery set up on a site (sme server) using Gallery or Yappa that they are happy to show us ?

I would like to make a photo gallery site but would like to see what it will look like first. Could you please suggest some link(s) ?

Thanks
Ray Mitchell

Terry Brummell

Re: Photo gallery site examples
« Reply #1 on: December 19, 2002, 01:56:58 PM »
Feel free to look at mine:

http://gallery.brummell.net

Mine is in an IBay, not /opt like Dan's HowTo does.  It made it more difficult to setup but the final result suits me better.  By posting this here the gallery is going to take quite a few hits, so be patient, it's just a weeee cable connection.

Terry

Ray Mitchell

Photo gallery site examples
« Reply #2 on: December 19, 2002, 02:09:35 PM »
Thanks Terry. I had a quick look, seems quite neat.
No real problems with speed at all.

Anybody have a YAPPA site to recommend ?

Regards
Ray Mitchell

Jim Hale

Re: Photo gallery site examples
« Reply #3 on: December 19, 2002, 03:51:43 PM »
I'm running Gallery and it's GREAT!

You can check my albums at either:

Inside PHP-Nuke
-------------------------
http://hale.dyndns.org/modules.php?op=modload&name=gallery&file=index&include=albums.php

or

Stand-Alone
------------------
http://hale.dyndns.org/modules/gallery/

I've even installed a Postcard Plugin to use any of the images as cards.

Jim

Jim Hale

Re: Photo gallery site examples
« Reply #4 on: December 19, 2002, 03:52:39 PM »
I forgot to mention that my site IS still on a Dial-Up connection so the speed is NOT reflective of the Software...

Roger Richards

Re: Photo gallery site examples
« Reply #5 on: December 21, 2002, 01:37:14 AM »
Would you mind sharing the additional steps you discovered in order to use an ibay for a gallery install?

Ray Mitchell

Photo gallery instal to an ibay
« Reply #6 on: December 21, 2002, 04:05:17 PM »
Dear Terry
Yes, I would also be interested in how to instal Photo gallery to an ibay. Any comments appreciated.
I will be going away for a few weeks holiday tommorrow but will follow up with you when I return in late January.

Thanks
Merry Xmas & Happy New Year to all
Regards
Ray Mitchell

Terry Brummell

Re: Photo gallery instal to an ibay
« Reply #7 on: December 21, 2002, 08:06:23 PM »
You can start here http://www.swerts-knudsen.dk/sme.htm#How%20to%20Install%20Gallery%201.3.2%20in%20an%20Ibay%20on%20SME%205.5 with a HowTo on doing the install.
Then, 1 thing he missed is changing the IBay's "AllowOverride" setting.  You can see how I did that here http://forums.contribs.org/index.php?topic=15874.msg61284#msg61284 .

It took some playing, and extreme patience, but in the end it worked.

Terry

Michael Smith

Re: Photo gallery instal to an ibay
« Reply #8 on: December 22, 2002, 05:26:25 AM »
Here's a Gallery install, modified a bit:

http://www.gruntville.com/casegallery/albums.php

Question:  unless you're wanting to run multiple instances of gallery, why would you want to run it in an ibay?  Seriously, I want to know.  What's the benefit?

Terry Brummell

Re: Photo gallery instal to an ibay
« Reply #9 on: December 22, 2002, 03:06:56 PM »
Michael, here's my reasons:
1. A nicer looking URL http://gallery.brummell.net vs. http://www.brummell.net/gallery by using Virtual domains.
2. Multiple owners
3. Quota's
4. Easier management, if I don't want a gallery anymore I delete the ibay, it removes everything I added, no need to go to the command line.

eric

Re: Photo gallery site examples
« Reply #10 on: December 23, 2002, 04:42:11 AM »

Holger

Re: Photo gallery site examples
« Reply #11 on: December 27, 2002, 01:17:22 PM »
And I have a yappa at:
http://bisp.libi.dk/foto

I like Yappas simplicity but miss the slideshow feature.
I have also made 2 little enhancements to prevent it from choking when heavily loaded. They have been fed back to Frederico (the author of Yappa) but he has not yet released them.
Tell me if you're intrested.

Jesper Knudsen

Re: Photo gallery instal to an ibay
« Reply #12 on: December 29, 2002, 10:28:41 PM »
Hi Terry,

I noticed my name and was wondering what the allowOverride would add ? My Gallery works quite well after the install was done as my HowTo indicates. I deliberatly did not want any templates and all the other "diffucult" stuff.

Enlighten me please :-)

Happy New Year.

/Jesper

Terry Brummell

Re: Photo gallery instal to an ibay
« Reply #13 on: December 29, 2002, 10:58:07 PM »
Without modifing that setting I found gallery did not work correctly.  Specifically it didn't work correctly when using a "Nested Album".  Once I changed that the nested albums worked fine. SME 5.5 with updates...

Boris Mann

Re: Photo gallery instal to an ibay
« Reply #14 on: December 31, 2002, 06:46:26 AM »
Specifically, without changing the httpd.conf line to "Allow Options FileInfo" for the gallery ibay, gallery has to use "long urls" instead of /myalbumname.

Specifically, here is what the .htaccess of Gallery looks like:

php_value post_max_size 20971520
php_value upload_max_filesize 20971520
php_value magic_quotes_gpc off


Options +FollowSymLinks

RewriteEngine On
RewriteBase /gallery/
RewriteRule ^([^\.\?/]+)/([0-9]+)$      /gallery/view_photo.php?set_albumName=$1&index=$2       [QS
A]
RewriteRule ^([^\.\?/]+)/([A-Za-z_0-9\-]+)$     /gallery/view_photo.php?set_albumName=$1&id=$2  [QS
A]
RewriteRule ^([^\.\?/]+)/$      /gallery/$1     [R]
RewriteRule ^([^\.\?/]+)$       /gallery/view_album.php?set_albumName=$1        [QSA]

Ray Mitchell

Re: Photo gallery instal to an ibay
« Reply #15 on: January 26, 2003, 01:18:47 PM »
Dear Terry or others
I just installed gallery to an ibay following the HOWTO at http://sme.swerts-knudsen.dk/.
I have not applied the second fix you referred to re AllowOverride Options FileInfo
as I will not be using nested albums, and assume it may not be strictly necessary.

Gallery appears to have installed OK, although when I run the setup page I do have some errors. It seems that these may not be neccessary to fix up but just want to check. Refer to errors below.

I can create albums and upload photos, but the problem I have is that none of the photos will display at all, either as thumbnails or full images.

The errors in the setup page are:
1)
Warning!
Apache is not obeying your .htaccess file. Try entering the following into your web server's httpd.conf file:


   AllowOverride Options FileInfo
   

2)
Warning!
Magic quotes are on. Your webserver owner can turn them off by putting:
   magic_quotes_gpc = Off
in your php.ini file

3)
Warning!
Either mod_rewrite is not installed or your .htaccess file is not enabled (see above). Either way, we'll have to use longer URLs in the Gallery. If you want to turn it on I'd suggest that you make sure that your .htaccess file works and then if it still doesn't work you may need to reconfigure and rebuild Apache with this flag:
--enable-module=rewrite

4)
Warning!
I can't find ImageMagick. If it's installed and not in the path of the webserver user that's OK -- you can specify the path to ImageMagick by hand on the following page. If it's not installed, you must install it. Gallery prefers ImageMagick version 5.4.8 and up. You can compile and install the entire ImageMagick package from www.ImageMagick.org. Note: They also have binaries available for assorted operating systems. If you can't get it working, try leaving the ImageMagick path blank and using NetPBM instead

The nice message at the bottom said
Your installation has warnings, but life is short so let's GO!

I clicked on Configure Gallery and then entered the appropriate locations for my gallery, note that the Path to ImageMagick was left blank, then clicked on Album Defaults. The next screen looked OK so I clicked on Save settings.
The next page lists the settings as follows: (URLs edited out)


 /* Version */
$gallery->app->config_version = 31;
 
/* Features */
$gallery->app->feature["zip"] = 1;  
$gallery->app->feature["rewrite"] = 0; // (missing GALLERY_REWRITE_OK -- it's optional)  
$gallery->app->feature["mirror"] = 0; // (missing mirrorSites -- it's optional)  
 
/* Constants */  
$gallery->app->galleryTitle = "Photo Gallery 1";  
$gallery->app->pnmDir = "/usr/bin";  
// optional ImPath missing
$gallery->app->graphics = "NetPBM";  
$gallery->app->highlight_size = "200";  
$gallery->app->zipinfo = "/usr/bin/zipinfo";  
$gallery->app->unzip = "/usr/bin/unzip";  
$gallery->app->use_exif = "/usr/bin/jhead";  
$gallery->app->movieThumbnail = "/home/e-smith/files/ibays/gallery1/html/images/movie.thumb.jpg";  
$gallery->app->albumDir = "/home/e-smith/files/ibays/gallery1/html/albums";  
$gallery->app->tmpDir = "/home/e-smith/files/ibays/gallery1/html/temp";  
$gallery->app->photoAlbumURL = "http://www.######/gallery1";  
$gallery->app->albumDirURL = "http://www.######/gallery1/albums ";  
// optional mirrorSites missing
$gallery->app->showAlbumTree = "no";  
$gallery->app->cacheExif = "yes";  
$gallery->app->jpegImageQuality = "95";  
$gallery->app->timeLimit = "30";  
$gallery->app->debug = "no";  
$gallery->app->use_flock = "yes";  
$gallery->app->expectedExecStatus = "0";  
$gallery->app->sessionVar = "gallery_session";  
$gallery->app->userDir = "/home/e-smith/files/ibays/gallery1/html/albums/.users";  
$gallery->app->pnmtojpeg = "ppmtojpeg";  
 
/* Defaults */  
$gallery->app->default["bordercolor"] = "black";  
$gallery->app->default["border"] = "1";  
$gallery->app->default["font"] = "arial";  
$gallery->app->default["cols"] = "3";  
$gallery->app->default["rows"] = "3";  
$gallery->app->default["thumb_size"] = "150";  
$gallery->app->default["resize_size"] = "640";  
$gallery->app->default["fit_to_window"] = "yes";  
$gallery->app->default["use_fullOnly"] = "yes";  
$gallery->app->default["print_photos"] = "shutterfly";  
$gallery->app->default["returnto"] = "yes";  
$gallery->app->default["showOwners"] = "no";  
$gallery->app->default["albumsPerPage"] = "5";  
$gallery->app->default["showSearchEngine"] = "yes";  
$gallery->app->default["useOriginalFileNames"] = "yes";  
$gallery->app->default["display_clicks"] = "yes";  
$gallery->app->default["public_comments"] = "yes";  


If the other steps and fixing up the errors is required then I will do that, but is it really neccessary to fix them.
Will any of the errors above be causing the images to not appear.
Any suggestions appreciated.

Thanks & regards
Ray Mitchell

Ray Mitchell

Re: Photo gallery instal to an ibay
« Reply #16 on: January 26, 2003, 01:49:06 PM »
Dear Terry & others
I guess I should add that the server is sme 5.5 upd2.
The version of Gallery is 1.3.2

I also ran the Gallery Diagnostics page, it reports:
php v4.1.2 and there is oodles of info displayed.
NetPBM appears OK, all binaries test as OK
ImageMagick reports 3 errors with binaries (I guess as I did not install this)
PHP session configuration reports an id as OK, although when I try to run this test again I receive the following;
ERROR
The requested URL could not be retrieved
--------------------------------------------------------------------------------
While trying to retrieve the URL: [no URL]
The following error was encountered:
Zero Sized Reply
Squid did not receive any data for this request.

What have I done wrong to cause the images not to appear ?
It's not much of a photo gallery the way it is now !!
Any help appreciated
Regards
Ray Mitchell

Ray Mitchell

Re: Photo gallery instal to an ibay
« Reply #17 on: January 27, 2003, 03:09:13 PM »
It is Ok now.
After a bit of reading of FAQ's I ran the setup screen again, changed the album location to something incorrect, then saved, then ran setup again and set the album location to the original correct setting and voila, I can see images in my albums now !
The settings must not have been properly saved the first time ??!!
Thanks anyway
Ray Mitchell

James Douglas

Re: Photo gallery instal to an ibay
« Reply #18 on: January 30, 2003, 12:31:13 AM »
strange Ray bec I have the same problem right now...thought it was somehting I did but Im seeing the same thing, config seemed ok but the images I upload appear as black and cant click to get the full image. everything else seems to work though ie create albums etc.

can u be more specific as to what you did to fix the problem?

Ray Mitchell

Re: Photo gallery instal to an ibay
« Reply #19 on: January 30, 2003, 04:20:33 AM »
Dear James

In the config for Gallery there is a field which specifies the location of the albums.
The location I had there was correct, but I was not seeing the images.
I reran the config and changed the location of the albums from .../ibayname/galley/albums to ..../ibayname/gallery and then saved the config.
Of course I still could not see the images as the album location was now definitely incorrect (deliberately so).

I then reran the config and entered the correct gallery location eg ..../ibayname/gallery/albums (which was what I originally had there) and then saved. After that I was able to see the images. For some reason the location must not have originally registered with the program until I forced it to accept the change.

Hope this helps
Regards
Ray Mitchell