Forums / All Other Contributions/Addons / ZX Slideshow support thread

ZX Slideshow support thread

Views: 295,213

Results 661 to 680 of 767
1 May 2020, 4:34 PM
#661
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

ZX Slideshow support thread

Question.

We have the code for the slider in the define main page, that way if we need to add other promotions below it, the task is easy to accomplish. The define main page is pulled from the mytemplate/common/tpl_main_page.php which is wrapped around the statement if($this_is_home_page) to make it work only on the front page. So far and for years we thought that was it, of course until today.

I noticed an URL pointing to a product page in a weird way byvalenti.com/index.php?products_id=39 (it should be byvalenti.com/index.php?main_page=product_info&cPath=8_42&products_id=39) and when I checked it out I noticed the slider, which shouldn't have displayed because that's not the main page, does display.

Is there any other way to force the slider from not showing when visitors "play" with my website in this manner?

Thank you for the help! =)

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

1 May 2020, 11:25 PM
#662
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

This is not related to ZX Slideshow and to be honest, I'm not sure how to resolve it. It's actually a bug in Zen Cart, I'm just reporting it and we should wait for someone smarter than me to figure it out. Smarter than me... Ha, it's not like I placed the bar high... :smile:

My site - Pro ZC Help
My portfolio | My plugins

2 May 2020, 3:21 PM
#664
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: ZX Slideshow support thread

balihr:

This is not related to ZX Slideshow and to be honest, I'm not sure how to resolve it. It's actually a bug in Zen Cart, I'm just reporting it and we should wait for someone smarter than me to figure it out. Smarter than me... Ha, it's not like I placed the bar high... :smile:

Don't sell yourself short! You're awesome! Thank you! I didn't even think it could be a ZC bug. :smile: On my way to check the link out. Have an awesome Saturday!

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

5 May 2020, 9:42 PM
#665
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: ZX Slideshow support thread

I find that zx slideshow doesn't display at all if the version of jquery loaded is 3.0 or newer.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

5 May 2020, 10:37 PM
#666
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: ZX Slideshow support thread

What error do you see in the javascript console?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

6 May 2020, 9:26 AM
#667
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

Well... Luckily, you can't see me blushing here... We've mentioned this before and I just blamed Nivo being old and no longer maintained and didn't look into it. This was primarily because I had planned a brand new version of the plugin based on a different slider, but never got to it.
I just tried it on a vanilla 1.5.6c and one look at the console and the clue was staring at me... :smile:

At the time the plugin was built, this was okay, but things have changed and jQuery has deprecated some functions.

jQuery(window).load(function() {

This is old and no longer works. So, we need to use the new version:

jQuery(window).on("load",function(){

This is from includes/templates/YOUR_TEMPLATE/templates/zx_slideshow.php line 4.

Plugin update submitted and awaiting approval. In the meantime, you can just replace that one line. :smile:

My site - Pro ZC Help
My portfolio | My plugins

6 May 2020, 10:27 AM
#668
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: ZX Slideshow support thread

Approved with requests.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

24 Dec 2020, 7:32 PM
#669
fuzztrip avatar

fuzztrip

New Zenner

Join Date:
Jul 2020
Location:
USA
Posts:
88
Plugin Contributions:
0

Re: ZX Slideshow support thread

Is there a way to resize the slideshow? I've checked config/zxslideshow and a bunch other places I thought it might be, but no luck. Right now it is too big

1.5.7.
fuzztrip.com

25 Dec 2020, 5:11 PM
#670
fuzztrip avatar

fuzztrip

New Zenner

Join Date:
Jul 2020
Location:
USA
Posts:
88
Plugin Contributions:
0

Re: ZX Slideshow support thread

balihr:

I have just submitted Zen Cart Slideshow module to the contributions section, hopefully it will get approved soon.

It's based on the popular Nivo Slider which allows you to create your own slideshow on the main page, uses jQuery and is completely controlled from the admin - this means no more messing with code or FTP, everything is done from the admin section. It utilizes the native Banner Management system to give you full control.

You can add up to 10 slides, but can also make your slideshow even more interesting because you have the ability to add multiple images for one banner position so each time a random image is loaded.

There are 16 slide effects to choose from. You can also adjust how long each slide will be displayed as well as if it will pause when hovered.

Here are some screenshots:
Attachment 10436Attachment 10437

I'll do my best to provide support for the module, but can't guarantee anything.

Looking at this initial post I can see that I do not have the options to change the slideshow height or width.
Attachment 19348 Attachment 19349

I uninstalled, then reinstalled with the same result. Thanks for any help.

25 Dec 2020, 7:17 PM
#671
fuzztrip avatar

fuzztrip

New Zenner

Join Date:
Jul 2020
Location:
USA
Posts:
88
Plugin Contributions:
0

Re: ZX Slideshow support thread

balihr:

No, it doesn't display captions - I removed it because most people didn't want it and it can no longer be disabled from the admin (the new version of Nivo Slider controls it only from CSS, no more control from javascript).

If you want to enable captions, edit includes/functions/extra_functions/zx_banner.php
Find line 68:

$banner_string = '<img src="' . DIR_WS_IMAGES . $banner->fields['banners_image'] . '" alt="'. $banner->fields['banners_title'].'">';

> and replace with
> ```
$banner_string = '<img src="' . DIR_WS_IMAGES . $banner->fields['banners_image'] . '" alt="'. $banner->fields['banners_title'].'" title="'. $banner->fields['banners_title'].'">';

Find line 71:

$banner_string = '<a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" target="_blank">' . '<img src="' . DIR_WS_IMAGES . $banner->fields['banners_image'] . '" alt="'. $banner->fields['banners_title'].'"></a>';

> and replace with
> ```
$banner_string = '<a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" target="_blank">' . '<img src="' . DIR_WS_IMAGES . $banner->fields['banners_image'] . '" alt="'. $banner->fields['banners_title'].'" title="'. $banner->fields['banners_title'].'" ></a>';

Find line 73:

$banner_string = '<a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '">' . '<img src="' . DIR_WS_IMAGES . $banner->fields['banners_image'] . '" alt="'. $banner->fields['banners_title'].'"></a>';

> and replace with
> ```
$banner_string = '<a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '">' . '<img src="' . DIR_WS_IMAGES . $banner->fields['banners_image'] . '" alt="'. $banner->fields['banners_title'].'" title="'. $banner->fields['banners_title'].'"></a>';

You might need to play with CSS after doing this.

Regards,
Leonard

I added captions back to this using the above post. This works only when the link is opened in a new window. If you opt for same window the caption does not show. How would I change that?

27 Dec 2020, 11:24 AM
#672
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

Fuzztrip:

Is there a way to resize the slideshow? I've checked config/zxslideshow and a bunch other places I thought it might be, but no luck. Right now it is too big

1.5.7.
fuzztrip.com

I'm pretty sure this has been asked and answered before, but yeah, it's 60+ pages so it's quite hard to find it. The width/height settings have been removed from the initial release when the slider was made responsive (version 2.0).
Since your site is in maintenance mode, I can't see how you configured it, but if you need to limit the slider's width, you need to add a parent container and set it's width (or max-width) in css.

My site - Pro ZC Help
My portfolio | My plugins

27 Dec 2020, 11:28 AM
#673
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

Fuzztrip:

I added captions back to this using the above post. This works only when the link is opened in a new window. If you opt for same window the caption does not show. How would I change that?

I don't think you followed the instruction properly. I just added it to the demo site and "slide 1" and "slide 2" are set to open in the same window, and "slide 3" opens in a new window - all 3 slides show captions just fine. Are you sure you changed all 3 lines in the zx_banner.php file?

My site - Pro ZC Help
My portfolio | My plugins

27 Dec 2020, 4:20 PM
#674
fuzztrip avatar

fuzztrip

New Zenner

Join Date:
Jul 2020
Location:
USA
Posts:
88
Plugin Contributions:
0

Re: ZX Slideshow support thread

balihr:

I'm pretty sure this has been asked and answered before, but yeah, it's 60+ pages so it's quite hard to find it.

Yes, I must have missed it. Thanks for the info!

27 Dec 2020, 4:21 PM
#675
fuzztrip avatar

fuzztrip

New Zenner

Join Date:
Jul 2020
Location:
USA
Posts:
88
Plugin Contributions:
0

Re: ZX Slideshow support thread

balihr:

I don't think you followed the instruction properly. I just added it to the demo site and "slide 1" and "slide 2" are set to open in the same window, and "slide 3" opens in a new window - all 3 slides show captions just fine. Are you sure you changed all 3 lines in the zx_banner.php file?

I somehow missed the third line, or didn't save it or something. Works great!! Thanks!

27 Apr 2021, 2:58 PM
#676
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: ZX Slideshow support thread

balihr:

I have just submitted Zen Cart Slideshow module to the contributions section, hopefully it will get approved soon.

It's based on the popular Nivo Slider which allows you to create your own slideshow on the main page, uses jQuery and is completely controlled from the admin - this means no more messing with code or FTP, everything is done from the admin section. It utilizes the native Banner Management system to give you full control.

You can add up to 10 slides, but can also make your slideshow even more interesting because you have the ability to add multiple images for one banner position so each time a random image is loaded.

There are 16 slide effects to choose from. You can also adjust how long each slide will be displayed as well as if it will pause when hovered.

Here are some screenshots:
Attachment 10436Attachment 10437

I'll do my best to provide support for the module, but can't guarantee anything.

Hi! This looks like a cool option! I see it’s up to version 1.5.6, but I’m wondering if anyone tried this on 1.5.7c? I am also using the ZCA Bootstrap template. Any idea if it would work?

28 Apr 2021, 8:48 AM
#677
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

gizmo_girl:

Hi! This looks like a cool option! I see it’s up to version 1.5.6, but I’m wondering if anyone tried this on 1.5.7c? I am also using the ZCA Bootstrap template. Any idea if it would work?

It works with 1.5.7 without any issues. I'm just not sure if the install is straightforward with that template, although it probably is.

My site - Pro ZC Help
My portfolio | My plugins

3 May 2021, 1:05 AM
#678
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: ZX Slideshow support thread

Hi Leonard - can this plugin (an indeed your ZX Slideshow) be utilized using admin/define pages editor/define_main_page by placing code where required between text paragraphs? (example, templates by Picaflor Azul (Anne) like westminster_new have the code in this file or at least 'used to') - so just wondering?

cheers, Mike

3 May 2021, 10:32 AM
#679
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

shags38:

Hi Leonard - can this plugin (an indeed your ZX Slideshow) be utilized using admin/define pages editor/define_main_page by placing code where required between text paragraphs? (example, templates by Picaflor Azul (Anne) like westminster_new have the code in this file or at least 'used to') - so just wondering?

cheers, Mike

Hey Mike.

Sure, the relevant code could be added/moved to a define page, but the whole idea behind ZX Slideshow was to avoid editing any code and get a slider where you can easily upload an image from admin and use simple admin switches to make changes. Most people are not comfortable editing code and manually uploading images via FTP. And there's also CKeditor that might break some code during cleanup or formatting and you end up with a broken slider. Those who insist using it from a define page, I believe are proficient enough to make the required changes themselves so posting the required changes here might only confuse those who aren't and cause headaches down the road...

My site - Pro ZC Help
My portfolio | My plugins

3 May 2021, 10:09 PM
#680
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: ZX Slideshow support thread

balihr:

Hey Mike.

Sure, the relevant code could be added/moved to a define page, but the whole idea behind ZX Slideshow was to avoid editing any code and get a slider where you can easily upload an image from admin and use simple admin switches to make changes. Most people are not comfortable editing code and manually uploading images via FTP. And there's also CKeditor that might break some code during cleanup or formatting and you end up with a broken slider. Those who insist using it from a define page, I believe are proficient enough to make the required changes themselves so posting the required changes here might only confuse those who aren't and cause headaches down the road...

Hi Leonard - many thanks for your quick response. I understand your goals with this plugin, clean, crisp, simple to use, and so I will likely use it as it is rather than mess with it. Oh, and thanks for the great plugins.

cheers, Mike