Pages

Monday, May 21, 2012

10

Another gadget for YouTube Activity Feed, works with Opera

Few days ago I finished making my first Yahoo! Pipe, which collects info from YouTube channel feed page, and republishes that info. Yesterday I noticed, that Yahoo! Pipes badge output does not support Opera – with Opera, nothing is shown. It is strange that Yahoo does not fix this, maybe it is because Pipes is a free product. About 3 % of my blogs readers use Opera.

I knew I could make a gadget that works on Opera, too. Yesterday evening I coded first a javascript version, and today morning a little tidier jQuery version.


Installation is simple: add an HTML/Javascript gadget and put the following code in it:



You can leave out the first line, if your template already loads jQuery. Make necessary configuration changes (change YouTube user name, for example). I did only very basic CSS, you can of course modify it to your liking. Code can be used also outside Blogger (in any html page).
[Hide comments] - [Show comments]
Click on a single comment to hide/show its text

10 comments:

Taufik Nurrohman said... [reply]

Nice! Nice! Nice! :D
Then...
<div id="ytfeed">Loading...</div>

MS-potilas said... [reply]

@Taufik Nurrohman Thanks, that was a good suggestion, I edited the source. :)

Anonymous said... [reply]

can i show only my uploaded youtube videos ?

MS-potilas said... [reply]

@allmytutorials
Hi, yes it is possible,I did a pipe for that, too. Now in line 20 there is this pipe id:

?_id=58c841d14337ba4fbf693abd9701dc49&_render=

change that to:

?_id=64c7203aec6a1eba3619e30e58870c13&_render=

Anonymous said... [reply]

@MS-potilas

That's a master piece its working fine.You take a blogger platform to new level soon google will hire you ;)

Unknown said... [reply]

Excellent work! You rock!
Is there any method of fetching the summary (description/snippet) of the video?
Thx again.

MS-potilas said... [reply]

@Om Swami Thanks :) The descriptions can be fetched, but that would make either the javascript code or the pipe quite complicated. Description can be fetched using Youtube gdata API, this article explains it quite well: http://salman-w.blogspot.fi/2010/01/retrieve-youtube-video-title.html.

Unknown said... [reply]

Ok, no worries. I guess I'll use it without description! :) Even if I could fetch duration of each video that would be nice. Never mind.
Also, I just sent you a message too using the contact form. Hope you'll find a moment to look into that. :)

Shaan Haider said... [reply]

Thanks for an amazing widget but unfortunately it's not working properly now.

It was not able to fetch thumbnail of all the videos, just one out of eight in my case. Also there is a comma coming before the title of each video title.

Can you please fix this? This is an awesome widget and I really would love to use it on my website.

Thanks and Cheers :)

MS-potilas said... [reply]

@Shaan Haider
Hi, and thanks for reporting the bugs. It should work now. :)

Post a Comment

Related Posts Plugin for WordPress, Blogger...
See the hack
for this dynamic
views icon: