BuddyDev

YouTube feed Plugin for Buddypress

This plugin has been deprecated due to changes in Youtube API. We do no support it anymore.

After a couple of weeks of creating this plugin, I got sometime today to update it for groups and here we have the YouTube feed plugin for Buddypress. Not named much elegantly but I call it "Bp-Youtube Feed" plugin.

Special thanks to Lee, Ben, Chris for the idea/testing of the plugin.

What It does:-

  • It allows your users to associate their youtube account with their buddypress profile
  • Group admins can associate youtube account with the group

and It will fetch and show the most recent 25 items/videos from the youtube feed.

What features is included:-

  • You can force it to be used only for Users
  • You can force it to act as group only features
  • Group admins can enable/disable the youtube feed plugin for their group.
  • and Obviously you can theme it as you want.

How to Use it:-

1. For User profile:-

If the plugin is active, you will see a profile tab named "Youtube", the very first thing you need to do is associate a youtube account with your profile. To associate a youtube account, please click on Youtube link and then to the settings sun nav. Here is a screenshot.

Once you have entered the youtube use name, Click save, and the account will be associated. Now when you visit theΒ  profile, you can see the feed as shown below.

The videos are from youtube's account, which I used for testing.

2.For groups:-

If the plugin is active for group, when creating a group, on group settings page, you will see the option to enable/disable YouTube feed plugin. Even if you decided to disable it, you can always turn it on(or off) By visiting Your group->Admin->Group settings and checking the box which says enable Youtube feed as shown below.

After you enable it, you will see and option in the admin as "YouTube feed settings" as shown below, you can associate the youtube account here.

Once the YoutubeΒ  account is associated, you can see the feed in the YoutTube tab of the group nav.

Here is a screenshot.

Download:

Please checkout this plugin here https://buddydev.com/plugins/bp-youtube-feed

Installation:-

  • Download the plugin bp-youtube-feed if you have not downloaded yet.
  • Unzip it.
  • Move the folder "bp-youtube-feed" to wp-content/plugins
  • Copy/ move the folder "yt" from bp-youtube-feed to your active theme.
  • Login to WordPress dashboard and go to dashboard->Plugins
  • Activate the "BP-Youtube Feed"
  • That's it.

Customizations:-

Change the slug:-

Please put the following line in your bp-custom.php

Disable Bp-Youtube Feed For Users

Please put the following code in your functions.php or bp-custom.php

Enabling The Youtube feed for Groups:-

By default, the plugin is disabled for group, you can enable it by adding the following line of code to your bp-custom.php or the functions.php

Localization:

You can generate an mo file from the po file included with the plugin. Move your mo file to bp-youtube-feed/languages directory and rename the file to bp-yt_YourLocal.mo

Well, that's it for now. I am looking forward to your suggestions for improving the plugin. Please do let me know in comments if you find any problem or want to suggest a feature.

Happy BuddyPressing πŸ™‚

82 Responses to YouTube feed Plugin for Buddypress

  • Nice one, Brajesh. It's looking good πŸ™‚

  • I've followed the instructions but I only see 'My Youtube' under the tab and no 'settings' link. Any ideas?

    • Hi Ross,
      If possible, please check using firebug, I guess, It is most probably a css issue.

    • It's okay, it was a css issue in my theme! Sorry! πŸ™‚

      Great plugin by the way!

  • thanks for this plugin, it is really cool!
    I am struggling with the translations.
    Ive tried both using filenames:

    bp-yt-nb_NO
    and
    bp-yt_nb_NO

    but it wont read em. just stays in english. The translations are correctly made through poedit. Halp? =)

    • Hi Carl,
      Thanks for the comment.
      Is your wordpress local set to nb_No.

      You should name the mo file "bp-yt_nb_NO.mo" and put it inside the bp-youtube-feed/languages directory.
      Please let me know if you have already tried this ?

      • Hey Brajesh, thanks for quick reply!

        yeah my wp-config locale is nb_NO

        My filename is bp-yt_nb_NO.mo / .po

        It's really weird that it isnt working… ive cleared my own caches, could it be an sql cache or tough cookie?

        Was also wondering, do you know how to embed a youtube video in a user profile field? ive been browsing like crazy trying to find a way.

        Oh, and if you want, i can send you the norwegian translation for future releases. If we get it working that is =)
        -carl

        • Hi Carl,
          Just checked, yes, there was a small bug left in the loading function causing not to load the language file.
          Just editing it, will put online soon(I have also edither the theme file to make it fully translatable now).

          Will post here soon and I will appreciate you sending the mo file once we get this running for you πŸ™‚

  • Sweet, will do! πŸ˜€

  • gwu #

    Hey Brajesh,

    Great plugin. Every plugin by you adds that one good to have feature.

    I am just using this for the groups. What files can i get rid off in the theme "yt" folder.

    Thanks.

  • Hello,
    Is it possible to display the user's favourite videos instead?

  • How hard would it be to do a friendfeed sync?

  • When I click the youtube button on my profile I get this error message:

    Fatal error: Call to undefined function bp_yt_is_settings() in /home/ab9988/public_html/wp-content/themes/LabSecrets/yt/index.php on line 26

    I tried putting the yt folder in my theme as well as the BP Default folder. Neither work.

    • Please check the forum post I replied. Most probably the plugin was not uploaded completely.

  • gwu #

    Can we change the number of videos to be something other than 25?

    • Hi Gwu,
      You can lower that limit but can not increase. Youtube public feed(without authentication) does not allow more than 25 items in the feed as far as I remember.

      • Where is the setting or code to change the number of videos?

  • I still can't get this plugin to work. I've tried Brajesh suggestion in the forum and I still get this same error message

    Fatal error: Call to undefined function bp_yt_is_settings() in /home/ab9988/public_html/wp-content/themes/LabSecrets/yt/index.php on line 26

  • I activate the plugin, and I get the My Youtube and Setting links, but when i click in any of the links, it just takes me to the homepage…

    WHat could be the problem?

    Thanks

    • Hi,
      seems you have not moved the "yt" folder from bp-youtube-feed to your current theme. Please move "yt" to your current theme and It will work.

  • Brajesh,

    I am YouTube challenged. The plugin is installed and all seems to working well. I put the my YouTube user name in the settings tab. But it says, "Sorry, there were no items found in the stream." What exactly is the stream? How do videos get added to the stream?

    Sorry in advance for the ignorant question.

    Miguel

    • Hi Miguel,
      I am sorry I missed your comment. The stream is the youtube feed for the user. Please check your feed on youtube. If you have a public feed, the videos will be automatically get added to your profile when you visit it.

      • Hi Brajesh, I'm getting the same problem as Miguel – "Sorry, there were no items found in the stream".

        I've checked my YouTube account settings and it all appears to be set up for public viewing, not private. But I'm not that familiar with YouTube so I'm not sure exactly what I should be doing? I have viewed lots of videos and have a playlist and subsciptions on YouTube so there ought to be content?

        Your plugins are great, by the way!

        Jeremy

  • Hi,

    I have made Japanese Translation, which can be available at http://staff.blog.bng.net/downloads/bp-youtube-feed-1.0.1.zip

    When uncompressing the zip, there are some plugin scripts that I fixed in order to call the function "bp_yt_load_textdomain", because original scripts did not call this function so that language files were ignored.

    I hope you will accept and include them for the next version.

    Thanks in advance.

    • Hi Chestnut,
      Thanks for the heads up. I will be glad to Include it in the next update. I have got your mail too and will put the credentials there πŸ™‚
      Also, will make sure to update the plugin to allow text domain loading/naming easily with just LocalName.mo file.

      Thanks
      Brajesh

  • Neat Plugin. Most users in my community don't have YouTube accounts, so I'd like to see the YouTube tab not show up by default in member accounts, instead have it as an option for the member to enable in the "General Settings" area (password reset page). Then it would be useful to those who have a youtube account and not be a wasted tab for thos who don't.
    Cheers

    • Hi Michael,
      A very good Idea indeed. Liked it much. It will be much better to allow users to enable/disable. Will come for sure in the update. I am working on updating almost all plugins this week, so please keep an eye over this plugin. Hope to have an update by weekend.

  • I've installed this plugin on WordPress 3.1.1 running buddyPress 1.2.8. When I click on YouTube Feed Settings, it redirects to the root of the site or home page. Any suggestions you could provide would be fantastic.

  • Just got a tweet from @buddydev "move the "yt" folder from plugin to your active theme. That should fix it." It did fix my issue.

  • Hello..

    I'm using the BPMag theme and i get this error when i go to My YouTube:

    Warning: _() expects exactly 1 parameter, 2 given in /home/arcticpe/public_html/wp-content/themes/bp-mag/yt/yt.php on line 39

    Any idea?

    • @all,
      The issue Rune pointed is fixed in update 1.0.8 of bp-mag. It was related to bp-mag template.

  • Hi Brajesh,

    I am looking for a plugin that would allow users to be able to display user's youtube video on the sidebar on their profile page (just like they do on tagged). this plugin works nice, but I would like to know if there is a way to modify it as a widget so that I'll just add the widget and the user can just paste the video link and have it display on the user's profile page on the sidebar. Do you know of any such plug in?
    thank you,

  • gwu #

    in the feed_link you can put max-results=50, this is the max number of videos one can get.

    $feed_link="http://gdata.youtube.com/feeds/base/users/".$yt_userid."/uploads?v=2&alt=json&max-results=50";

  • When I enter a username, I don't think it is saving. When the page refreshes, it always says "Array". And then it never pulls my videos.

  • Installed on BP 1.5

    when I click on the youtube tab on my profile I get "Oops! This link appears to be broken."

    I used the bp 1.5 update.

    thank you in advance.

    • Hi Nosoura ,
      have you moved the "yt" folder from the plugin to your currently active theme. Please move that and It will work.

  • I noticed that the pluggin stoppped working under buddypress 1.5. It won't allow me to save the Youtube account userid

  • Ray #

    There is a major flaw with this plugin. It seems to be corrupting our DB and causing white pages in our admin. To be sure we wiped out our DB 3 times and every time we installed the plugin the white pages came back.

  • Ray #

    Interesting update – I wanted to use this plugin so bad that I stayed up all night to figure it out. I must have wiped out the DB and deleted all WP files 6 -7 times before I narrowed it down. BP-Youtube Feed works perfectly with the buddypress default theme. When combined with the theme "Frisco for BuddyPress" I get white pages in the admin and public side.

    With that being said, id rather use BP-Youtube Feed if it means not using "Frisco for BuddyPress". Is anyone successfully using an alternate theme with this plugin?

  • Feature request. If you could display a specific playlist from a YouTube account rather than all videos on account, that would be amazing.

  • Looks cool…It would be very nice of u if u create a media plugin like the BP Media which looks good…It actually misses 1` option ie. phototagging…

  • Hi Brajesh!

    Are there any updates due on this plugin?

    The embeds don't have the 'Full screen" or the "Play on YouTube" links that regular embeds do. Any way to have them?

    Ross πŸ™‚

    • Hi Ross,
      Thank you for the comment.
      That was intentional in the plugin. I wanted to give users a feeling that the videos are just like the normal uploaded videos.
      I am noting down your suggestion and will be updating this plugin soon to have that πŸ™‚

      • Thanks for the update Brajesh! GREAT plugin! πŸ™‚

  • Hey, excelente plugin! Congratulations!! How Can I change the "Settings" Youtube's subnav to the tab "Settings" or another location?? Thanks!

  • Nice plugin again, Brajesh. An idea to this plugin: make a option to select a "featured video" of your YT feed and this "featured video" will appear in a sidebar widget of your profile. Nice, liked??

    • Hi Tiago,
      Thank you for the comment. Nice Idea πŸ™‚
      Will be glad to do that. The version 1.6 of BuddyPress is due soon and I will be updating this plugin for that and will provide some way to allow featured video πŸ™‚

      • Thank you very much for answering my idea, Brajesh. When you launch will be the first to download! Bye, hugs and thanks again!

      • I know I'm very demanding, sorry, because I like your plugins and this plugin, but suddenly I had a very good idea too. Your plugin could have connectivity to the activities of each user. After you set your channel, and if a new video was released, would appear as an update on the Activities tab. Nice idea again??

  • This is one of a few of your plugins that isn't working with PHP 5.4 yet (bp-wire and bp-flickr as well, and perhaps a few others).

    Attempting to activate this plugin on a system with PHP 5.4 results in a fatal error of:

    Call-time pass-by-reference has been removed.

    • Hi TJ,
      thank you for the comment. Sorry, I missed it earlier.
      You are right about the php 5.4 issue. I have been updating plugins for BP 1.6 and when I put it for bp 1.6, will fix this issue.

      Thanks
      Brajesh

      • Hi, Brajesh. Any progress being made for PHP 5.4.x support yet?

  • Is there a way to let the user choose to just pull videos from a specific playlist? This would be a very handy function since they may not want to share all their YouTube videos on their bp-profile.

    • Hi Aleks,
      That's a very good idea. I will try it for the plugin when bp 1.7 comes πŸ™‚

  • I've dropped you an email Brajesh!

    Think the plugin needs an update for BP 1.7.

    I've upgraded today and the YT tab no longer appears in profiles!

    Any ideas?

    Thanks so much! πŸ™‚

  • Hi,

    This looks like a fantastic plugin but unfortunately it doesn't work with Buddypress 1.7
    The YT tab doesn't show on the profile page.

    I hope it could be solved.

    Best regards!

  • Hi Brajesh, Will you be updating this or have you stopped working on it?
    Regards,
    Ben.

  • @sbrajesh If you have stopped working on it can I take it over?

  • Works great thanks @sbrajesh πŸ˜€

  • I get it installed, I see youtube feed settings in group and when I add user name it says successful, but no youtube feed tab in the group tabs.

    yes I moved YT to my theme root.

    • You might want to remove it from your root theme because I have had no success implementing the feed in my theme that way…. I have left the plugin theme in the plugin folder and changed the CSS a little, but there is a new problem on the horizon. Google is about to release YouTube Data API v3 and this will cause you to loose your youtube feed without a developers key and the use of JSoN to parse the data… I can't remember if @sbrajesh used JSON or XML to parse the feed…

  • @sbrajesh Bro are you going to update this plugin to work with YouTube's Data API v3… Just a question with all the changes happening over at google… Java deprecated and now a new YouTube API… They are killing me with all these changes…

  • Brajesh,

    This Push and I was wondering if you have any new updates for mediapress and the bt youtube feed…

    Thanks

    Push

    • Hi Push,
      I tried doing it 2 weeks ago after your comment ton MediaPress post. The problem is youtube data API v3 does not allow to fetch videos of a users like earlier. We have to either fetch from channels or seach. That makes this plugin and the whole idea of it invalid.

      I don't see a way to get around this limitation. If yo have any ideas, please share.

      • I'll have a bash at this Brajesh,
        Sorry not been around for a while, I did message you but I think the site was messing up,
        I doubt I have long but I'll test this once I've updated all my chat plugins on Sunday, I've now only got bp/wp under test conditions only as I couldn't update, But I miss it to be honest!

        • Hi Ben,
          Welcome back πŸ™‚ I hope you are doing well now. Please don't say that you don't have long time. I hope everything will be better.

          I have been seen your work and you have done commendable job on supporting, updating them. I wish I could follow your footsteps in supporting my own plugins.

          If you work on it, Please do let me know πŸ™‚
          Thank you
          Brajesh

  • Brajesh,

    I agree with you about finding a solution to this issue without adding more drag on server resources. I am looking into a solution right now and I have noticed that it is easier to pull a playlist from their API. This is not feasible without the user building a playlist of their videos. I have another idea of pulling the videos individually from the youtube link, because it is still easy to pull the video by using the video id. This would require that the buddypress user to input the video id one at a time and inserting that into the data base table. You could loop the iframe for each row in the database under a specifc user. This is the easiest solution in my book. I would also look into pagination for each loop group. I can write the code, but I am currently working on a new fork of imath's ideas plugin called missions.

    In my opinion, I would concentrate on the mediapress plugin until we can figure out a solid solution to the Youtube Feed issue. Your plugin is not the only one having problems with the new youtube API. I have looked around on the web and it has hit a lot of youtube related plugins.I think the idea of looping an iframe based on the users input of the video id is a much better solution. I would also look into the embed function of the WordPress youtube embed.

    When I am done with the missions plugin I will be uploading it to github in a private respository if you want to work on it with me. I am almost done with the base of the fork, but I am having issues with the tinymce form. I have integrated some codes from the mycred application to give users points for completing missions. It's an awesome fork…

    Thanks

    Push Wilson

  • Any updates to this plugin yet? I was reading the comments and it looks like it was not going to work. When I try to activate this plugin I am getting this error "Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home/themajes/public_html/thelovezone/wp-content/plugins/bp-youtube-feed/bp-yt-template-tags.php on line 139"

    Any news will be helpful.

    Thanks

    • Hi DaRon,
      Due to changes in Youtube API, we deprecated this plugin. It is no more feasible to extract channel videos feed like the plugin needed, so we had to deprecate it. I am sorry about that.

      • Is there another plugin or recommended way to accomplish the same thing as this plugin?

        • Hi Mark,
          I am sorry but I am not aware of any at the moment.

  • Bah, I came here to see why I was getting the line 139 error, gutted to see this isn't working any more.

    The following plugin allows you to set up a central 'gallery' for Youtube subs, but I really wanted it to be for the YouTubers in my community to share their content.

    https://codecanyon.net/item/youtube-plugin-wordpress-gallery-for-youtube/14115701

    • Hi Graham,
      I am sorry for the inconvenience. The change in YouTube API made it almost impossible to fetch videos from user account. It is allowed to fetch from channels though. The goal of this plugin was to list all videos of the user irrespective of channels, which seems almost infeasible now.

      Next month, we are adding the oembed support to MediaPress, may be that will be of some help.

      Regards
      Brajesh

  • ah plugin is good but not compatible with WordPress version 4.8 (current one) error 503

    • Sorry about that Aditya. This plugin is no more maintained due to changes in the Youtube API.