Youtube

Locked

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

Results 1 to 20 of 30
This thread is locked. New replies are disabled.
16 Oct 2008, 11:38 AM
#1
dmagic avatar

dmagic

Totally Zenned

Join Date:
Oct 2008
Posts:
594
Plugin Contributions:
0

Youtube

can i add demo video to my product ?

or like this - watch video demo click here

Thanks.

17 Oct 2008, 3:57 PM
#2
dmagic avatar

dmagic

Totally Zenned

Join Date:
Oct 2008
Posts:
594
Plugin Contributions:
0

Re: Youtube

who can help me ?

17 Oct 2008, 5:23 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: Youtube

Just put the link in your product description directly.

<a href="http://link_to_video_clip">click here</a>

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

19 Oct 2008, 7:51 AM
#4
dmagic avatar

dmagic

Totally Zenned

Join Date:
Oct 2008
Posts:
594
Plugin Contributions:
0

Re: Youtube

DrByte:

Just put the link in your product description directly.

<a href="http://link_to_video_clip">click here</a>


every product i need put this code ? :dontgetit
19 Oct 2008, 7:54 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: Youtube

Well, since I suspect every product will point to a different video, yes.

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

15 Nov 2008, 4:32 PM
#6
wildwayne avatar

wildwayne

New Zenner

Join Date:
Mar 2007
Location:
Medford, OR
Posts:
4
Plugin Contributions:
0

Re: Youtube

Is that the only way to get You Tube Videos in to my cart. Is there a way to have it stream without having a link off my cart? I think that this would be valuable for a lot of cart owners.

30 Nov 2008, 8:32 AM
#7
kiddo avatar

kiddo

Totally Zenned

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

Re: Youtube

I use this simple trick: I name video clips the same as the catalog number. When the page is created, a little code checks to see if there is a video file of same name as the catalog number. If so, it embeds the streaming player. If not, you don't see the player.

For quick demo of streaming video in detail page click here and then scroll down a bit:

http://www.laserdiscvault.com/index.php?main_page=product_info&products_id=585

I don't have many videos yet so you won't see the player if no video exists. Player is nice simple zc streaming plugin trigered by catalog number.

15 Dec 2008, 4:41 PM
#8
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Youtube

kiddo:

I use this simple trick: I name video clips the same as the catalog number. When the page is created, a little code checks to see if there is a video file of same name as the catalog number. If so, it embeds the streaming player. If not, you don't see the player.

For quick demo of streaming video in detail page click here and then scroll down a bit:

http://www.laserdiscvault.com/index.php?main_page=product_info&products_id=585

I don't have many videos yet so you won't see the player if no video exists. Player is nice simple zc streaming plugin trigered by catalog number.
Can you post details of script to achieve this please?

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

15 Dec 2008, 6:45 PM
#9
kiddo avatar

kiddo

Totally Zenned

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

Re: Youtube

Sure.

At some nice point in your tpl_product_info_display.php:

<?php $movie = $products_model; $movie_file = "/home/laserdis/public_html/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 } ?>

Notes:
Make sure $movie_file points to your proper path. I show mine just for example.

Notes:
The AC_FL_RunContent script can be downloaded from Adobe.com This scipt handles all the browser-specific stuff for embeding the video. You can load this script the traditional Zen way, or put it in your html_header.php file.

Notes:
When I say Catalog Number, I really mean the Zen prroducts_model field.

Notes:
The actual FLV player module is NOT the popular JW-FLV player. I tried this and found many problems/conflicts with it if some other popular mods (LightBox for one) I will post a link to the base FLV code in just a few min. (I have to look it up).

Notes:
The Video SideBox on my site is also based on the same code but includes a playlist not in the bigger version.

Notes:
I use a good plugin for Firefox (what else?) to collect video from you tube and other sources.

Notes:
I loose some hair making this all work with Zen Cart but is nice solution if your site needs video. If there is any interest, I maybe package this up as a nice module for everyone.

15 Dec 2008, 6:53 PM
#10
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Youtube

I lost some hair making this all work with Zen Cart but is nice solution if your site needs video. If there is any interest, I maybe package this up as a nice module for everyone.
Excellent fast response..thanks Kiddo.. and yes, think it
would make an excellent mod addition...shame to waste
all that hair you lost creating it...
:wink:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

