-
ZX Gallery [Support Thread]
This module allows you to have a user-friendly gallery page with multiple layout options to choose from, and best part is - everything is controlled from the admin panel, including uploading and deleting gallery images. If you want, you can link any image to your products so you can use the gallery as a showcase...
I'm not sure how much support I'll be able to provide for this plugin, so if anyone wants to help with that part, please do.
-
Re: ZX Gallery [Support Thread]
And it's been approved. Download available here.
-
Re: ZX Gallery [Support Thread]
Un-Install SQL? I should have looked before I started.
It's just not right for our application but that's a "Me" issue, not a plugin issue.
-
Re: ZX Gallery [Support Thread]
Whoops, will include in next release.
Code:
SELECT @ZXconfig:=configuration_group_id
FROM configuration_group
WHERE configuration_group_title= 'ZX Gallery'
LIMIT 1;
DELETE FROM configuration WHERE configuration_group_id = @ZXconfig AND configuration_group_id != 0;
DELETE FROM configuration_group WHERE configuration_group_id = @ZXconfig AND configuration_group_id != 0;
DELETE FROM admin_pages WHERE page_key = 'configZXGallery';
DELETE FROM admin_pages WHERE page_key = 'toolsZXGallery';
DROP TABLE `zx_gallery`;
-
Re: ZX Gallery [Support Thread]
-
Re: ZX Gallery [Support Thread]
Hello,
Just installed the mods. When I go to the gallery page, I am getting the following error: Unite Gallery Error: The gallery can run from jquery 1.8 You have jQuery 1.7.1 Please update your jQuery library.
I am not a programming expert but I believe 1.7.1 is used by zx_slideshow on my main page.
How can I make this work? Any help would be great.
Thank you
-
Re: ZX Gallery [Support Thread]
Can't tell for sure since you didn't provide a URL, but the latest version of ZX Slideshow doesn't use the includes/templates/YOUR_TEMPLATE/jscript/jscript_jquery-1.7.1.min.js since that's now an obsolete version of jQuery. You should be loading a newer version of jQuery, which is normally done in html_header.php before any other js files are loaded.
Keep in mind the following MIGHT have effect on your site so make sure you test it thoroughly:
1) delete includes/templates/YOUR_TEMPLATE/jscript/jscript_jquery-1.7.1.min.js
2) edit includes/templates/YOUR_TEMPLATE/common/html_header.php and find
Code:
$directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
add before:
Code:
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="https://code.jquery.com/jquery-3.4.0.min.js" integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg=" crossorigin="anonymous"%3E%3C/script%3E'));</script>
<?php if (file_exists(DIR_WS_TEMPLATE . "jscript/jquery.min.js")) { ?>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
<?php } ?>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js','template_default', $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
The end result should look something like:
Code:
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="https://code.jquery.com/jquery-3.4.0.min.js" integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg=" crossorigin="anonymous"%3E%3C/script%3E'));</script>
<?php if (file_exists(DIR_WS_TEMPLATE . "jscript/jquery.min.js")) { ?>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
<?php } ?>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js','template_default', $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
<?php
/**
* load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
foreach($directory_array as $key => $value) {
echo '<script type="text/javascript" src="' . $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value . '"></script>'."\n";
}
-
Re: ZX Gallery [Support Thread]
Quote:
Originally Posted by
balihr
Can't tell for sure since you didn't provide a URL, but the latest version of ZX Slideshow doesn't use the includes/templates/YOUR_TEMPLATE/jscript/jscript_jquery-1.7.1.min.js since that's now an obsolete version of jQuery. You should be loading a newer version of jQuery, which is normally done in html_header.php before any other js files are loaded.
Keep in mind the following MIGHT have effect on your site so make sure you test it thoroughly:
1) delete includes/templates/YOUR_TEMPLATE/jscript/jscript_jquery-1.7.1.min.js
2) edit includes/templates/YOUR_TEMPLATE/common/html_header.php and find
Code:
$directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
add before:
Code:
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="https://code.jquery.com/jquery-3.4.0.min.js" integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg=" crossorigin="anonymous"%3E%3C/script%3E'));</script>
<?php if (file_exists(DIR_WS_TEMPLATE . "jscript/jquery.min.js")) { ?>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
<?php } ?>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js','template_default', $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
The end result should look something like:
Code:
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="https://code.jquery.com/jquery-3.4.0.min.js" integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg=" crossorigin="anonymous"%3E%3C/script%3E'));</script>
<?php if (file_exists(DIR_WS_TEMPLATE . "jscript/jquery.min.js")) { ?>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
<?php } ?>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js','template_default', $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
<?php
/**
* load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
foreach($directory_array as $key => $value) {
echo '<script type="text/javascript" src="' . $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value . '"></script>'."\n";
}
Thank you and sorry about the URL. I thought it was there.
The site is at www.royal-fleur.com
I will make the mods on a test site and report back. I may have some issue with datepicker. it is jquery based and using latest version so not sure how it will react.
thank you for your help
-
Re: ZX Gallery [Support Thread]
Code:
/** CDN for jQuery core **/
?>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="https://code.jquery.com/jquery-3.4.0.min.js" integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg=" crossorigin="anonymous"%3E%3C/script%3E'));</script>
<?php if (file_exists(DIR_WS_TEMPLATE . "jscript/jquery.min.js")) { ?>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
<?php } ?>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js','template_default', $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
<?php
/**
* load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
foreach($directory_array as $key => $value) {
echo '<script type="text/javascript" src="' . $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value . '"></script>'."\n";
}
here is the code I have in html_header. Seems like the added/provided code is already there ( highlighted). However you mentioned to add it before.
Should I move the code up?
-
Re: ZX Gallery [Support Thread]
Quote:
Originally Posted by
nicksab
here is the code I have in html_header. Seems like the added/provided code is already there ( highlighted). However you mentioned to add it before.
Should I move the code up?
No, just remove the one file mentioned above and update ZX Slideshow to the latest version (only one file affected). That should do it.
-
Re: ZX Gallery [Support Thread]
Quote:
Originally Posted by
balihr
No, just remove the one file mentioned above and update
ZX Slideshow to the latest version (only one file affected). That should do it.
Thank you
-
Re: ZX Gallery [Support Thread]
Hi I have no gallery on my page. ( yes the JS file) but i have no idea how to solve it.
Im using the standard responsive classic.
https://www.cameleonpaint.shop/index...n_page=gallery
any way you can help me?
-
Re: ZX Gallery [Support Thread]
If you look at your page source, all the photos have an inline style of display:none. It's doing exactly what it's told.:(
-
Re: ZX Gallery [Support Thread]
Quote:
Originally Posted by
dbltoe
If you look at your page source, all the photos have an inline style of display:none. It's doing exactly what it's told.:(
i saw that! but have no idea how to change it! do you know? could you point me?
-
Re: ZX Gallery [Support Thread]
It has to be in one of two places. Either hard-coded (which I doubt) or in a setting somewhere in the mod, mod configuration, or image insertion portion of the mod.
-
Re: ZX Gallery [Support Thread]
While I'm not familiar with the mod, sometimes javascript-intense mods will have the default HTML output a display:none and then use the javascript code to selectively override that to enable display of things that the javascript code is managing.
So perhaps there's nothing wrong with the HTML at all, but rather the js code is failing to run.
-
Re: ZX Gallery [Support Thread]
Quote:
Originally Posted by
DrByte
While I'm not familiar with the mod, sometimes javascript-intense mods will have the default HTML output a display:none and then use the javascript code to selectively override that to enable display of things that the javascript code is managing.
So perhaps there's nothing wrong with the HTML at all, but rather the js code is failing to run.
I think this is the case also. i found the display non in the file, changed it to nested ( and all sort more ) but still can't get shown as the developper ment :D
so yes it must be a javascript thing, but after a whole night searching... still no gallery as it is supposed to :D :D
I love 1.57. but i sure hope the people behind the plugins are having fun now updating them :D
i see in the files, the sql is also missing some things :D
( as said, i'm a true zencart lover, but am lost in codes )
thanks for the input!!!!
-
Re: ZX Gallery [Support Thread]
Is this mod compatible with 1.5.7c?
-
Re: ZX Gallery [Support Thread]
Quote:
Originally Posted by
greybeard_it_guy
Is this mod compatible with 1.5.7c?
Yes, it is.
-
Re: ZX Gallery [Support Thread]
Please direct me to the answer to: "How do I include your /Gallery/files/.. to my images/dirs/ path to use as a banner_manager and Or, when adding a product image: "use an existing image file from server, filename:" resource?
-
Re: ZX Gallery [Support Thread]
Quote:
Originally Posted by
charmlt
Please direct me to the answer to: "How do I include your /Gallery/files/.. to my images/dirs/ path to use as a banner_manager and Or, when adding a product image: "use an existing image file from server, filename:" resource?
This is not how this plugin was intended to be used so it would require quite some modification to the code to get the desired result. Sorry, but that's way beyond the scope of this thread.
-
Re: ZX Gallery [Support Thread]
Please excuse my limited understanding of the Plug-in but, what is its purpose? Are we supposed to drag the files from the server directory "gallery" and place them into the "image" folders? I use Zen Cart as a shopping cart only.
-
Re: ZX Gallery [Support Thread]
Quote:
Originally Posted by
charmlt
Please excuse my limited understanding of the Plug-in but, what is its purpose? Are we supposed to drag the files from the server directory "gallery" and place them into the "image" folders? I use Zen Cart as a shopping cart only.
No worries, happy to explain.
You're supposed to use it as a standalone page where you can display any images you want. The idea is that you have the images on your computer and then you can upload it from your computer to the server through admin using the simple admin interface.
You probably could manually copy the images into the /gallery/files/ directory if those images are on the server, but if you do that, thumbnails won't be created automatically.
You can check the demo site to see how it works.
-
Re: ZX Gallery [Support Thread]
I see the advantage of linking "thumbnail" and "Medium" dirs to an "everchanging one-of-a-kind" shopping cart site. I could catalog one-off, product lines ie; artworks, and hand-made items. Otherwise, I would just save server space and bandwidth by linking to Google Photos like so... https://photos.app.goo.gl/dbzYtzvzSRnNUaRt6
-
Re: ZX Gallery [Support Thread]
Agreed, but google photos or similar are not controlled from the admin - you need to login elsewhere to add/edit/delete photos, and you need to find a way to embed it to a new page on your site. Embedding then might cause other problems, especially with responsive design etc etc.
The idea with this plugin is to have it all "centralized" and all under the same admin. As for bandwidth and server space, well... You're not going to have hundreds (or thousands) of photos in your gallery - I mean who would want to go through all of it - so we're talking about maybe 5 MB max in the gallery. I doubt that's gonna have a major impact on anyone - even if you're on some old-style hosting account that gives you 1-2 GB of disk space (but keep in mind most of the decent hosts nowadays don't really impose low limits on disk space). Same goes for bandwidth which is nowadays mostly unlimited...
But anyway... Everyone can decide for themselves and can probably decide which option is best for *their* business model. This plugin is just one of the many ways you can accomplish something, and that's the beauty of Zen Cart - you can do whatever you want. :smile: