BuddyPress Automatic Friends

banner-720x233
  • Contributors: stevenkword
  • Tags: admin, automatic, automatic friends, buddypress, friends, instant friends, new members, plugin, registration
  • Requires at least: 3.5
  • Tested up to: 4.0.1
  • Stable tag: 2.0.5
  • License: GPLv2 or later
  • License URI: http://www.gnu.org/licenses/gpl-2.0.html

Description

Automatically create and accept friendships for specified users upon new user registration. * Requires BuddyPress

Installation

  1. Upload the bp-automatic-friends folder to the plugins directory in your WordPress installation

  2. Activate the plugin

  3. Click on the "Automatic Friends" link under the BuddyPress Menu.

  4. Configure your BuddyPress Automatic Friends options.

Changelog

2.0.5

  • Disables email notifications. In situations with hundreds of users, this can get SPAMMY fast

2.0.4

  • Adds icon assets for plugin directory

2.0.3

  • Hot fix for autocomplete search results

2.0.2

  • Now with more Portuguese - Thanks to Renato Alves
  • Limits number of users returned via ajax suggest to improve performance with large datasets

2.0.1

  • Now with more Spanish - Thanks to Maria Ramos

2.0.0

  • Major OOP rewrite
  • Admin Menu compliance with modern BuddyPress versions
  • Themes options page
  • Adds donate links
  • Autocomplete on Global Friend suggestions
  • Ajax actions for adding/removing global friends
  • General beautification

1.6.2

  • Removes hooks from account sign-up and activation.
  • Friendships are now created upon a new user's first login.
  • Resolves conflict with plugins such as "Disable Activation" that bypass the activation process.

1.6.1

  • Post form to admin settings based on get_admin_url - fixes 404 upon saving form options in multisite installs

1.6

  • Removed debug output on user activation page
  • Update code comments to PHPDoc
  • Create friendships upon user activation rather than user registration
  • Update friend counts for new users upon

1.5

  • Add display that shows which users are selected via the admin panel.

1.1

  • Update admin menu hook to support multisite.
  • Update to support BuddyPress 1.5

1.0

  • First official release

146 Responses

  1. Phillip says:

    I installed the plugin and activated but not showing up in dashboard.

  2. Hi Steve,
    It’s possible to make as default all new user registration as friends without set up IDs?

    Many thanks,
    Ros

    • Steven Word says:

      @rsterrantinoRos

      It’s in progress. I’m working on v 2.0 now which overhauls pretty much everything. It will be released before the holidays.

      • Ros says:

        Hi Steven,
        but now it’s possible to make as default all new user registration as friends without set up IDs…where?
        Thanks!

        • Steven Word says:

          There is not an option to always make everyone friends with everyone else. However, I don’t think this would be terribly difficult to accomplish. Let me think a little while about the best way to implement it.

          As for right now, you will still need to setup global friend user names in the settings found at Admin > Users > Automatic Friends.

  3. Steven Word says:

    Would anyone like to beta test version 2.0? It is ready, but I’d like to get a second pairs of eyes on it.

  4. Bonnie says:

    Yes, please!! I’d love to beta test!

  5. Bonnie says:

    Hi – the plugin works perfectly for me, as admin of the site; all new members can automatically be my friends. But it’s missing the main feature I need: have all *group* members automatically be friends. It’s about controlling profile and activity visibility so only other members of the group can access them. My site is composed of six private groups, and for the moment it’s a bit disturbing that any user at all can click on a profile of someone not in the same group and access their info. Would this be something really difficult to implement?

    • Steven Word says:

      @Bonnie — Thank you very much for the testing! The main intent behind the upcoming release was to keep the functionality the same as the previous version, but make the administration accessible to a wider audience.

      Now that I am mostly satisfied with the user experience, I can start taking a look into providing some additional features. I’ve had a similar feature request before, having to do with groups, and I will put it at the top of the short list. I can’t speak to the difficulty without doing some further research, but I will look into it.

      • Bonnie says:

        Yay for being at the top of the shortlist! I’m certain a lot of people will be interested in this; customizing privacy in BP is a bit of a challenge, and more options for “friending” will definitely be a huge plus. I think I’ll review and comment on WordPress.org to see what the response is.

        It’s always reassuring when plugin developers react well and quickly to users. Thank you!

  6. Steven Word says:

    Version 2.0.1 of BuddyPress Automatic Friends is now available.

  7. Steven Word says:

    BuddyPress Automatic Friends is now available in Spanish courtesy of to Maria Ramos. Thanks Maria!

  8. Rosario says:

    Hi Steven!

    I would like all users who sign up to our site were already friends, without having to select them one by one from Automatic Friends” settings.

    Many thanks,
    Rosario

  9. Kerry says:

    Hi Steven! Great plugin. We’re installing BuddyPress on a website with 250+ existing users. It’s replacing Mingle which had the same capability as your plugin. All users auto friend with the admin upon registration. Once we install Buddypress and then your plugin, is there a way to set up for all existing users to be automatic friends with the admin? If not, this would be a great feature to add to your plugin.

    • Steven Word says:

      @Kerry

      Thank you. I don’t have that feature available at this time, but it is in future plans. Stay tuned!

  10. David Foster says:

    I have installed this plugin, and when I activate it, go to the settings, and try to add the admin, it just hangs. I am not able to add any user to the global add friend area. We have about 600 members on our site. Could this be why it takes so long?

    • Steven Word says:

      @David

      I am thinking this is a JS autocomplete issue. I have not tested extensively with a large user base, but if you can give me a little time I will investigate and improve the caching mechanism if possible. Thank you for the feedback!

  11. Lynne says:

    Hello,

    Is there a way to turn off the “… accepted your friendship request” emails for the friendships created automatically by the plugin?

    It seems as if all new users receives mass notification emails from the automatic friend requests which can be annoying.

    https://wordpress.org/plugins/bp-automatic-friends/

    • Steven Word says:

      @Lynne — I’ve checked into my source and I have these emails disabled. What other BuddyPress plugins do you have activated?

  12. Lynne says:

    @steven …..I replied to you on Github already. I am using about 31 other buddypress plugins for our student community group. Is that the reason why the notifications goes out automatically?

    Plugins
    1. Select BP Default Group Avatar
    2. Select BP Group Documents
    3. Select BP Group Management
    4. Select BP Group Organizer
    5. Select BP Profile as Homepage
    6. Select BP Profile Search
    7. Select BuddyMenu
    8. Select BuddyPress Activity Privacy
    9. Select BuddyPress Auto Group Join
    10. Select BuddyPress Automatic Friends
    11. Select BuddyPress Extend Widgets
    12. Select BuddyPress Docs
    13. Select BuddyPress Custom Profile Menu
    14. Select BuddyPress Geo
    15. Select BuddyPress Group-O-Matic
    16. Select BuddyPress Group Email Subscription
    17. Select BuddyPress Groups Extras
    18. Select BuddyPress Message Attachment
    19. Select BuddyPress Pending Activations
    20. Select BuddyPress Portfolio
    21. Select BuddyPress Profile Progression
    22. Select Buddypress profile view from admin
    23. Select BuddyPress Real Names
    24. Select BuddyPress Registration Groups
    25. Select BuddyPress Toolbar
    26. Select Buddypress Xprofile Custom Fields Type
    27. Select Custom Profile Filters for BuddyPress
    28. Select Export User Data
    29. Select FB like notification for buddypress
    30. Select Mass Messaging in Buddypress
    31. Select Suffusion BuddyPress Pack

    • Steven Word says:

      @Lynne — 31 plugins means 31 variables in this equation. This is the first report I am having of this problem which leads to believe that one of these other plugins may be hooking into the notification system and overriding the default functionality. Given the number of BuddyPress related plugins you are using, I am reasonably sure this is what is happening. The first thing I would do is disable all other plugins except for BuddyPress ( inside a development environment would be preferred ) and see if the problem persists. After that you would have to go through the 31 step process of enabling each plugin one by one until the problem is identified. It’s a lot of work, but if you can track down the problem, I am willing to try and fix the compatibility issues if possible. Good luck!

  13. Lynne says:

    @steven….woww that is extremely a long step. Thank you for replying, I will look into it!

  14. Godavid says:

    Found an error you’ll be interested in, on first couple logins of a new user, this error is thrown:

    Fatal error: Cannot unset string offsets in /wp-content/plugins/buddypress-extended-friendship-request/bp-extended-friendship-request.php on line 338

    Will have to abandon this plugin for now until this gets fixed (or I might just fix it myself, in which case I’ll gladly post the fix here).

    Good plugin other than this error which causes a white screen and looks muy no bueno

  15. Alfredo says:

    I have installed and activatd the plugin however i don’t see it anywhere in the dashboard. I even tried to go to it like this: http://hyleysteatox.com/wp-admin/options-general.php?page=bp-automatic-friends but to no avail ( it says that I don’t have sufficient permissions to access that pag).

    I am using the latest version of WP and BP 1.9.2 .

    • Godavid says:

      My experience with that issue (insufficient permissions) was usually due to a poorly written plugin (and generally not the plugin in question). I’d highly suggest deactivating your other plugins to see if one of them is causing the problem.

      • Alfredo says:

        yes but what about the simple fact that it dosn’t show up anywhere in th dasboad like it should

        • Steven Word says:

          @Alfredo I think what Godavid is trying to say is that other plugins may be affecting this one. The problem you are having has not been reported on a massive scale. If the settings did not show-up in the dashboard, no one else would be able to use it and this is the first report I am getting of the problem.

          • Alfredo says:

            So it turns out I’m retarded and I deactivated all of the plugins 3 times then restored the DB three times to realize that it added the link under “Users” in the dashboard instead of settings.
            Thanks @Steven Word for the great plugin and @Godavid for the help

          • Steven Word says:

            @Alfredo — No problem. I’ve been there before. :)

  16. Greg says:

    Hi Steven, a while back we wrote a quick hack (which i still have somewhere) that basically was an extension of the WordPress Social Login Plugin (https://wordpress.org/plugins/wordpress-social-login/). The idea of WSL plugin is it has option to “pull” in a ;list of FB friends a new user registering on a blog say with FB… we wrote some messy code to basically then auto befriend any FB friends found that was also registered on the blog…

    This makes say a buddypress site less “lonely” on 1st visit, if the guy joins with FB at least all his FB friends are already befriended on the blog as well.

    I was trying to find a away of using your plugin, but hooking somehow into the “global friend list” for a site that uses STEAM logins. I already manage to pull an array of friends of a steam user, is there any way to create “sub global lists” so that we could give every user his “own global list” – i can then add the returned array of userids into that list and your plugin will do the rest?

    • Steven Word says:

      @Greg — Interesting use case here. I don’t think it would really support most of my users to create a secondary “sub” users list, but I’d be happy to help you solve your problem. However, I would be willing to add a filter on the methods that link accounts if you’d like so that you could intercept the list of global friend IDs.

      • Greg says:

        @Steven – Thank you Steve – I started a thread here (https://wordpress.org/support/topic/here-is-code-for-function-to-auto-befriend-bp-friends-if-they-exis-on-blog-and-t) . Basically what i have now is a list of a users friends in a seperate table, sorted by “Provider” e.g. facebook, linkedin, steam etc.

        You will see there is a SQL lookup on the end of that code that will return an array of a particular users other network friends, at the top of that post i the used the BP add friend function … which is not working too well after the V2 update of BP

        • Steven Word says:

          @Greg — It sounds like you may not need my whole plugin. Have you taken a look a the method, `BPAF::create_friendships( $initiator_user_id )` located in the main plugin file? I think it may help you join your IDs together. You would need the other methods referenced in that method, but that might be the base of what you are looking to do.

  17. Having the same issue with hundreds of friend request emails going out. Very frustrating as we pay for private smtp and this wastes our credits.
    Definitely a bug in the automatic friends plugin. Hope it gets worked out in next update.
    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

%d bloggers like this: