Forums / All Other Contributions/Addons / Gallery Integration with Zencart

Gallery Integration with Zencart

Results 1 to 20 of 145
14 Mar 2008, 22:51
#1
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Posts:
310
Plugin Contributions:
0

Gallery Integration with Zencart

Hi all. this is for those wanting a gallery inside zencart!

Been a while since I was in here. Building a new shop for my wife and she decided she wanted a gallery for saold items.

I first looked at the gallery2 mod. It works, but I always found gallery 2 was a real pain to administer, and my wife could not find her way around it with ease, so I searched for an open source gallery that would integrate with ease, and boy did I strike gold.

PLOGGER I downloaded it, uploaded it into a folder in the shop root called galler, ran the install, placing it inside the same database as the shop (simply for convenience) made a few name changes to the page 2 of the shop (so it reads gallery) and then did the following to display the gallery inside the shop.

Open your_template/common/html_header.php

At the top place(above everything on the page) <?php require("path/to/your/gallery.php"); ?>
Then inside the head of this page add <?php the_gallery_head(); ?>
Then goto the shop admin, define pages editor (in editor mode not plain text) and open the page 2
View it in source mode and remove everything you see their
then insert <?php the_gallery(); ?> save and test

Works perfect

You can change the style of the gallery from within the gallery themes folder.

The only negative is that the admin for the gallery is not integrated, but thats a small price to pay for something so simple to use and even simpler to install.

Hope you find it of some use.
14 Mar 2008, 23:34
#2
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Posts:
310
Plugin Contributions:
0

Re: Gallery Integration with Zencart

ok, so it almost works. Displays fine until you select an album at which point your taken back to the shop home page, or infact the site root.

Probably a way to fix it so will see what can be done.
16 Mar 2008, 08:32
#3
marg avatar

marg

Totally Zenned

Join Date:
Mar 2004
Posts:
642
Plugin Contributions:
0

Re: Gallery Integration with Zencart

How's it going?
16 Mar 2008, 10:12
#4
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Posts:
310
Plugin Contributions:
0

Re: Gallery Integration with Zencart

Its working,! and the stupid thing is I did nothing reallly to get it working

Installed, and it failed to work correctly, in that you can click on the link to page 2 of more info, which contains simply a php call and it opens the page correctly, but then when clicking on the gallery itself it took me back to the main shop page.

I looked and could find no reason for it, so re-uploaded the files again, and now its working

