« Beware of Using URL Shorteners with Facebook | The Lemon Battery Enters the New Decade Thanks to Howcast and Cinelerra » |
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 ); |
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 ); |
Great article! I’ll definitely comback again for a visit, keep up the good work!
This is a really cool description guys. Thank you and regards from Germany