PDA

View Full Version : Replace existing youtube video with a new youtube video.


yojames
06-26-2012, 03:37 AM
I have taken over a site that was previously designed with Dreamweaver so I'm learning on the fly here. I need to replace a video currently on the site with a new video. I've been trying to simply replace whatever code I see that is similar to the new video code but that's not working out too well. Please see the first attachment with current video in place. Below that is the new video code from youtube. Please explain how I can swap these two videos, thanks!!
1016

<iframe width="480" height="360" src="http://www.youtube.com/embed/Enwkj5KIjf0" frameborder="0" allowfullscreen></iframe>

edbr
06-26-2012, 04:43 AM
delete the existing object and replace with the iframe. keep a copy of the original for safety

yojames
06-26-2012, 04:58 AM
Thanks for the quick reply. I should have explained that I am a novice here. I've tried replacing the entire highlighted code with the code from youtube, I also tried just replacing what looks like the URL. These did not work. How do I delete the "object"? What part of the code is that? And what part of the code is the "iframe".

edbr
06-26-2012, 05:24 AM
post all your code its not possible to see enough from your image

edbr
06-26-2012, 05:27 AM
<iframe width="480" height="360" src="http://www.youtube.com/embed/Enwkj5KIjf0" frameborder="0" allowfullscreen></iframe>

just that will show a video from Bonfire b thats all you need to put on the page

yojames
06-26-2012, 05:48 AM
Well that sure sounds simple! I've been saving the original file to be safe, and replacing code with the new code wherever it looks obvious but it's not working. Here's the entire page code as you requested. Thanks so much!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/mainTemplate.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>BonfireŠ - A Tribute to the Music of AC/DC</title>
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
-->
</style>
<link href="_css/rules.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
-->
</style>
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<!-- InstanceParam name="bannerGraphic" type="URL" value="images/siteGraphics/topHeaders/topHeader1.jpg" -->
<!-- InstanceParam name="homeClass" type="text" value="current" -->
<!-- InstanceParam name="showsClass" type="text" value="holder" -->
<!-- InstanceParam name="reviewsClass" type="text" value="holder" -->
<!-- InstanceParam name="photosClass" type="text" value="holder" -->
<!-- InstanceParam name="mediaClass" type="text" value="holder" -->
<!-- InstanceParam name="linksClass" type="text" value="holder" -->
<!-- InstanceParam name="merchClass" type="text" value="holder" -->
<!-- InstanceParam name="bookingClass" type="text" value="holder" -->
</head>

