Okay
  Print

[StreamTube] BuddyPress (Activity Stream, Notifications, User Groups, Friend Connections ... etc)

BuddyPress has been integrated Since StreamTube version 3.0.0

BuddyPress, a WordPress plugin, turns websites into lively social networks with user profiles, activity streams, and group interactions, fostering robust community engagement. It's a versatile tool for building interactive online communities within the WordPress framework, After activating the plugins, you will gain access to the following powerful features:

  1. Activity Streams
  2. Private Messages
  3. Notifications
  4. User Groups
  5. Friend Connections
  6. User Mentions
  7. User Follow

Integrating BuddyPress is straightforward with the following steps.

  1. Activate BuddyPress
  2. Activate and migrate BuddyPress Follow
  3. Enable recommended components
  4. Enable required options
  5. Private Messages
  6. Migrate Existing Posts
  7. Sidebar and Widgets
  8. Enable mobile bottom menu
  9. Additional Constants
  10. Custom Constants
  11. Disable BuddyPress Registration form
  12. Update Permalinks
  13. Deprecated Pages and Plugins

Activate BuddyPress

BuddyPress is available for free download at https://wordpress.org/plugins/buddypress/


Activate and migrate BuddyPress Follow

BuddyPress Follow plugin is available for free download at https://github.com/r-a-y/buddypress-followers

If you have activated the plugin on an existing website with content that already uses the WP User Follow plugin, you have the option to migrate all existing content from the WP User Follow plugin to the BuddyPress Follow plugin by clicking the button, as shown in the following screenshot.

After the migration process is completed, it is recommended to permanently deactivate the WP User Follow plugin.


Within BuddyPress settings, enable the recommended components that align with your community goals. This can include user profiles, activity streams, groups, and more. Tailor it to suit your specific needs

Enabling "Site Tracking" component is recommended if you would like to record new posts, videos and comments.


Enable required options

Configure crucial options within the BuddyPress settings to ensure proper compatibility.

[IMPORTANT] BuddyPress Legacy template is required.

"Allow activity stream commenting on posts and comments" is recommended.

Do not enable the "Allow registered members to upload avatars" and "Allow registered members to upload cover images" options, as they are already built into StreamTube Core.


Private Messages

If the Better Messages Plugin is activated, BuddyPress Private Messages will be replaced with Live Chat, as this is the default behavior of the Better Messages Plugin, refer to the "[StreamTube] Live Chat and Private Messages" for further information.


Migrate Existing Posts

If you have activated the BuddyPress plugin on existing content containing uploaded videos and regular posts and wish to migrate all existing posts to activity streams, you can conveniently initiate the data migration process by clicking the 'Start the data migration process' button. This action may take some time, especially if you have a substantial number of posts. Otherwise, feel free to dismiss the notice.


Sidebar and Widgets

When BuddyPress is activated, it introduces a new widget named "[StreamTube BP] User List" and a new sidebar named "buddyPress Primary", The "buddyPress Primary" sidebar is positioned on the right side of both the activity streams and the Group single page.


Additional Constants

BuddyPress provides built-in constants that allow you to opt in or out of additional features. For instance

// Disable oembed in activity entry
define( 'BP_EMBED_DISABLE_ACTIVITY' , true );
// Disable oebmed in activity comments
define( 'BP_EMBED_DISABLE_ACTIVITY_REPLIES', true );
// Disable oebmed in private messages
define( 'BP_EMBED_DISABLE_PRIVATE_MESSAGES', true );
// Enable autocomplete for all members
define( 'BP_MESSAGES_AUTOCOMPLETE_ALL', true );

For further informations, please refer https://codex.buddypress.org/developer/filters-reference/


Custom Constants

// Disable notifications to followers for new update events
define( 'BP_DISABLE_NOTIFY_FOLLOWER_NEW_UPDATE', true );

Disable BuddyPress Registration form

Add the following code snippet to the end of wp-content/themes/streamtube-child/functions.php file

/**
 *
 * Disable BP registration
 * 
 */
remove_action( 'bp_init',    'bp_core_wpsignup_redirect' );
remove_action( 'bp_screens', 'bp_core_screen_signup' );
function streamtube_child_redirect_bp_signup_page( $page ){
    return home_url( '/wp-login.php?action=register' );
}
add_filter( 'bp_get_signup_page', 'streamtube_child_redirect_bp_signup_page' );

After activating and setting up the plugins , navigate to Settings > Permalinks and click Save Changes button.


Deprecated Pages and Plugins

  • Default Members Page: It is recommended to replace the default members page with the BuddyPress Members directory.
  • WP User Follow Plugin: Upon activating the BuddyPress and BuddyPress Follow plugins, the WP User Follow plugin becomes obsolete and is no longer utilized.