Friday, May 11, 2007

firefox, wordpress blogs, and youtube problems w/embedded videos...

i would consider myself still to be a rather newer user of wordpress for my blogging. i previously had used blogger for all of my blogging needs. however, i hate how wordpress handles youtube's embedding code.

for example, this is the code that : <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/HsN3bqc2wos"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/HsN3bqc2wos" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

normally, if i want to embed a youtube video into one of my wordpress posts, i will go to the HTML tab in my post and then paste the above code in.  however, i noticed that after i did this and then viewed the published posts in firefox; the formatting of anything after the embedded video would get really 'funky'.   the problem does not happen when i view the posts in Internet Explorer 7.0 (ironically eh?).   i also noticed that if i embed video in a post via the HTML tab in the wordpress Editor and have the Ad-Block extension enabled it will add the "block this ad" to the photos/images or video.  this only seemed to happen if i saved the post and then went back to edit it.

what i have done to avoid the formatting weirdness w/embedded videos from youtube is to just remove the <object .... code lines, so from the above code i would only put in this to embed the video into one of my blog posts:

<embed src="http://www.youtube.com/v/HsN3bqc2wos" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>

once i did this, the posts formatting seemed to be fixed for me and my posts.  almost seems like the <object> and <param> are the problems.
hopefully that helps other wp users w/these problems. :)