If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / ZX Gallery [Support Thread]

ZX Gallery [Support Thread]

Started by balihr on 12 May 2020, 6:23 PM · Views: 4,380

Results 1 to 20 of 25
12 May 2020, 6:23 PM
#1
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,817
Plugin Contributions:
24

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.

My site - Pro ZC Help
My portfolio | My plugins

23 May 2020, 11:36 AM
#2
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,817
Plugin Contributions:
24

Re: ZX Gallery [Support Thread]

And it's been approved. Download available here.

My site - Pro ZC Help
My portfolio | My plugins

23 May 2020, 10:23 PM
#3
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

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.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

23 May 2020, 10:49 PM
#4
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,817
Plugin Contributions:
24

Re: ZX Gallery [Support Thread]

Whoops, will include in next release.

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`;

My site - Pro ZC Help
My portfolio | My plugins

23 May 2020, 11:46 PM
#5
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: ZX Gallery [Support Thread]

Thank you.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

1 Jun 2020, 1:02 AM
#6
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

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

1 Jun 2020, 10:09 AM
#7
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,817
Plugin Contributions:
24

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 ```
    $directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
add before:
<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:
<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"; } ```

My site - Pro ZC Help
My portfolio | My plugins

1 Jun 2020, 10:15 PM
#8
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: ZX Gallery [Support Thread]

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 ```
    $directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
> add before:
> ```
<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:

<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 <https://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
2 Jun 2020, 5:32 AM
#9
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: ZX Gallery [Support Thread]

/** 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?

2 Jun 2020, 9:09 AM
#10
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,817
Plugin Contributions:
24

Re: ZX Gallery [Support Thread]

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.

My site - Pro ZC Help
My portfolio | My plugins

2 Jun 2020, 9:45 PM
#11
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: ZX Gallery [Support Thread]

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

20 Sep 2020, 4:05 PM
#12
kernheimer avatar

kernheimer

Zen Follower

Join Date:
Jul 2009
Posts:
126
Plugin Contributions:
0

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.php?main_page=gallery
any way you can help me?

20 Sep 2020, 5:33 PM
#13
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

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.:(

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

20 Sep 2020, 7:55 PM
#14
kernheimer avatar

kernheimer

Zen Follower

Join Date:
Jul 2009
Posts:
126
Plugin Contributions:
0

Re: ZX Gallery [Support Thread]

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?

21 Sep 2020, 12:12 AM
#15
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

21 Sep 2020, 1:10 AM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Sep 2020, 9:38 AM
#17
kernheimer avatar

kernheimer

Zen Follower

Join Date:
Jul 2009
Posts:
126
Plugin Contributions:
0

Re: ZX Gallery [Support Thread]

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!!!!

16 May 2021, 8:28 PM
#18
greybeard_it_guy avatar

greybeard_it_guy

New Zenner

Join Date:
Mar 2021
Location:
So Cal
Posts:
16
Plugin Contributions:
0

Re: ZX Gallery [Support Thread]

Is this mod compatible with 1.5.7c?

17 May 2021, 4:11 PM
#19
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,817
Plugin Contributions:
24

Re: ZX Gallery [Support Thread]

greybeard_it_guy:

Is this mod compatible with 1.5.7c?

Yes, it is.

My site - Pro ZC Help
My portfolio | My plugins

23 Nov 2021, 4:10 PM
#20
charmlt avatar

charmlt

New Zenner

Join Date:
Mar 2005
Location:
Earth
Posts:
83
Plugin Contributions:
0

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?