see it here (demo site not yet fully populated.

http://www.breezy.biz - look at the more info
16 Mar 2008, 10:55
#5
marg avatar

marg

Totally Zenned

Join Date:
Mar 2004
Posts:
642
Plugin Contributions:
0

Re: Gallery Integration with Zencart

Very nice... Thanks for the info!! Something new to "play" with!
16 Mar 2008, 11:16
#6
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Posts:
310
Plugin Contributions:
0

Re: Gallery Integration with Zencart

After a little modification now when you click the gallery page link it opens up the default album, so if you dont need to have seperate albums, you can simply define one album and go right to it on the click.

Their is a version on the forum that someone created that includes a lightbox, but I found it to be problematic so decided not to implement it.

Since its theme based modification to it is very easy.
16 Mar 2008, 23:03
#7
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Posts:
2,841
Plugin Contributions:
0

Re: Gallery Integration with Zencart

More info please.
I have tried this and I have the same behavior you originally reported. The page load but when clicking on an album I end up at the store index page
16 Mar 2008, 23:41
#8
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Posts:
310
Plugin Contributions:
0

Re: Gallery Integration with Zencart

Well the good news is I managed to destroy my Zencart so started again, and without re-installing gplogger I now havethe same issue, so if I fix it, Ill let you know in detail everything I did.
17 Mar 2008, 00:34
#9
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Posts:
2,841
Plugin Contributions:
0

Re: Gallery Integration with Zencart

Well to bad. Hopefully you get it working right. I do understand that once you bring up the "gallery" page and hover the collection that you would like to look at, the url actually points to the store index.php, so it doesn't know what to do with the extra level and id in the url, so it defaults to the store main page. I don't have a clue as to how to get around that.
17 Mar 2008, 01:24
#10
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Posts:
2,841
Plugin Contributions:
0

Re: Gallery Integration with Zencart

Ok, its dirty and I don't like it but I can run the Plogger gallery in an iframe on the define page 2 and everything seems to work ok......I did have a problem with comments but a little hard coding of the return url after submiting the comment fixed that.
22 Mar 2008, 15:48
#11
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Posts:
310
Plugin Contributions:
0

Re: Gallery Integration with Zencart

ok all after faffing with ploigger I found a better alternative that works, and also maintains the image aspect ratio which sadly plogged appears not to do.

You can view the gallery in action here

Fully integrated into the site, and all you do is upload the images you want to a folder, it does the rest

http://www.breezy.biz/index.php?main_page=privacy

Jgallery
24 Mar 2008, 15:21
#12
mrtechnique avatar

mrtechnique

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: Gallery Integration with Zencart

I installed jGallery, and it's displaying fine except for a PHP error message on the bottom that says "Notice: Object of class queryFactoryResult could not be converted to int in /xxxx/xxxxx/www/mytemplatename/includes/application_bottom.php on line 16"

Would you be able to help me with this? I have the Zen Cart installed on a Linux template.
24 Mar 2008, 15:31
#13
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Posts:
310
Plugin Contributions:
0

Re: Gallery Integration with Zencart

Well, looking at application bottom, it looks like possibly you have Gzip enabled in admin, where as I do not have it enabled since reading that it can have adverse effects on speed.

If you have it on, try turning it off again.

I think I will try and package up what I have and make it an addon.

Will be the first time I have done it and its an easy one to do.
24 Mar 2008, 15:56
#14
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Posts:
310
Plugin Contributions:
0

Re: Gallery Integration with Zencart

ok, Since there is no actual file integration involved with the use of Jgallery I have done the following in regards my version.

Base Jgallery as it was with default template
Included the modified one I have, removed all non required lines, buttons etc, so it displays as mine does.
Packaged it all up into a zip file with some simple instructions on how to make it work.

I have added it to the contribs, not sure if its what is done, not done one berofe, but as a gallry in my case its perfect.

I use FCKeditor and added an ajaxfilemanager mod to it that gives me great file management capabilities within the admin when editing a page, so anyone in admin is able to add, remove images to and from any location on the server root.
24 Mar 2008, 15:59
#15
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Posts:
310
Plugin Contributions:
0

Re: Gallery Integration with Zencart

Gzip on seems to have no effect on my gallery, so check your application bottom, mine looks like this

includes/application_bottom.php

if (!defined('IS_ADMIN_FLAG')) {
  die('Illegal Access');
}
// close session (store variables)
session_write_close();

// breaks things
// pconnect disabled (safety switch)
// $db->close();

if ( (GZIP_LEVEL == '1') && ($ext_zlib_loaded == true) && ($ini_zlib_output_compression < 1) ) {
  if ( (PHP_VERSION < '4.0.4') && (PHP_VERSION >= '4') ) {
    zen_gzip_output(GZIP_LEVEL);
  }
}
?>
24 Mar 2008, 16:01
#16
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Posts:
310
Plugin Contributions:
0

Re: Gallery Integration with Zencart

mrtechnique:

I installed jGallery, and it's displaying fine except for a PHP error message on the bottom that says "Notice: Object of class queryFactoryResult could not be converted to int in /xxxx/xxxxx/www/mytemplatename/includes/application_bottom.php on line 16"

Would you be able to help me with this? I have the Zen Cart installed on a Linux template.


This does not make alot of sense, since application bottom would not be in your templates directory, least its not in mine anyway

Surely that should

xxxx/xxxxx/www/includes/application_bottom.php

What have you got in your config.inc.php file for the gallery, and what have you adeded as the link to the gallery, which should look like this.

<?php  
$G_JGALL['inc_path'] = 'jGallery/'; 
include($G_JGALL['inc_path'] . 'index.php');  
?>
25 Mar 2008, 14:03
#17
mrtechnique avatar

mrtechnique

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: Gallery Integration with Zencart

This is what I have in my config.inc.php file:

[PHP]<?php
/*
jGallery 1.3.3
------------------------------------------------------------------

WARNING

Changing some of these values may couse errors
Read carefully what settings you are about to change


Support forums: http://portal.kooijman-design.nl/viewforum.php?f=1
*/






// -----------------------------------------------------------------------------------
// General configuration section
// -----------------------------------------------------------------------------------


// Set the theme for jGallery (must be in 'themes/'):
$C_JGALL['gall_theme'] = 'default';


// Set the dir which contains your photoalbums:
$C_JGALL['gall_dir'] = 'albums/';


// Set weither you want to link to original images (must be 'y' for yes):
$C_JGALL['gall_link2source'] = 'y';


// Set you like to sort images in alphabetic order (must be 'y' for yes):
// If not 'y' the default is in order of last uploaded.
$C_JGALL['sort_alphabetic'] = 'y';


// --> END General configuration section
// -----------------------------------------------------------------------------------







// -----------------------------------------------------------------------------------
// Layout configuration section
// -----------------------------------------------------------------------------------


// Set the number of thumbnails on a row (must be numeric):
$C_JGALL['gall_cols'] = '5';


// Set the number of rows on a page (must be numeric):
$C_JGALL['gall_rows'] = '3';


// Set the max-size (width or height) for thumbnails (must be numeric):
$C_JGALL['gall_thumb_size'] = '100';


// Set the spacing between the thumbs (must be numeric, can be 0):
$C_JGALL['gall_spacing'] = '10';


// Set max size for vieuwing images (must be numeric or empty)
// By default images are sized to fill the table
$C_JGALL['gall_max_view_img_size'] = '0';


// Set 'y' if you want to show filenames under thumbs:
$C_JGALL['gall_show_filenames'] = 'y';


// Set 'y' if you want to show info on bottom of gallery:
$C_JGALL['gall_show_info'] = 'y';


// --> END Layout configuration section
// -----------------------------------------------------------------------------------


// --> END
?>[/PHP]


This is what I have in my define page editor for Page 2.
[PHP]
<?php
$G_JGALL['inc_path'] = 'jGallery/';
include($G_JGALL['inc_path'] . 'index.php');
?>
[/PHP]

I talked with my hosting company and I know they momentarily changed the code in my .htaccess file momentarily to

AddHandler application/x-httpd-php4 .php

and it worked, but my hosting company is about to discontinue support for PHP 4 pretty soon and that would cause a problem. I'm stumped.
25 Mar 2008, 15:45
#18
mrtechnique avatar

mrtechnique

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: Gallery Integration with Zencart

Fixed the problem. I just went into the application_bottom.php file and inserted the following code:

[PHP]error_reporting(E_ERROR | E_WARNING | E_PARSE);[/PHP]

That took care of it.
04 Apr 2008, 01:19
#19
cache529 avatar

cache529

New Zenner

Join Date:
Mar 2008
Posts:
14
Plugin Contributions:
0

Re: Gallery Integration with Zencart

not sure why it's not working right off the bat...
I had interference with my dropdown menu (also where my link to gallery is located)

entered the above code in places where it was showing error and it worked (no more error)....so far...:smile:
11 Apr 2008, 18:47
#20
atc avatar

atc

New Zenner

Join Date:
Jul 2007
Posts:
66
Plugin Contributions:
1

Re: Gallery Integration with Zencart

Does anyone know how to fix this problem in Jgallery
When someone is loged in then goes to Jgallery it logs them off.
What would we need to add to fix this?