« Beware of Using URL Shorteners with FacebookThe Lemon Battery Enters the New Decade Thanks to Howcast and Cinelerra »

Getting Youtube Videos to Show in Google Reader

01/10/10

  06:23:02 am by wdawe, Categories: web

I was always curious why I didn't see any referrals to my Lemon Battery video from Google Reader so I subscribed to my own RSS feed using Google Reader to see what was up. I always though that b2evolution, the blogging platform I use had the proper incantation in it's RSS feed because nixiepixel.com, a blog I subscribe to had embedded videos show up in it's RSS feed. Nixiepixel has since switched her blog to Wordpress so I found another b2evolution blog to check what was different with their feed which also included Youtube videos. That feed along with a posting on the Google reader blog led me to the solution. Google Reader requires the HTML embed tag to be used if you want videos to be displayed in an RSS feed. Once I knew the solution I made a small modification to _videoplug.plugin.php in the plugins directory of b2evolution where I changed:

PHP

$content preg_replace'#\[video:youtube:(.+?)]#''<div class="videoblock"><object data="http://www.youtube.com/v/\\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\\1"></param><param name="wmode" value="transparent"></param></object></div>'$content );

to

PHP

$content preg_replace'#\[video:youtube:(.+?)]#''<div class="videoblock"><object data="http://www.youtube.com/v/\\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\\1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\\1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed></object></div>'$content );


I expect some of the purists will say that the embed tag is a relic and shouldn't be used but if you want your videos to show up in Google Reader that's what you have to do. Though this example is specific to b2evolution other blogging platforms may have similar issues. Sorry to all my Google Reader fans for taking so long to figure it out. Now all I have to do is get Google Reader to add support for Howcast.com videos.

3 comments

Comment from: Peter Thomson [Visitor]

Great article! I’ll definitely comback again for a visit, keep up the good work!

11/09/10 @ 00:56
Comment from: CD Pressung [Visitor]

This is a really cool description guys. Thank you and regards from Germany

01/13/11 @ 20:50
Comment from: Christmas Customs [Visitor]

Good to know! Thanks for the info.

09/20/11 @ 14:04


Form is loading...

Cool web tools, EEPC tips and Linux info. Browse around, I'm sure you will find something to interest you.

Search

  XML Feeds

Multiple blogs done right!