Zen Cart Logo
Forums / All Other Contributions/Addons / looking for a way to do a photo gallery

looking for a way to do a photo gallery

Views: 1,398

Results 1 to 11 of 11
5 Mar 2013, 1:41 AM
#1
threecreeks avatar

threecreeks

New Zenner

Join Date:
Jan 2013
Posts:
15
Plugin Contributions:
0

looking for a way to do a photo gallery

Hi,

Been looking in the plugins, searching google, but I have had no luck. My customer wants to be able to have a page that is an index to a simple photo gallery. She would like to be able to upload a pic to the gallery and enter a short description from the admin panel.

Based on the number of times I have seen this topic around on the web, has anyone come out with a simple module for this? Needs to work with v1.5.1 and I am only a novice PHP programmer.

Thanks,

ThreeCreeks

5 Mar 2013, 10:56 PM
#3
threecreeks avatar

threecreeks

New Zenner

Join Date:
Jan 2013
Posts:
15
Plugin Contributions:
0

Re: looking for a way to do a photo gallery

Thanks for replying. I see that this module works with v1.3.7 but I need something that will work with 1.5.1.

6 Mar 2013, 1:37 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: looking for a way to do a photo gallery

It just has not been upgraded/dated
Which means that it MAY work

6 Mar 2013, 11:19 PM
#5
threecreeks avatar

threecreeks

New Zenner

Join Date:
Jan 2013
Posts:
15
Plugin Contributions:
0

Re: looking for a way to do a photo gallery

No such luck. The folder structure is completely different and I am only a novice when it comes to PHP programming. Anyone else have any ideas?

6 Mar 2013, 11:55 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: looking for a way to do a photo gallery

No such luck. The folder structure is completely different
It is in ZenCart folder structure

8 Mar 2013, 7:37 AM
#7
denniszc avatar

denniszc

New Zenner

Join Date:
Mar 2013
Posts:
95
Plugin Contributions:
0

Re: looking for a way to do a photo gallery

kobra:

It is in ZenCart folder structure

i've tried installing it, the folder structure is indeed similar, but i couldnt add the gallery toolbar in the admin-tools section, any ideas how i can do this?

8 Mar 2013, 5:29 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: looking for a way to do a photo gallery

Many mods that add new admin elements need to have their admin files reworked for v1.5.x. Instead of the old /boxes/ subfolder (or something like that) new pages need to be "registered" in admin. There are tutorials and forum threads about this process.
http://www.zen-cart.com/showthread.php?199251-Adding-a-menu-item-to-the-v1-5-0-admin

11 Mar 2013, 1:13 AM
#9
denniszc avatar

denniszc

New Zenner

Join Date:
Mar 2013
Posts:
95
Plugin Contributions:
0

Re: looking for a way to do a photo gallery

gjh42:

Many mods that add new admin elements need to have their admin files reworked for v1.5.x. Instead of the old /boxes/ subfolder (or something like that) new pages need to be "registered" in admin. There are tutorials and forum threads about this process.
http://www.zen-cart.com/showthread.php?199251-Adding-a-menu-item-to-the-v1-5-0-admin

thanks, i manage to add the tools to my admin, but when i tried to access it, it gave me this error:
*
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.*

any ideas? this is what i added to /YOUR_ADMIN/includes/functions/extra_functions/init_new_tool.php:

<?php

if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
} 

//----
// If the installation supports admin-page registration (i.e. v1.5.0 and later), then
// register the New Tools tool into the admin menu structure.
//
if (function_exists('zen_register_admin_page')) {
  if (!zen_page_key_exists('toolsGallery')) {
    zen_register_admin_page('toolsGallery', 'BOX_TOOLS_GALLERY', 'FILENAME_GALLERY','' , 'tools', 'Y', 20);
  }    
}

?>
11 Mar 2013, 2:04 AM
#10
denniszc avatar

denniszc

New Zenner

Join Date:
Mar 2013
Posts:
95
Plugin Contributions:
0

Re: looking for a way to do a photo gallery

denniszc:

thanks, i manage to add the tools to my admin, but when i tried to access it, it gave me this error:
*
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.*

any ideas? this is what i added to /YOUR_ADMIN/includes/functions/extra_functions/init_new_tool.php:

<?php if (!defined('IS_ADMIN_FLAG')) { die('Illegal Access'); } //---- // If the installation supports admin-page registration (i.e. v1.5.0 and later), then // register the New Tools tool into the admin menu structure. // if (function_exists('zen_register_admin_page')) { if (!zen_page_key_exists('toolsGallery')) { zen_register_admin_page('toolsGallery', 'BOX_TOOLS_GALLERY', 'FILENAME_GALLERY','' , 'tools', 'Y', 20); } } ?>

okay, manage to fix the error, it is working now, but i still couldnt add a gallery, when i add a new designer, it just brings me back to the main admin page and did not add any new designer..
11 Mar 2013, 6:59 AM
#11
denniszc avatar

denniszc

New Zenner

Join Date:
Mar 2013
Posts:
95
Plugin Contributions:
0

Re: looking for a way to do a photo gallery

okay i narrowed the problem down to the php code not updating the table in the database, if i manually insert values inside the database, the gallery worked flawlessly, the problem is just when i use the admin gallery tools to add a new designer and a new artwork, the database is just not updated.. is this a problem with the code perhaps?