16 Dec 2008, 2:03 AM
#11
kiddo avatar

kiddo

Totally Zenned

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

Re: Youtube

Address for base player code is here:

flv-player.net

Will see about making a package for this.

16 Dec 2008, 3:14 AM
#12
daneh avatar

daneh

Zen Follower

Join Date:
Dec 2007
Location:
Southern Maine
Posts:
268
Plugin Contributions:
0

Re: Youtube

Very nice site Kiddo.

It may be my tiny monitor ( I don't have one of those fancy 20 inch flat screen monitors), but I need to scroll to the right to view your page.

Has anyone else mentioned it?

Again, it may be just me.

16 Dec 2008, 3:24 AM
#13
kiddo avatar

kiddo

Totally Zenned

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

Re: Youtube

daneh:

Very nice site Kiddo.

It may be my tiny monitor ( I don't have one of those fancy 20 inch flat screen monitors), but I need to scroll to the right to view your page.

Has anyone else mentioned it?

Again, it may be just me.

Thanks for nice comment. And yes, it's been mentioned both by me and others. The boss likes it just like it is but maybe next round of mods I may be able to get him to say OK to narrowing it up a bit.

I save your comment with the others for when it is time to bring it up again. Right now, I just be happy to get past the holiday with as little smoke as possible :)

13 Jan 2009, 3:31 AM
#14
rhaught avatar

rhaught

New Zenner

Join Date:
Nov 2008
Location:
New York City
Posts:
95
Plugin Contributions:
0

Re: Youtube

Wanting to make a sidebox with some samples. Would youtube be the way to go? Seems to be on the same line as what you did.

The Film Bunker

21 Jan 2009, 8:26 PM
#15
norske avatar

norske

New Zenner

Join Date:
Jan 2009
Posts:
1
Plugin Contributions:
0

Re: Youtube

@kiddo - Could you kindly reply with the text of the script you place in html_header.php? I am having a hard time finding the right script on Adobe.com.

Thank you!

21 Jan 2009, 9:42 PM
#16
kiddo avatar

kiddo

Totally Zenned

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

Re: Youtube

Norske:

@kiddo - Could you kindly reply with the text of the script you place in html_header.php? I am having a hard time finding the right script on Adobe.com.

Thank you!

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

25 Jan 2009, 11:24 PM
#17
doodlebuckets avatar

doodlebuckets

Totally Zenned

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

Re: Youtube

So the scrolling feature with the "Mountains of Savings" thingy...how do you do that? I would love to have something like that on my sites that links to products when the thumbnails are clicked on! Very nice!

26 Jan 2009, 12:06 AM
#18
kiddo avatar

kiddo

Totally Zenned

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

Re: Youtube

Doodlebuckets:

So the scrolling feature with the "Mountains of Savings" thingy...how do you do that? I would love to have something like that on my sites that links to products when the thumbnails are clicked on! Very nice!

Thank you for nice comment!

The scrolling widget can be found here:
http://www.flashcomponents.net/component/dock_menu_xml_3.0.html

Snowcat wants $35-ish for a commercial license, but is worth it.

Putting it in your Zen Cart is not difficult. It runs on an XML (text) file that says what pictures to show, what link to go to when clicked on, and what text to show.

I made a PHP program that picks movies from the ZC database, creates the XML file, and then updates the Zen Cart Specials table to make them be on sale. Each time I run the script I get a new set of sales and images in that widget.

I also have a small PHP function that makes images optimized for the scrolling display. Kind of like IH2, but can be called from anywhere with size and compression level passed in the function call. (very handy)

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

doodlebuckets

Totally Zenned

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

Re: Youtube

Well, I am trying out the free version before spending the money, to see if I can do it. I created the XML file and that was easy...I just used my file from Google Base Feeder and copied the appropriate lines into the images XML file. I added the code to the header of my main page define file and the <div> line inbetween the body tags in my template. I also uploaded the swf file and the images XML file with the main page define file and nothing is showing up. Am I missing something? I am not an expert at this stuff!

26 Jan 2009, 6:50 PM
#20
kiddo avatar

kiddo

Totally Zenned

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

Re: Youtube

I'll post the code I use to embed the object and a sample of the xml file that I use shortly. I should be at my workstation within the hour.