Youtube

Locked

Started by dmagic on 16 Oct 2008, 11:38 AM · Views: 13,481

Results 21 to 30 of 30
This thread is locked. New replies are disabled.
26 Jan 2009, 8:00 PM
#21
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Youtube

Cool, still homeschooling my kids, so no hurry...thanks so much for the help, tho!

26 Jan 2009, 8:37 PM
#22
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Youtube

The package contains a file called swfobject.js

rename this file to: jscript_swfobject.js and place it in:

includes/templates/YOURTEMPLATE/jscript/jscript_swfobject.js

The code I use to embed the object is:

		<script type="text/javascript">
			var flashvars = {};
			flashvars.xmlFile = "<?php echo $current_xml; ?>";
			flashvars.spacing = "5";
			flashvars.smoothScrolling = "true";
			flashvars.expandingDirection= "center";
			flashvars.backgroundColor = "0";
			flashvars.dockWidth = "602";
			flashvars.dockHeight = "250"
			flashvars.autoScrollSpeed = "5";
			flashvars.minThumbWidth = "50";
			flashvars.minThumbHeight = "50";
			flashvars.maxThumbWidth = "200";
			flashvars.maxThumbHeight = "200";
			flashvars.imagesInfluence = "500";
			flashvars.fontSize = "14";
			flashvars.reflectionSpread = "30";
			flashvars.reflectionAlpha = "65";
			flashvars.reflectionDistance = "1";
			flashvars.useReflection = "false";
			flashvars.tooltipPosition = "bottom";
			flashvars.autoScrollSpeed = "1";
			flashvars.tooltipBackgroundAlpha = "80";

			var params = {};
			params.scale = "noscale";
			params.salign = "tl";
			params.wmode = "transparent";
			var attributes = {};
			attributes.styleclass = "noOutline";
			swfobject.embedSWF("YOURLOCATION/dockmenu.swf", "DockMenuDiv", "602", "250", "9.0.0", false, flashvars, params, attributes);
		</script>

<div id="DocMenuDivWrapper">
		<div id="DockMenuDiv">
			<a href="http://www.adobe.com/go/getflashplayer">
				<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
			</a>
		</div>
</div>

Be sure to replace YOURLOCATION with the proper directory relative to your web root.

Also, add to your stylesheet.css file:

.noOutline
	{
	outline:none;
	}

That will prevent an ugly dotted line in Firefox when you click the object. This is loaded by the attributes.styleclass param (see above)

Note I use the PHP varriable $current_xml to point to the XML file, but you can put the actual path here instead. I only do this because my XML files are created dynamically with unique names.

A sample XML entry would look like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<dockmenu>
<photo image="/YOURIMAGEDIR/200x200_95_CatsEye-F.jpg" url="/index.php?main_page=product_info&products_id=684" target="_self"><![CDATA[Cat's Eye <br />15% Off Today!]]></photo>
<photo image="/YOURIMAGEDIR/200x200_95_bcd_img_7966.jpg" url="/index.php?main_page=product_info&products_id=4737" target="_self"><![CDATA[Who Rocks America <br />15% Off Today!]]></photo>
</dockmenu>

Be sure to replace YOURIMAGEDIR with the proper path to your images.

The div DocMenuDivWrapper can be styled as you wish in your stylesheet. That is how I add the background image of the mountains behind the flash widget.

Also note you will need to adjust the height and width params to fit your site.

I know thats a big chunk to digest, but if I can clarify to help you get it working, just ask.

26 Jan 2009, 9:00 PM
#23
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Re: Youtube

Digesting! I'll let you know how it goes :D Thanks!

26 Jan 2009, 9:14 PM
#24
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Re: Youtube

OK, I've done the above items and I get a big blank where I'm supposed to have the widget, so we are making progress! Here is a snippet from my XML file:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> 
- <dockmenu xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">  <photo image="http://www.babygiftbasketstores.com/store/images/Cashmere_Bunny/ABBW-2.jpg" bigimage="http://www.babygiftbasketstores.com/store/images/Cashmere_Bunny/ABBW-2.jpg" url="http://www.babygiftbasketstores.com/store/all-boy-baby-wagon-p-2.html?currency=USD" target="_self" lightboxInfo="All Boy Baby Wagon">All Boy Baby Wagon</photo> 

Does that look ok? What might I be missing? Should the images.xml and dockmecu.swf be in the same folder as the define main page file as I have it?

26 Jan 2009, 9:43 PM
#25
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Youtube

Well, if you have a big blank area that is good. It means the widget is loading. If you right-click in the blank area it should say something about your flash options (just to confirm its loaded the flash)

I think your XML is kinda broken. The example I posted is from a working one.

I'd try copying that and editing it as closely as possible to use your own info. The way it's set up is so you can have a customer go to your detail page where the add-to-cart button is when one of the pictures is clicked.

I don't think the "lightbox" param is the same Zen Lightbox you are thinking.

26 Jan 2009, 9:53 PM
#26
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Youtube

Just a little off the wall, but here is another toy I'm playing with. But unlike the dock menu, this will be the entire store front. Handling categories (currently called albums) and products. Still needs a lot of work though...

http://www.laserdiscvault.com/ga1/index.php

This uses an XML interpretation of the ZC product data.

27 Jan 2009, 2:44 AM
#27
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Re: Youtube

kiddo:

Just a little off the wall, but here is another toy I'm playing with. But unlike the dock menu, this will be the entire store front. Handling categories (currently called albums) and products. Still needs a lot of work though...

http://www.laserdiscvault.com/ga1/index.php

This uses an XML interpretation of the ZC product data.

Very cool! I wish I knew how to do more such things. One baby step at a time. Maybe it's just me, but I would slow down the spinning wheels of thumbnails. They go by too fast for me to be able to pick anything. Otherwise, very, very cool!

27 Jan 2009, 2:46 AM
#28
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Re: Youtube

kiddo:

Well, if you have a big blank area that is good. It means the widget is loading. If you right-click in the blank area it should say something about your flash options (just to confirm its loaded the flash)

I think your XML is kinda broken. The example I posted is from a working one.

I'd try copying that and editing it as closely as possible to use your own info. The way it's set up is so you can have a customer go to your detail page where the add-to-cart button is when one of the pictures is clicked.

I don't think the "lightbox" param is the same Zen Lightbox you are thinking.

Okie doke, I will look at it tomorrow. I am very tired have to be up earlier than ususal in the morning. I'll let you know when I get to use your XML code and what happens....have a good night!

27 Jan 2009, 6:19 PM
#29
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Re: Youtube

Awrighty, check out my page now: http://www.babygiftbasketstores.com/

Another step in the right direction, I think. I used my old images.xml and tried with the file I created using the XML code sample from you. Same thing happens. My problem from before was that I forgot a "/" in the path to the js file in my template. After fixing that, I get what you see whether I use the old XML or the new.

Using the code you gave me for the XML, gets me an error when I try to open it up in an XML editor or Excel....

5 Apr 2010, 3:40 AM
#30
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: Youtube

kiddo:

This package contains the ac_fl_runcontent script:

http://download.macromedia.com/pub/developer/activecontent_samples.zip

Some more nice info is here:
http://www.adobe.com/devnet/activecontent/articles/devletter.html

Could someone kindly help me out in getting this to work? It sounds like JUST what I need and I love that it will auto load the FLV files with corresponding Model Numbers.

I am using the Music product type so inserted the PHP code provided:

<?php $movie = $products_model; $movie_file = "/home1/hopeless/public_html/havokdesigns/code/ss/dental/media/" . $movie . ".flv"; if(file_exists($movie_file)) {?> <table align="center"><tr><td> <script type="text/javascript"> AC_FL_RunContent( 'class','kimplayer', 'width','500', 'height','375', 'allowFullScreen','true', 'data','/FLVplayer/player_flv_maxi.swf', 'type','application/x-shockwave-flash', 'movie','/FLVplayer/player_flv_maxi', 'flashvars','flv=/media/<?php echo $movie; ?>.flv&configxml=/FLVplayer/config.xml' ); //end AC code </script> </td></tr></table> <?php } ?>

into tpl_product_music_info_display.php.

I have an FLV file named TEST1 which is the model of my test product.

I download the zipfile containing the scripts,etc..but am at a loss of what to do with it. This thread kind of went into a tangent about something else so I'm confused!:shocking:

Thanks!