Zen Cart Logo
Forums / All Other Contributions/Addons / Ultimate Fade-In Slidehow Support thread

Ultimate Fade-In Slidehow Support thread

Views: 30,816

Results 61 to 80 of 159
25 Mar 2012, 2:32 PM
#61
coopco avatar

coopco

New Zenner

Join Date:
Jun 2006
Location:
Sea Lake, Australia
Posts:
81
Plugin Contributions:
0

Ultimate Fade-In Slidehow Support thread

My bad!

If you need help writing the instructions, I can help. I have a test server where I can do and document the process at the same time.

10 Apr 2012, 7:05 PM
#62
gjh42 avatar

gjh42

Black Belt

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

Re: Ultimate Fade-In Slidehow Support thread

The updated version of Ultimate Fade-In Slideshow v2.4 is now available in Free Addons.

This is actually Ultimate Fade-In Slideshow v2.4, modified for proper installation in Zen Cart.
It allows for multiple languages in fadeshow image descriptions.
The fadeshow will appear on the homepage by default; instructions are given for use on other pages.

Since Dynamic Drive does not allow redistribution of its files, you must download and edit a few files yourself, following instructions given in the readme.

10 Apr 2012, 7:16 PM
#63
gjh42 avatar

gjh42

Black Belt

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

Re: Ultimate Fade-In Slidehow Support thread

Note that the installation and operation of the fadeshow will be completely different than the old version was, so previous pages of this thread are largely irrelevant for new installations. This is mostly due to the rewritten javascript from Dynamic Drive, and to some extent to the improved ZC installation and page/language handling.

10 Apr 2012, 11:39 PM
#64
coopco avatar

coopco

New Zenner

Join Date:
Jun 2006
Location:
Sea Lake, Australia
Posts:
81
Plugin Contributions:
0

Re: Ultimate Fade-In Slidehow Support thread

Thanks Glenn, easy install and works very well.

12 Apr 2012, 5:34 AM
#65
coopco avatar

coopco

New Zenner

Join Date:
Jun 2006
Location:
Sea Lake, Australia
Posts:
81
Plugin Contributions:
0

Re: Ultimate Fade-In Slidehow Support thread

ZC V1.5. Being fiddling with this add on.
All going well until I added a description to fadeshow_defines.php fadeshow_defines.php the slideshow disappeared. To get it to work with the description, I had to:

in fadeshow_defines.php change
//EOF
to
//EOF
?>

and in jscript_fadeshow_setup.php change instances similar to

<?php echo FADESHOWTEXT_1_IMG00;?>

to
"<?php echo FADESHOWTEXT_1_IMG00;?>"

Does this seem right?

12 Apr 2012, 1:27 PM
#66
gjh42 avatar

gjh42

Black Belt

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

Re: Ultimate Fade-In Slidehow Support thread

You shouldn't need to add that. PHP files do not require a ?> at the end - in fact, revised core Zen Cart files are often also changed to remove the ?>. No idea why adding it back would make a difference.

For the quotes, you're right :oops: PHP works fine simply embedded in javascript, but its result, unlike in HTML output, needs to be enclosed in quotes so js can handle it properly as a string and not try to treat it as a variable or something else. In researching your question, I came across a method (using json_encode() ) that should also avoid possible escaping issues, allowing end users to incorporate various quotes and symbols in the description without breaking javascript. I'll test that out and resubmit, with a real improvement instead of just a bugfix.

In the meantime, adding quotes around the PHP or else just embedding text directly will work.

12 Apr 2012, 1:53 PM
#67
coopco avatar

coopco

New Zenner

Join Date:
Jun 2006
Location:
Sea Lake, Australia
Posts:
81
Plugin Contributions:
0

Re: Ultimate Fade-In Slidehow Support thread

gjh42:

You shouldn't need to add that. PHP files do not require a ?> at the end - in fact, revised core Zen Cart files are often also changed to remove the ?>. No idea why adding it back would make a difference.

For the quotes, you're right :oops: PHP works fine simply embedded in javascript, but its result, unlike in HTML output, needs to be enclosed in quotes so js can handle it properly as a string and not try to treat it as a variable or something else. In researching your question, I came across a method (using json_encode() ) that should also avoid possible escaping issues, allowing end users to incorporate various quotes and symbols in the description without breaking javascript. I'll test that out and resubmit, with a real improvement instead of just a bugfix.

In the meantime, adding quotes around the PHP or else just embedding text directly will work.

Thanks Glen

Rechecked without the closing ?> and it still works (sorry).

Not sure about json, some earlier browsers don't support it.

I also used similar to
"index.php?main_page=products_new", "_self",
for the clickable url instead of similar to
"http://some-url.com", "_new",

12 Apr 2012, 2:32 PM
#68
gjh42 avatar

gjh42

Black Belt

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

Re: Ultimate Fade-In Slidehow Support thread

Researching json_encode further, it looks like a functional and security minefield which will take far too much study to be sure of doing it safely. I think I will just add more notes about escaping quotes in the corrected files.

16 Apr 2012, 1:41 PM
#69
darkmarauder avatar

darkmarauder

New Zenner

Join Date:
Feb 2010
Location:
Northants, England
Posts:
83
Plugin Contributions:
0

Re: Ultimate Fade-In Slidehow Support thread

Hello,

I have just downloaded the latest version of Zen Cart (1.5.0) and the latest version as of today of the Ultimate Fade Slideshow.
I installed the test shop without issues, but as soon as I added the files for the Ultimate Fade Slideshow (making sure the two folders for my template were renamed) the front end of my shop goes blank.
The Admin backend is fine, and if I delete just the jscript files - from includes/templates/templatename/jscript the shop frontend loads just fine.

My shop has addons though:- Backup MYSQL and Easypopulate 4 only.

Any help please?

16 Apr 2012, 2:05 PM
#70
darkmarauder avatar

darkmarauder

New Zenner

Join Date:
Feb 2010
Location:
Northants, England
Posts:
83
Plugin Contributions:
0

Re: Ultimate Fade-In Slidehow Support thread

More specifically when the file 'jscript_fadeshow_setup.php' is added to the jscript folder, this is when the shop frontend goes blank.

16 Apr 2012, 2:22 PM
#71
coopco avatar

coopco

New Zenner

Join Date:
Jun 2006
Location:
Sea Lake, Australia
Posts:
81
Plugin Contributions:
0

Re: Ultimate Fade-In Slidehow Support thread

darkmarauder:

More specifically when the file 'jscript_fadeshow_setup.php' is added to the jscript folder, this is when the shop frontend goes blank.

Do you mean like in posts 65 to 67, or something else?

16 Apr 2012, 2:34 PM
#72
darkmarauder avatar

darkmarauder

New Zenner

Join Date:
Feb 2010
Location:
Northants, England
Posts:
83
Plugin Contributions:
0

Re: Ultimate Fade-In Slidehow Support thread

I just made the amendments as references in those two posts and I have the same problem as before. :-(

16 Apr 2012, 3:52 PM
#73
coopco avatar

coopco

New Zenner

Join Date:
Jun 2006
Location:
Sea Lake, Australia
Posts:
81
Plugin Contributions:
0

Re: Ultimate Fade-In Slidehow Support thread

darkmarauder:

I just made the amendments as references in those two posts and I have the same problem as before. :-(

I can only see magicslideshow.js in the source code for your shop, and I cannot any reference to this add on in your source code.

If you attach your 'jscript_fadeshow_setup.php' file, I can have a look tomorrow.

16 Apr 2012, 7:33 PM
#74
darkmarauder avatar

darkmarauder

New Zenner

Join Date:
Feb 2010
Location:
Northants, England
Posts:
83
Plugin Contributions:
0

Re: Ultimate Fade-In Slidehow Support thread

Hello,

Sorry, I have installed the fade-in slideshow into a test shop, as unfortunetly the Magic Slideshow that I purchased a while ago when I was using v1.3.7 doesn't work with v1.5.0 of Zen Cart.
Anyway, the test shop is located at http://www.brendonscomputers.com/testshop01

A copy of the file requested is now sitting at:-
http://www.brendonscomputers.com/testshop01/jscript_fadeshow_setup.php

16 Apr 2012, 8:33 PM
#75
gjh42 avatar

gjh42

Black Belt

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

Re: Ultimate Fade-In Slidehow Support thread

Your output cuts off after

<script type="text/javascript" src="includes/templates/pure_blue/jscript/jscript_fadeshow.js"></script>

which indicates a PHP error in jscript_fadeshow_setup.php which should be processed next (we knew that already).
We can't see your PHP file in that location. If you rename its extension to .txt it should become visible as is. Or you can paste it into a post here.

17 Apr 2012, 9:26 AM
#76
darkmarauder avatar

darkmarauder

New Zenner

Join Date:
Feb 2010
Location:
Northants, England
Posts:
83
Plugin Contributions:
0

Re: Ultimate Fade-In Slidehow Support thread

The renamed text file is at:-
http://www.brendonscomputers.com/testshop01/jscript_fadeshow_setup.txt

I would note though that this file is entirely unconfigured, just as the install version as downloaded. I did configure it referencing existing pictures on my server but this did not help my problem.

17 Apr 2012, 11:02 AM
#77
coopco avatar

coopco

New Zenner

Join Date:
Jun 2006
Location:
Sea Lake, Australia
Posts:
81
Plugin Contributions:
0

Re: Ultimate Fade-In Slidehow Support thread

darkmarauder:

The renamed text file is at:-
http://www.brendonscomputers.com/testshop01/jscript_fadeshow_setup.txt

I would note though that this file is entirely unconfigured, just as the install version as downloaded. I did configure it referencing existing pictures on my server but this did not help my problem.

All of the instances of, for example, <?php echo FADESHOWTEXT_1_IMG01;?>],

need to be like, for example, "<?php echo FADESHOWTEXT_1_IMG01;?>" ].

ie in double quotes.

You have to fix that for three lines.

17 Apr 2012, 1:35 PM
#78
gjh42 avatar

gjh42

Black Belt

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

Re: Ultimate Fade-In Slidehow Support thread

Note: I have submitted the corrected zip for approval. It should be available soon.

23 Apr 2012, 1:58 PM
#79
darkmarauder avatar

darkmarauder

New Zenner

Join Date:
Feb 2010
Location:
Northants, England
Posts:
83
Plugin Contributions:
0

Re: Ultimate Fade-In Slidehow Support thread

After adding the quotes as mentioned, my shop front end still remains blank :-(

23 Apr 2012, 2:05 PM
#80
windsurfer avatar

windsurfer

Zen Follower

Join Date:
Jun 2011
Posts:
185
Plugin Contributions:
0

Re: Ultimate Fade-In Slidehow Support thread

Hi Dark
Did you merge the files with winmerge or beyond compare or did you just blindly copy them to the site ? I had a fresh copy of V1.5 installed on my local and just copied the files and had the same problem untill i merged them properly.