MyBB Community Forums

Full Version: looking for something to pull videos from youtube automatically
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm trying to see if anyone is able to put together a plugin that will pull videos directly from youtube and post them on my forums.

I run a survival site and there's a few youtube users that publish weekly videos that I'd love to put on my site automatically.

maybe something that'll post the youtube link in a certain forum section, the video title and a short description of the video if the youtube author posted one.

I'd appreciate it.
You could use the RSS poster and add the Youtube RSS feed for the users you wish to follow.
(2011-04-28, 06:26 PM)Aries-Belgium Wrote: [ -> ]You could use the RSS poster and add the Youtube RSS feed for the users you wish to follow.

good point. I think you can link to rss feeds of a user channel, but not direct videos.
Every user channel has a unique RSS feed so it's possible to this. But you can't control what actually gets posted.
(2011-04-28, 06:46 PM)Aries-Belgium Wrote: [ -> ]Every user channel has a unique RSS feed so it's possible to this. But you can't control what actually gets posted.

here's 1 of the channels:
http://www.youtube.com/user/EatTheWeeds

all his videos are about eating plants and weeds.
This is his RSS feed:
http://gdata.youtube.com/feeds/base/users/EatTheWeeds/uploads?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile
Yes, however the most it will do is a link, it will not embed it into the post since it cannot parse the url into a video without another plugin.

If you would like to have that working, you can use
http://community.mybb.com/thread-55969.html
(2011-04-28, 07:41 PM)Matt G Wrote: [ -> ]Yes, however the most it will do is a link, it will not embed it into the post since it cannot parse the url into a video without another plugin.

If you would like to have that working, you can use
http://community.mybb.com/thread-55969.html

yeah, I have auto media installed to automatically embed videos.

the rss feed poster doesn't seem to run when I set it to run. it's supposed to run every 10min and it's been well over an hour and nothing has been posted yet. hmn..
ok, it finally did post some videos, but look at all the mess it posted along with the video:

http://www.andrewshemo.com/mybb/showthread.php?tid=10


<div style="color: #000000;font-family: Arial, Helvetica, sans-serif; font-size:12px; font-size: 12px; width: 555px;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td width="140" valign="top" rowspan="2"><div style="border: 1px solid #999999; margin: 0px 10px 5px 0px;"><a href="http://www.youtube.com/watch?v=X5pMLDBYIeU&amp;feature=youtube_gdata"><img alt="" src="http://i.ytimg.com/vi/X5pMLDBYIeU/default.jpg"></a></div></td>
<td width="256" valign="top"><div style="font-size: 12px; font-weight: bold;"><a style="font-size: 15px; font-weight: bold; font-decoration: none;" href="http://www.youtube.com/watch?v=X5pMLDBYIeU&amp;feature=youtube_gdata">Eat The Weeds: Episode 125: The Silverthorn</a>
<br></div>
<div style="font-size: 12px; margin: 3px 0px;"><span>Related to the Russian Olive and the Autumn Olive the Silverthorn or Thorny Olive is one of the few shrubs that fruits in the winter providing vitamin C when it is needed the most.</span></div></td>
<td style="font-size: 11px; line-height: 1.4em; padding-left: 20px; padding-top: 1px;" width="146" valign="top"><div><span style="color: #666666; font-size: 11px;">From:</span>
<a href="http://www.youtube.com/profile?user=EatTheWeeds">EatTheWeeds</a></div>
<div><span style="color: #666666; font-size: 11px;">Views:</span>
4095</div>
<div style="white-space: nowrap;text-align: left"><img style="border: 0px none; margin: 0px; padding: 0px; vertical-align: middle; font-size: 11px;" align="top" alt="" src="http://gdata.youtube.com/static/images/icn_star_full_11x11.gif"> <img style="border: 0px none; margin: 0px; padding: 0px; vertical-align: middle; font-size: 11px;" align="top" alt="" src="http://gdata.youtube.com/static/images/icn_star_full_11x11.gif"> <img style="border: 0px none; margin: 0px; padding: 0px; vertical-align: middle; font-size: 11px;" align="top" alt="" src="http://gdata.youtube.com/static/images/icn_star_full_11x11.gif"> <img style="border: 0px none; margin: 0px; padding: 0px; vertical-align: middle; font-size: 11px;" align="top" alt="" src="http://gdata.youtube.com/static/images/icn_star_full_11x11.gif"> <img style="border: 0px none; margin: 0px; padding: 0px; vertical-align: middle; font-size: 11px;" align="top" alt="" src="http://gdata.youtube.com/static/images/icn_star_full_11x11.gif"></div>
<div style="font-size: 11px;">110
<span style="color: #666666; font-size: 11px;">ratings</span></div></td></tr>
<tr><td><span style="color: #666666; font-size: 11px;">Time:</span>
<span style="color: #000000; font-size: 11px; font-weight: bold;">07:24</span></td>
<td style="font-size: 11px; padding-left: 20px;"><span style="color: #666666; font-size: 11px;">More in</span>
<a href="http://www.youtube.com/categories_portal?c=27">Education</a></td></tr></tbody></table></div>
Oh Yes, I forgot some vital information.

Because of the fact that youtube posts html in feeds, you will have html in the posts.

If you are using this
http://mods.mybb.com/view/rss-feed-poster

then there should be an option to parse html.

however, you are copying the code, so you might get in trouble for copyright issues.
(2011-04-28, 09:29 PM)Matt G Wrote: [ -> ]Oh Yes, I forgot some vital information.

Because of the fact that youtube posts html in feeds, you will have html in the posts.

If you are using this
http://mods.mybb.com/view/rss-feed-poster

then there should be an option to parse html.

however, you are copying the code, so you might get in trouble for copyright issues.

not sure what you mean when you say I'm copying code.
Pages: 1 2