Zen Cart Logo
Forums / All Other Contributions/Addons / nice 'n ez flo (flash object)

nice 'n ez flo (flash object)

Locked

Views: 9,001

Results 1 to 20 of 32
This thread is locked. New replies are disabled.
18 Oct 2006, 11:46 AM
#1
neunetllc_com avatar

neunetllc_com

Banned

Join Date:
Oct 2006
Location:
New Albany Ohio
Posts:
113
Plugin Contributions:
0

nice 'n ez flo (flash object)

hello.

i've submitted a contribution that helps you to easily embed flash objects in your zen cart.

you can download it at http://www.zen-cart.com/forum/showpost.php?p=318786&postcount=23

i will also attempt to field any questions, concerns or comments about nnez flo and work with you to help make your zen cart experience better for both you and especially your customers!


NNEZ FLO (Nice 'N EZ FLash Objects) module

» This file set works together to allow you to easily embed flash [*.swf] files anywhere in your zen cart template with one simple function call.

» Compatibility: developed, tested and in production with zen cart 1.3.5, IE 6.02900.2180.xpsp.050329-1536, no known bugs. Please contact us if you discover otherwise. Handles both <script> and <noscript> Flash object embeds.

INSTALLATION:

  1. Upload all files while preserving directory structure. /template_default/ is used as this functionality should be available for all templates and over-ridden where desired.

  2. You're done.


USE:

  1. whenever you need to embed a flash file put it here:

/includes/templates/template_default/nnez_com/flash/

OPTIONAL: if your flash file loads xml, include it here:

/includes/templates/template_default/nnez_com/xml/

  1. make a call to get_flashed() >> there are just 3 arguments with defaults:

get_flashed($flashfile='jfzxbvl',$w='602',$h='158');

// $flashfile := the name of your flash file without .swf
// $w := width of main movie
// $h := i bet you can guess what this is
// edit nnez_flo_output.php::get_flashed() arg defaults to suit your needs.

note: if you call get_flashed() without arguments, it will expect you to have 10 default
flash files in /flash/ with the default dimensions, ie, default_[0-9].swf.
this is also true if you name yourflash file 'jfzxbvl' (8,031,810,175 other 7 letter
words out there; i bet you won't name it this!)


EXAMPLE USE:

  1. PHP

// 1-line, now that's nice 'n ez

<?php echo get_flashed('my_flashfile_without_dot_swf_at_the_end','160','90'); ?>
  1. HTML (ex, EZ Pages)
<script type="text/javascript">embedFlash("/includes/templates/template_default/nnez_com/flash/{my_flashfile_without_dot_swf_at_the_end}","560","420","");</script>

hope this helps!

19 Oct 2006, 9:52 AM
#2
switch avatar

switch

New Zenner

Join Date:
Oct 2006
Posts:
1
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

very good!
thanks for help everybody, solve difficult about this problem
but if using flash to make banner is very easy
but if using flash move image product to flash, and every image correlative with url of this product
seem, can product gallery make that?
but i don't understand? if product gallery can make that, why we embed flash into boxes, what this flash is?
if i embed 1 flash have image different with image product ?

as a whole i don't princlipe of if
help me
thanks

19 Oct 2006, 11:14 PM
#3
neunetllc_com avatar

neunetllc_com

Banned

Join Date:
Oct 2006
Location:
New Albany Ohio
Posts:
113
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

i'm not sure that i understand what you're asking. if you are asking about nnez flo, let me attempt to clarify what nnez flo does:

  1. if a customer is browsing your zen cart shop which uses flash files and have script interpreting enabled, nnez flo gets rid of the requirement that they click the flash movie to enable it

  2. if scripts are not enabled (is the case at a fortune 500 company i used to do R&D for, and many other large corporations have the same policy) it still renders the html required for a flash object embed

  3. it simplifies this process to just 1 php function call, which i had not seen available anywhere else - so i made this functionality for my own sites and freely available to anyone else who wants to use it.

it has been submitted for download as a contribution 3 days ago.

20 Oct 2006, 2:29 PM
#4
ghgarcia avatar

ghgarcia

New Zenner

Join Date:
Sep 2006
Posts:
34
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

:D I just installed nice 'n ez flo on my site plushcosmetics.net and it works great. I'm still building my site so let me know what you think. I plan to incorporate nice 'n ez flo on more pages.

The installation process was just as described and worked without a hitch. I plan to take a look at their other products also.

George Garcia

20 Oct 2006, 4:31 PM
#5
neunetllc_com avatar

neunetllc_com

Banned

Join Date:
Oct 2006
Location:
New Albany Ohio
Posts:
113
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

glad to know nnez flo is helping out.

looks like you picked up a copy of the nnez super product gallery too.

the girls look great George!

^.^

23 Oct 2006, 8:01 AM
#6
chipus avatar

chipus

New Zenner

Join Date:
Jul 2006
Posts:
10
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

hi

it's nice to see your module. I want to try it. However, i did exactly what you wrote in the guide, but i still can't get the result.

This is what exactly i did:

  • Download nnez_flo_20061013.zip
  • Extract, then copy it to my zen-cart folder. i realize that the folder flash and xml are empty.
  • I set my Feature side-box to left, and the number of displayed product is default (0).

I don't know what should i do next in order to make it work.

Could you help me to find out!

regards,

chipus

23 Oct 2006, 2:49 PM
#7
neunetllc_com avatar

neunetllc_com

Banned

Join Date:
Oct 2006
Location:
New Albany Ohio
Posts:
113
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

hi chipus... let's see if we can get it figured out.

  1. what's the url where you're using it?

  2. do you have any other .js files in templates/YOUR_TEMPLATE/jscript/ or templates/template_default/jscript/ ?

  3. what version of zc are you using?

23 Oct 2006, 3:01 PM
#8
chipus avatar

chipus

New Zenner

Join Date:
Jul 2006
Posts:
10
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

hi

in includes/templates/template_default/jscript/, i have

  • on_load folder
  • jscript_nnez_flash.php file

As you have recommended, i am trying it on my computer. So there are no url yet.

Please help me to file out.

regards,

chipus

23 Oct 2006, 3:21 PM
#9
neunetllc_com avatar

neunetllc_com

Banned

Join Date:
Oct 2006
Location:
New Albany Ohio
Posts:
113
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

yes, it is recommended you try using it on your computer.

ok - well helping you without a site to see is like piloting blind. you'll have to tell me more about the plane we're in.

we'll need your phpinfo , LAMP (linux, apache, mysql, php) versions to start.

you say "I set my Feature side-box to left, and the number of displayed product is default (0)."

...are you using the featured product slideshow? if you are, are you using BSD instead of Linux?

23 Oct 2006, 3:29 PM
#10
chipus avatar

chipus

New Zenner

Join Date:
Jul 2006
Posts:
10
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

neu net llc.com:

yes, it is recommended you try using it on your computer.

ok - well helping you without a site to see is like piloting blind. you'll have to tell me more about the plane we're in.

we'll need your phpinfo , LAMP (linux, apache, mysql, php) versions to start.

you say "I set my Feature side-box to left, and the number of displayed product is default (0)."

...are you using the featured product slideshow? if you are, are you using BSD instead of Linux?

i am using PHP 4.4.1, Windows OS, apache 2.4.5, mysql 5.0.16.

i am trying to use nnez for my featured product sidebox, as you present on your site.

Regards,

chipus.

23 Oct 2006, 3:34 PM
#11
neunetllc_com avatar

neunetllc_com

Banned

Join Date:
Oct 2006
Location:
New Albany Ohio
Posts:
113
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

if you are referring to a product offered by neu net that you have paid for and you require technical support, please contact support at neu net llc dot com.

this thread is specifically to support nnez flo (for flash objects) which is freely available to the zen cart community.

thanks.

25 Oct 2006, 2:35 PM
#12
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

I see the problem in the code that's being called but i don't know how to change it.

<script type="text/javascript">embedFlash("/my_cart/includes/templates/template_default/nnez_com/flash/header","800","144","");</script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="144" id="nnez_com" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="/my_cart/includes/templates/template_default/nnez_com/flash/header.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="/studiostyles_0905/store/zen-cart-090706/includes/templates/nnez_com/header.swf" quality="high" bgcolor="#ffffff" width="800" height="144" name="nnez_com" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></noscript>
</div

When it first looks for the .swf it's not seeing it because the ".swf" extension is missing. where do i add this .swf?

25 Oct 2006, 2:53 PM
#13
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

Here is what my nnez_flo_output.php looks like:

<?php
/**
 * nnez_flo_output.php
 * nice 'n ez flash object output
 * HTML-generating function used to embed *.swf files
 * <script> + <noscript> support
 * 
 * *copyright Copyright 2006 NeuNet LLC
 * http://www.neunetllc.com
 * *version $Id: nnez_flo_output.php  jpg2afvv-xzgqyi1i-vbfdjsyw-ga6dp8uq 2006-10-13 02:06:32EST 
 * author: jay park graven, jpg at neunetllc dot com [yes ma'am, green eggs and ham, but please, no spam]
 */

// $flashfile := the name of your flash file without .swf
// $w := width of main movie
// $h := i bet you can guess what this is
function get_flashed($flashfile='header',$w='800',$h='144')
{
	if ($flashfile=='header'){	// your file probably isn't named this
		// $flashfile='default_'.rand(0,9);	// if you use default flash files frequently, say for headers, this helps
	}
	// embedFlash can be found in template_default/jscript_nnez_flash.js
	$flo='<script type="text/javascript">embedFlash("'.DIR_WS_CATALOG.DIR_WS_TEMPLATES.'template_default/nnez_com/flash/'.$flashfile.'","'.$w.'","'.$h.'","");</script>';
	// echo '<noscript>'.get_nnez_flashed('default_'.rand(0,9),'602','158').'</noscript>';
	$flo.='<noscript>'.get_nnez_flashed($flashfile,$w,$h).'</noscript>';

	return $flo;
}

// flash wrapper for nnez_com noscript; proper before msft, adbe quibble. 
function get_nnez_flashed($flashfile,$w,$h)
{
	$flo='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'.$w.'" height="'.$h.'" id="nnez_com" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="'.DIR_WS_CATALOG.DIR_WS_TEMPLATES.'template_default/nnez_com/flash/'.$flashfile.'.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="'.DIR_WS_CATALOG.DIR_WS_TEMPLATES.'nnez_com/'.$flashfile.'.swf" quality="high" bgcolor="#ffffff" width="'.$w.'" height="'.$h.'" name="nnez_com" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';

	return $flo;
}

?>
25 Oct 2006, 5:01 PM
#14
neunetllc_com avatar

neunetllc_com

Banned

Join Date:
Oct 2006
Location:
New Albany Ohio
Posts:
113
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

lawbird, nnez_flo_output.php makes a call to jscript_nnez_flash.js :: embedFlash() which appends the .swf extension (you can see the function in the code you posted).

if you call get_flashed() with a filename that includes the .swf extension, it will definitely not work... unless you wanna try naming your flash file myflashfile.swf.swf then it might, never tried it.

cheers ^.^

25 Oct 2006, 5:23 PM
#15
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

Tried that... doesn't work. What am I doing wrong?

25 Oct 2006, 5:33 PM
#16
neunetllc_com avatar

neunetllc_com

Banned

Join Date:
Oct 2006
Location:
New Albany Ohio
Posts:
113
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

if you have more than 1 user-defined template in your zc installation, try copying jscript_nnez_flash.js from template_default/ to {YOUR_TEMPLATE}/

our over rides have been buggy with zc 1.3.5 /jscipt/ file over rides. although the 'click to activate' flash issue should be resolved for any zc template, it's better to have it fixed for at least 1 active template than none, n'est-ce pas?

hope this helps.

if not, will you please include a url we could look at (or pm/email me)?

25 Oct 2006, 5:45 PM
#17
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

rockin! that did it!

thanks a lot.

25 Oct 2006, 5:51 PM
#18
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

New problem:

It's throwing off my center-alignment....

Here's my URL:

http://www.studiostyles.net/studiostyles_0905/store/zen-cart-090706/

I had everything center-aligned before. Is there anything I need to change in this code to get it back?

25 Oct 2006, 6:01 PM
#19
neunetllc_com avatar

neunetllc_com

Banned

Join Date:
Oct 2006
Location:
New Albany Ohio
Posts:
113
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

not sure exactly what you mean, but nnez flo does nothing but embed .swf, flash objects while handling the 'click to activate' issue and still embeds the .swf file if scripts are disabled.

no style formatting of any kind is included. if you want it centered, with padding, a border, etc, nnez flo will not do that and with good reason.

...but glad to know it fulfilled its purpose!

16 Dec 2006, 10:46 PM
#20
pivey avatar

pivey

Zen Follower

Join Date:
Mar 2006
Posts:
192
Plugin Contributions:
0

Re: nice 'n ez flo (flash object)

Hi neu net llc

the download link returns a "product not found"
Is the mod still available for download?