BuddyDev

BuddyPress Friends suggestions Widget:- Help your Users to Build Their Network faster

Thanks to Gwu for the basic idea and the code of this widget. Here I am putting it with some enhancements.

Now we have the basic friend suggestions widget for BuddyPress based social network. It will display a friend suggestion list like facebook friend suggestion to the logged in user and the user can add new friend or hide the suggestions.

In the current version(I am calling it basic version), The possible friend list is built by looking for friends of friends and then providing the suggestion to the user. A pro version is available with profile profile field data based suggestions.

Features:-

  • Show suggestions based on the friends of friends connections
  • Allow user to hide a suggestion from showing in future
  • Allow site admin to limit the number of suggestion is shown at a time

For Future versions, I am considering the following possibility:-

  • Allow friend suggestion based on the xprofile fields

Obviously the suggestions are randomized to avoid looking boring πŸ™‚

How about some screenshots:-

Friends Suggestion widget in available Widgets list:

Friend Suggestion Widget Options

Friend Suggestion Widget Display:-

The widget does not supplies any css, so you will need to update the css according to your theme. The above look is from bp-default theme when we do not apply any css.

In case you want to call the widget via php, you can do the following

Download & Installation:-

https://buddydev.com/plugins/buddypress-friends-suggest/

Localization:-

put the translated mo file as your_local(eg. en_US).mo in the bp-friends-suggestions/languages directory and It will show the localized strings.

I am sure some of you will find it helpful and when the next version comes out it will be much more helpful.

Let us say thanks to @Gwu again.

Have some ideas for further improvement, any feedback, please let us know in comments. Looking forward to your feedback.

77 Responses to BuddyPress Friends suggestions Widget:- Help your Users to Build Their Network faster

  • Nice, but on what factors does it work, how does it look for people that might be friend-material?
    Only trough friends of friends or is there more to it already? ^^

    • Hi Xevo,
      Thanks for the comment.
      Currently it uses only the friends of friends logic but in next version, I am sure it will allow on the basis of xprofile fields(say similar interests or location etc).
      If you think any other better option, please do let me know for building suggestions list.

  • Nice Plugin, i use it now, since 5 minutes – looks what userΒ΄s say…

  • Pingback:Daily Tip: Build Your BuddyPress Community With the Friend Suggestions Widget | WordPress, Multisite and BuddyPress plugins, themes, news and help – WPMU.org

  • Liz #

    Nice widget!

  • I like this plugin and will implement it soon. I was just wondering if a similar plugin could be developed that suggests groups for a user to join, based off what groups they have already joined, or the groups that other members belonging to a common group (to the user) belong to. Again great work on this plugin.

    • Hi Guy,
      That's already on the plate. GWU had sent me the basic code for that too, but I have not posted as It will need some editing to make more efficient. Will come anytime soon.

  • What happens if you are a brand new user and have no connections yet?

    • Hi Philippe,
      If the new user has no friend, It will show a message that we don't have enough information to suggest a friend yet.

      • I have a multisite install and the plugin is showing the message "We don't have enough… …" is showing up to all users except for new users that just signed up….

  • OK – Would suggest then that the next version could randomy display some people, just to get the proverbial ball rolling

    • Also another question (or suggestion if it doesn't do it already). It would be very beneficial if this plugin were able to monitor who you are already connected to so that it doesn't suggest those people.

      Cheers!

      • It already does so. It will never saw a member who is your friend or if you have any pending requests. So, only new people are suggested.

    • Sure, that's a good feature and I will certainly put it in the upcoming version πŸ™‚

  • Hi Brajesh, Can this plugin work with BP followers instead of friends?

    • Hi,
      Thanks for the comment. Haven't checked with Followers, but will test and make some changes in next version to allow with that plugin too.

      • Hi Brajesh,

        Any idea as to when you might have an update on this plugin? We're excited to be able to use this once you have released your next version.

        Thanks!

        Philippe

      • Hi Brajesh, I would highly appreciate to understand if there is any update on the integration with Buddypress Follow in order to have followers instead of friends. Thanks a lot and best regards

  • Most excellent!

  • gwu #

    Hi @Brajesh,

    any updates on group suggestion plugin?

    Thanks.

    • Hi Gwu,
      Missed to update it earlier. Will update this weekend.

  • this plugin is absolutely great, but it will be nice if the ADD Friend button can just be a small icon with the word add friend in front and align under the Suggested name instead of this current position.that will be so cool and neat

  • Like it does on facebook , which makes it very neat the icon can just be + sign.

    • Thanks for the suggestions Abbey.
      Will add something similar in future. For now, you may want to do the same with css.

  • thanks for your reply, do i need to create a new css file for it because there is no css file there that i can edit, only php and js.

    regards

  • Hi I was just wondering if there was any update on the group suggestion add on / version of this plugin – thanks, Guy

    • Hi Guy,
      I am sorry for that. I am not sure about the criteria we will use to suggest groups. Can you please suggest some way which will be helpful ?

  • gwu #

    Hi @Brajesh,

    any updates on group suggestion plugin?

    Thanks.

    • Hi GWU,
      I am sorry for not publishing that. I need some help regarding what criteria we should use for suggesting groups ? Can you please help.

  • @sbrajesh nice widget … but strangely i didnt find it on your site in the list of plugins… found it because WPMU had mentioned it in one of their articles.. but wonderful! was reading all your notes… and looks like you know where to take this one with the next release… nice!

    • Hi Siddhart,
      yes I missed to include it in plugins section. Will have it this weekend. Also, the suggestions based on profile fields will come with the bp 1.3

  • Hi!!!
    brajesh i got a website, its an social networking site, on buddypress some of ur plugins are really good(premium) so, i need them but wanna ask that i am installing ur cosmic theme but it is showing some error in ajax.php same with some plugins so, need help with theme and what if i go with ur permium plugins and it show same error.

    mayur

    • HI Mayur,
      sorry I could not see your message earlier.
      We support all the plugins in the forum and in normal circumstances they will work out of the box. Yer could be some of the cases where they may not and That is why I am always there in the forum.

      Sorry for my delayed reply. If you need any help regarding anything, please PM me.

  • Hi, nice plugin thanks. Do you know when the version that uses profile fields will be available? and the groups one? For the groups even something that just suggest groups your friends have joined would be great

    thanks again

    Rachael

    • Hi Rachel,
      Thanks for the comment. I will put a plugin for group suggest this weekend.
      For profile fields, we may have to wait till bp 1.3 comes out.

  • gwu #

    For group suggestions, I think the only meaningful way is to get unique groups of your friends which you are not already a member of.

    • Agreed. I was just not sure in the past about it's usefulness. Now, looking at your comments and a few others, this seems the best way to go for now πŸ™‚

      • Suggesting any members from the groups the current user belongs to – that would be incredibly helpful to us. Looking forward to this feature.

  • @all,
    Please check back tomorrow for group suggest plugin πŸ™‚

  • Good to see the Group suggestion plugin Brajesh. Any idea when you will update the Friend suggestion plugin with the ideas discussed in this thread?

    Thanks!

    • Hi Philippe,
      BudyPress 1.3 is dues this week(friday as per the dev chat). Will update as soon as the RC comes out.

      • This Friday, as in tomorrow the 19th? Awesome! I can't wait. I'll be the first to test it out πŸ˜› Good job!

        • Hi Mike,
          yes, the New BP 1.3 beta is coming tomorrow. I am too looking forward to that πŸ™‚

  • Hi,

    This is a nice plugin and I have installed the plugin on my site but it is now showing the widget. Is there anyone who can help me.

    Thanks

    • Hi Jatinder,
      I am sorry, I did not get it. Is it no appearing in the widget ?

  • Will your plugins work in a communitypress based site??
    Anyway,all your plugins look gr8…

    • Hi Deepak,
      Thank you for the comment.
      Ideally It should work with CommunityPress but CommunityPress is based on BP 1.2 branch(I am not sure If it was updated for Bp 1.5 branch), so you may need older version of this plugin(Please check the bottom page of this plugin for the version history).

      Hope that helps.

  • Hi Brajesh. Do you have any plans to expand this a bit and make an option for the suggestion to be based on common friends? If I didn't explain well, I mean something similar to Facebook, where if you and another user have similar friends it will list those friends and suggest that you 2 also become friends. I feel that would be a welcome addition to this plugin. There's nothing really like this that I've searched around for. Thanks, Roger.

  • Thanks for the widget!! I really like it. One small thing that I did not like about it is that if there were no friends to suggest, I would prefer if it not display the widget at all rather than displaying a message saying that there is not enough information. I have made the following changes to accomplish this, and I'd be happy to submit a patch if you wanted.

    The changes are all in bp-friend-suggest.php
    In bp_show_friend_suggestions_list I removed lines 87-113 and added them to a new function called find_possible_friends() which returns the array of possible friends. Then I added on line 87:
    $possible_friends = find_possible_friends();

    Then in function widget() and function bp_friend_suggest_add_js(), I replaced
    if(!is_user_logged_in())

    with:
    $possible_friends = find_possible_friends();
    if(!is_user_logged_in()|| empty($possible_friends))

    Pretty straightforward if anyone else is interested.

  • MBT #

    Hi Brajesh, congrats for your work developing this plugin! I wonder when you gonna launch the new version, the one which takes in consideration profile fields to make more accurate friend suggestions.

  • Hello. I have installed the plug-in, and it breaks, anything below in my sidebar section is disappears. I've tried using both the Twenty-eleven, and Buddypress default themes to test. I see the title of the widget, however, everything else below it disappears.

    • Hi Dave,
      which version you are using ?
      I just tested version 1.0.1 with BuddyPress 1.5.5 and bp-default theme and It is working fine for me. Is there any chance that the friends component is disabled ?

      • Hello, that was it. Thank you for your help. I did have it disabled.

  • gwu #

    @brajesh – how can we filter out users to whom a friendship is already requested

    thanks

  • Hi @brajesh,

    First of All, thanks for both , they are very useful.

    Does the new verson (that suggests friends based on profile and supports follow) have been released? Of. Not, how can we help tiΓΊ developing The update?

    Thanks and regards,

    Felipe

    • Hi Felipe,
      Thank you.
      It is not yet in the update. I plan to release something like that with BuddyPress 1.6.

      Regards
      Brajesh

  • Hey Brajesh… any update on when the next release will be out (mainly looking at suggestions based on profile fields)… really looking forward for this one… thanks for all the work you put in to make buddypress such a nice place…

    • Hi Siddharth,
      Thank you for the comment.
      BuddyPress 1.7 is around the corner. Hoping to put something better with that πŸ™‚

  • Hi, the plugin is excellent instead suggest options disappear from loading new friends as you do facebook, that would be amazing, right now I'm trying to do but if you do please update πŸ™‚

    • Hi Joao,
      sorry I missed your comment.
      I am unable to understand what you want. Can you please explain a little more ?

      If you have already done or need any help in doing that, please do let me know, will be glad to assist if I can πŸ™‚

  • Hi Brajesh.

    Nice plugin. I am using this on my site. But I found that, for a new user, once he is fresh registered, having no friends, is not showing any friends suggestion. Can we have any such feature instead of showing the message " We don't have enough details to suggest a friend yet".

    I want that, instead showing this message, the plugin will show some random friend suggestions like facebok do.

    Anyways thanks for such a great plugin.

    • Hi Brajesh

      My point is, I am using this plugin. But the time, when there is no friends to suggest (For example in the case of a newly registered user), its showing the message "We don't have enough details to suggest a friend yet".

      In this case i want to suggest some random friends for the users.

      Here I am sending you the test user's credentials for my site. Kindly check the rightside block, where its showing teh message just above the Adsense ad.

      Site url – http://myneedz.com
      user – webmaster
      password – p@ssw0rd

      Waiting for a reply

      Thanks
      Tusar

    • Hi Tusar,
      That sounds like some good Idea πŸ™‚ Implementing right now πŸ™‚

  • Any chance of BP 1.7 update?

  • Hi !

    Is there any chance you saw problems with Budyboss ? When I change the activity filters from "All members" to "Following" I have the following message "No activity has been found".

    When I desactivate your plugin, all is working well.

    Did you already see that ?

    Thanks

    • Sorry about this.
      Please ask BuddyBoss about the issue. I rececked the code of this plugin and it does not see, to affect any theme unless the theme is trying to do something funny.

  • Hello Brajesh

    Thanks for your nice affords,

    I would like to say that, I have installed it on WAMP localhost and everything is working fine. There is two suggestion I think.

    1) Can this code built with ajax ? Right now the to add friend is slow.
    2) When I add friend, it should auto disappear rather than asking to cancel the friend request

    • Hi Swapnil,
      Isn't it already ajaxed? The adding button should be using ajax. If it is not, please check for the conflict with your theme.

      2. Good suggestion. I will update the plugin with that.

  • Hi Brajesh
    tried to instal this plugin with latest version of wordpress, but Plugin install failed.
    would you please take a look at this plugin.
    Thanks

  • Hi,
    We're wondering if we as admins, can suggest (or even create) friends between users. We'd like to be able to make 2 users friends, without the users needing to accept the friendship request.
    Or maybe, to suggest friends that belong to the same group?
    Thanks!

  • Hi!

    What are the plans for recommending based on xprofile fields? I'd be willing to contribute a bit of $$ if that could expedite it?

    Cheers!

    • Hi Hector,
      We have been working on a Recommendation Engine. The problem has been the performance on larger networks.

      A recommendation engine(Friends/matches) will be available by this month end. If you want to contribute, Please get in touch via contact form.

      Thank you
      Brajesh

  • Hi Singh; I would like to place the friends suggestions in a page instead of widget, is there a short code for that?