<body>
<div id="wrapper">
<div id="header"><img src="images/siteGraphics/topHeaders/topHeader1.jpg" width="980" height="250" />
<ul>
<li id="booking"><a href="pages/booking.html" class="holder">BOOKING</a></li>
<li><a href="pages/merch.html" class="holder">MERCHANDISE</a></li>
<li><a href="pages/links.html" class="holder">LINKS</a></li>
<li><a href="pages/media.html" class="holder">MEDIA</a></li>
<li><a href="pages/photos.html" class="holder">PHOTOS</a></li>
<li><a href="pages/reviews/reviewsOne.html" class="holder">REVIEWS</a></li>
<li><a href="pages/shows.html" class="holder">SHOWS</a></li>
<li><a href="index.html" class="current">HOME</a></li>
</ul>
</div>
<div id="sidebar">
<!-- InstanceBeginEditable name="sidebar" -->
<div id="followSites">
<h2>Follow us on:
</h2>
<p><a href="http://www.facebook.com/people/Bonfire-Tribute-To-Acdc/100002402675867" target="_self"><img src="images/siteGraphics/fb_button.gif" width="54" height="54" vspace="1" /></a><a href="http://www.myspace.com/labonfire" target="_self"><img src="images/siteGraphics/myspace_button.png" width="54" height="54" /></a><a href="http://www.twitter.com/labonfire"><img src="http://twitter-badges.s3.amazonaws.com/t_logo-c.png" alt="Follow labonfire on Twitter" width="50" height="50" vspace="3"/></a></p>
</div>
<div id="mailingForm">
<div id="mailingCaption">Fans on our mailing list will have updates on shows, as well as discounts and free tickets
when possible. Join below today!</div>
<embed type="application/x-shockwave-flash" src="http://cache.reverbnation.com/widgets/swf/44/pro_widget.swf" height="200" width="242" align="top" bgcolor="#ffffff" loop="false" wmode="opaque" quality="best" allowScriptAccess="always" allowNetworking="all" allowFullScreen="true" seamlesstabbing="false" flashvars="id=artist_1229953&posted_by=&skin_id=PWFS5007&background_color=#C8C6B0&border_color=000000&street_team=false"/></embed><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://www.reverbnation.com/widgets/trk/44/artist_1229953//t.gif" />
</div>
<!-- InstanceEndEditable --></div>
<!-- InstanceBeginEditable name="mainContent" -->
<div id="mainContent">
<div id="upcomingShow">
<p><span class="nextshowHeading"><strong>-- </strong></span><span class="nextshowHeading"><strong> NEXT SHOW </strong></span><span class="nextshowHeading"><strong>--</strong></span> </p>
<p class="nextshowHeading">FANTASY SPRINGS CASINO &amp; RESORT</p>
<p class="nextshowHeading"><span class="showDate">Saturday June 30th</span> </p>
<p><span class="nextshowHeading">FREE SHOW! Outside at the ROCK YARD </span><span class="nextshowHeading">7:30 to Midnight</span><br />
<span class="nextshowVenue">Indio, CA</span></p>
<p><span class="nextshowDate">This is an outdoor show at the gorgeous Fantasy Springs Casino just east of Palm Springs, CA. This is our second time playing here, and the first show was a real party! If you live anywhere near Indio you won't want to miss this!</span><br />
<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://www.reverbnation.com/widgets/trk/12/artist_1229953/artist_1229953/t.gif" /><a href="http://www.quantcast.com/p-05---xoNhTXVc" target="_blank"><img src="http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast" /></a></p>
<p>-- Go to the Shows Page For More Information --</p>
</div>
<div id="newsHeading">
<h2 class="heading">Latest News</h2>
</div>
<div id="newsContent">
<p><img src="images/tempGraphics/birthday_cake.jpg" width="432" height="410" /></p>
<p><strong>January 5, 2012</strong> Thanks to the thousands of fans that helped make our New Year's Eve celebration in Las Vegas a complete success! We rocked in the New Year on the main stage on Fremont Street where we got to meet the mayor and play SIN CITY for all of the AC/DC fans! Keep posted as our new calendar becomes full with upcoming shows and events. </p>
<p><strong>November 21, 2011 </strong>We have just two shows left in 2011 before we head off to Las Vegas for New Years Eve celebrations. Go to our SHOWS page to get the details then get your reservations in for Vegas. We will be playing three shows at Fremont including New Years Eve at midnight! Come out and celebrate the beginning of a New Year with BONFIRE!!</p>
<p><strong>August 12, 2011<br />
</strong>We've added some new shows to our calendar, one of which is the rescheduled Corona, CA show, as well as 4 nights in Las Vegas. Go to the shows page to see if we're playing near you!<strong><br />
</strong></p>
<p><strong> July 7th, 2011</strong><br />
This month marks the 10th anniversary of Bonfire! Thanks to all of you for coming to the shows! Come help us celebrate 10 years of High Voltage AC/DC music!</p>
<p><strong>June 5th, 2011</strong><br />
Thanks to everyone who came out to Fantasy Springs. What a great show and all of you made it that way! We hope to see you again real soon!
</p>
<p><strong>May 12, 2011<br />
</strong>We've added a bunch of new shows. Check out the shows page for more info.<br />
<strong><br />
<br />
March 13, 2011</strong><br />
We've added a couple of new shows in San Bernardino, CA and Indio, CA, and are working on a bunch more, so stay tuned... </p>
<p><strong>Jan 31, 2011</strong><br />
Our new site has gone live with a new look. Check it out!</p>
<p>We have started using ReverbNation to handle our mailing list. Enter your email address on the right to receive info about shows. We sometimes get to offer discounts to our members so be sure to sign up! We will never sell or use your email address for any other reason. </p>
</div>
<div class="heading">
<h2>Other Stuff</h2>
</div>
<p align="center">
<object width="560" height="340">
<param name="movie" value="http://www.youtube.com/v/Txid6ullSwM&hl=en_US&fs=1&rel=0&hd=0"&autoplay=0></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Txid6ullSwM&hl=en_US&fs=1&rel=0&hd=0&autoplay=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>
</p>
<div align="center"><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://c.gigcount.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEyOTg1MjE4ODIxNTkmcHQ9MTI5ODUyMTg5NjIxMy ZwPTI3MDgxJmQ9YXJ*aXN*X3Nob3dtYXBfZmlyc3RfZ2VuJmc9/MSZvZj*w.gif" />
<embed type="application/x-shockwave-flash" src="http://cache.reverbnation.com/widgets/swf/12/schedule.swf?bandId=artist_1229953&backgroundcolor=C8C6B0&font_color=000000&view=smart&posted_by=artist_1229953" height="538" width="434" />
<br />
<a href="http://www.reverbnation.com/main/tunewidget_overview" onclick="javascript:window.location.href=&quot;http://www.reverbnation.com/c./a4/12/1229953/Artist/1229953/Artist/link&quot;; return false;"> <img alt="Myspace music player" border="0" height="19" src="http://c2sostatic.reverbnation.com/widgets/content/12/footer.png?1" width="434" /></a><br />
<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://www.reverbnation.com/widgets/trk/12/artist_1229953/artist_1229953/t.gif" />
<a href="http://www.quantcast.com/p-05---xoNhTXVc" target="_blank"><img src="http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast" /></a>
</div>
<p>Banner photo by Cory Fields</p>
</div>
<!-- InstanceEndEditable -->
<div id="footer">BonfireŠ is a registered trademark</div>
</div>
</body>
<!-- InstanceEnd --></html>

edbr
06-26-2012, 07:28 AM
try this then
delete
<p align="center">
<object width="560" height="340">
<param name="movie" value="http://www.youtube.com/v/Txid6ullSwM&hl=en_US&fs=1&rel=0&hd=0"&autoplay=0></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Txid6ullSwM&hl=en_US&fs=1&rel=0&hd=0&autoplay=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>
</p>
<div align="center"><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://c.gigcount.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEyOTg1MjE4ODIxNTkmcHQ9MTI5ODUyMTg5NjIxMy ZwPTI3MDgxJmQ9YXJ*aXN*X3Nob3dtYXBfZmlyc3RfZ2VuJmc9/MSZvZj*w.gif" />
<embed type="application/x-shockwave-flash" src="http://cache.reverbnation.com/widgets/swf/12/schedule.swf?bandId=artist_1229953&backgroundcolor=C8C6B0&font_color=000000&view=smart&posted_by=artist_1229953" height="538" width="434" />
<br />
<a href="http://www.reverbnation.com/main/tunewidget_overview" onclick="javascript:window.location.href=&quot;http://www.reverbnation.com/c./a4/12...st/link&quot;; return false;"> <img alt="Myspace music player" border="0" height="19" src="http://c2sostatic.reverbnation.com/widgets/content/12/footer.png?1" width="434" /></a><br />
<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://www.reverbnation.com/widgets/trk/12/artist_1229953/artist_1229953/t.gif" />
<a href="http://www.quantcast.com/p-05---xoNhTXVc" target="_blank"><img src="http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast" /></a>
</div>

and replace with


<iframe width="480" height="360" src="http://www.youtube.com/embed/Enwkj5KIjf0" frameborder="0" allowfullscreen></iframe>

yojames
06-27-2012, 02:02 PM
At first I tried that and it didn't work. Until I added the URL for the video in the "Link" box on the design page. Now it is working just fine. Thanks for helping, it was more simple than I thought.