Had a few people ask "how" regarding http://forum.dealerrefresh.com/f44/anyone-have-experience-video-response-e-mail-928.html#post16708 , most recently from @rdpatrick on twitter. I normally just send an email, but thought I would post this here.
I do it via PHP, but is can actually be done with almost any scripting language. As all videos on YouTube are assigned a v=XXXXXXX alpha numeric number...
So to do -- Sands Chevrolet - Serving Arizona since 1934
First we have to assign a value to the variable that we have to insert later. The following code just extracts the "v" value from the URL
Now on the same PHP page we can use that variable in the URL HTML code:
Now just make your HTML layout/page any way you want using the iFrame code and variable video URL. You can even change the size of the video in the iframe code if you want. As all videos on YouTube are assigned a v=XXXXXXX alpha numeric number, which you can see/copy from the URL - now just put the ?v= in the URL on the page you create.
Now any link you send to a customer can have ANY video that is on YouTube embedded. So, in addition to doing personal responses, video walk-arounds, etc that you custom make, you can also embed videos from the OEM's channel -- like specials, commercials, etc.
Post questions here and I will be glad to help.
I do it via PHP, but is can actually be done with almost any scripting language. As all videos on YouTube are assigned a v=XXXXXXX alpha numeric number...
So to do -- Sands Chevrolet - Serving Arizona since 1934
First we have to assign a value to the variable that we have to insert later. The following code just extracts the "v" value from the URL
PHP:
<?php
$video = $_GET['v'];
?>
Now on the same PHP page we can use that variable in the URL HTML code:
PHP:
<iframe width="425" height="349" src="http://www.youtube.com/embed/<?=$video?>?rel=0" frameborder="0"></iframe>
Now just make your HTML layout/page any way you want using the iFrame code and variable video URL. You can even change the size of the video in the iframe code if you want. As all videos on YouTube are assigned a v=XXXXXXX alpha numeric number, which you can see/copy from the URL - now just put the ?v= in the URL on the page you create.
Now any link you send to a customer can have ANY video that is on YouTube embedded. So, in addition to doing personal responses, video walk-arounds, etc that you custom make, you can also embed videos from the OEM's channel -- like specials, commercials, etc.
Post questions here and I will be glad to help.
Last edited: