Download the PHP package automattic/buddypress-auto-group-join-request without Composer

On this page you can find all versions of the php package automattic/buddypress-auto-group-join-request. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package buddypress-auto-group-join-request

BuddyPress Auto Group Join Request

Contributors: garyj
Tags: BuddyPress, BuddyBoss, groups, automatic join requests, profile fields
Requires at least: 6.6
Tested up to: 6.8
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically sends join requests to BuddyPress groups based on any profile field value.

Description

This plugin automatically sends join requests to BuddyPress groups when users have specific profile field values. It's particularly useful for:

The plugin integrates with BuddyPress/BuddyBoss's profile fields and group management to provide a seamless user experience.

Features

Installation

  1. Upload the buddypress-auto-group-join-request folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Configure the profile-field-to-group mapping (see Configuration section below)

Configuration

The plugin uses a simple array-based configuration for mapping profile field values to groups. Add the following code to your theme's functions.php file or in a custom plugin:

add_filter(
    'bp_auto_group_join_config',
    function( $config ) {
        // Example 1: Add users with profile type "Partner" to group 2
        $config['partners'] = array(
            'profile_field_name' => 'Profile Type',
            'profile_field_value' => 47,
            'group_id' => 2,
        );

        // Example 2: Add users named "Dave" to group 3
        $config['daves'] = array(
            'profile_field_name' => 'Name',
            'profile_field_value' => 'Dave',
            'group_id' => 3,
        );

        return $config;
    }
);

Finding the Required Values

  1. Profile Field Name:

    • Go to BuddyPress → Settings → Profile Fields
    • Find the field you want to use
    • The name is exactly as shown in the admin interface
  2. Profile Field Value:

    • In the same Profile Fields section
    • For dropdown/radio/checkbox fields, the value is the ID of the option
    • For text fields, use the exact text value
    • For name fields, use the exact name as it appears in the profile
  3. Group ID:
    • Go to the group's page in wp-admin
    • Look at the URL - it will contain something like group_id=123
    • The number is your group ID

You can add multiple configurations by adding more entries to the $config array:

$config['partner'] = array(
    'profile_field_name' => 'Profile Type',
    'profile_field_value' => 47,
    'group_id' => 2,
);
$config['student'] = array(
    'profile_field_name' => 'Profile Type',
    'profile_field_value' => 48,
    'group_id' => 3,
);
$config['daves'] = array(
    'profile_field_name' => 'Name',
    'profile_field_value' => 'Dave',
    'group_id' => 4,
);

Requirements

Troubleshooting

The plugin logs all actions to the WordPress error log. If something isn't working as expected:

  1. Check your WordPress error log
  2. Verify the profile field name matches exactly
  3. Confirm the profile field value is correct
  4. Ensure the group ID exists
  5. Check that the user isn't already a member or has a pending request

Changelog

See CHANGELOG.md for a complete list of changes.

License

This plugin is licensed under the GPLv2 or later. See LICENSE for details.


All versions of buddypress-auto-group-join-request with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ^2
php Version >=8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package automattic/buddypress-auto-group-join-request contains the following files

Loading the files please wait ....