Forums / Templates, Stylesheets, Page Layout / Adding flash to your zen cart site

Adding flash to your zen cart site

Locked

Views: 2,969

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
2 Nov 2007, 1:22 PM
#1
soundbynibs avatar

soundbynibs

New Zenner

Join Date:
Nov 2007
Posts:
1
Plugin Contributions:
0

Adding flash to your zen cart site

TESTED ON ZEN CART 1.3.7 ONLY

To enter flash images anywhere in the site you must change the html_output file located in the includes/functions folder of your site with this one:

"http://cyprus-gadgets.com/downloads/html_output%20with%20flash%20support.zip"

to access this file the username is demetris and password demetris.

now at every position that you need a flash or virtually anything else than a simple image just replace the zen_image call for the image you want to zen_flash . For instance in the tpl_header.php file where you call the logo images if you want to use flash the call for the image should look like this :zen_flash(DIR_WS_TEMPLATE.'images/flash.swf')?></a></div></div>
instead of :zen_image(DIR_WS_TEMPLATE.'images/image.jpg')?></a></div></div>

Good Luck All .!!:clap::clap::clap:

2 Nov 2007, 4:42 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Adding flash to your zen cart site

Nice idea. I'm not sure it's the best approach, but if it works for you, use it. I'm not convinced it'll be fully cross-platform-friendly in that method.

Essentially what you've done is just change the <img src="...." .... > tag and replace "img" with "embed". While that may work, it's not complete code, and supplies irrelevant parameters to flash while skipping what could be other important parameters used by flash.

I suppose for very simple flash objects that may be acceptable, if it were to work properly on all browsers.

Another improvement I'd suggest would be to not touch html_output.php at all, but to instead add a new file, such as /includes/functions**/extra_functions/my_zen_flash_functions.php** and just put your zen_flash() and zen_flash_OLD() functions in there. That way you won't be messing with core files, and you can adjust your custom code easily without creating problems for upgraders or busting peoples' sites if they install your older code when a new html_output.php is published.

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

16 Dec 2007, 1:16 PM
#3
ballen4877 avatar

ballen4877

New Zenner

Join Date:
Dec 2007
Posts:
2
Plugin Contributions:
0

Re: Adding flash to your zen cart site

Guys what is the simplest way to add a flash audo file to the product info page?

In Cre Loaded 6.2 B2B and standard all you had to do was click on the flash insert button built into the program but with Zen Cart I believe one has to hard code it or modify certain pages in order to insert a flash component.

What I need to know in simple detail how would someone new to Zen Cart 1.3.8a would go about it?

Thank...

29 Jan 2008, 3:11 PM
#4
silversh avatar

silversh

New Zenner

Join Date:
Sep 2007
Location:
indonesia
Posts:
2
Plugin Contributions:
0

Re: Adding flash to your zen cart site

HELLO EVERYONE !!!!
I M A FRENCH AND I SPEEK ENGLISH BUT SOMEONE CAN HELP ME IN FRENCH,,,,????
I WOULD LIKE TO PUT FLASH IN THE MAIN PAGE BUT HOW PLEASE ,,,,???
BUT I M JEWELS DESIGNER NOT WEBSITE DESIGNER SO !!!!:frusty:
IF WE CAN MAKE THAT STEP BY STEP.
THANKS A LOT FOR THE ANSWER.:oops: