Search Results for 'buddyboss'
-
Search Results
-
Hi BuddyBoss community,
I’m having trouble activating BuddyBoss components programmatically. I’ve tried several approaches, but the components aren’t being enabled. Here’s what I’ve attempted:
Using bp_update_option()
Direct database updates
Different hooks (init, after_setup_theme)
Current Behavior:No components activate
No error messages in logs
Tried both single site and multisite
What I Need:A reliable way to activate components (Groups, Activity, Messages, etc.)
Best practices for programmatic component management
Any known issues with automatic component activation
<?php
/**
* BuddyBoss Components Activator
* Add this to your theme’s functions.php or as a must-use plugin
*/// Make sure we don’t expose any info if called directly
if (!defined(‘ABSPATH’)) {
exit;
}// Hook into after_setup_theme to ensure BuddyBoss is loaded
add_action(‘after_setup_theme’, ‘activate_buddyboss_components_on_init’, 9999);function activate_buddyboss_components_on_init() {
// Check if BuddyBoss is active
if (!function_exists(‘buddypress’)) {
return;
}// Get current active components
$active_components = get_option(‘bp-active-components’, array());// Components we want to activate
$components = array(
‘groups’ => 1,
‘activity’ => 1,
‘messages’ => 1,
‘notifications’ => 1,
‘friends’ => 1,
‘settings’ => 1,
‘xprofile’ => 1,
‘members’ => 1
);// Merge with existing components
$new_components = array_merge($active_components, $components);// Only update if there are changes
if ($active_components != $new_components) {
update_option(‘bp-active-components’, $new_components);// Clear BuddyBoss component cache
if (function_exists(‘bp_core_reset_incrementor’)) {
bp_core_reset_incrementor(‘bp_active_components’);
}// Flush rewrite rules on next load
set_transient(‘bb_flush_rewrite_rules’, ‘1’, 60);
}
}// Handle rewrite rules flush
add_action(‘init’, ‘bb_maybe_flush_rewrite_rules’, 9999);
function bb_maybe_flush_rewrite_rules() {
if (get_transient(‘bb_flush_rewrite_rules’)) {
delete_transient(‘bb_flush_rewrite_rules’);
flush_rewrite_rules(false);
}
}I was on buddyboss for a couple of years on a fairly popular site. I had issues several times and decided I wanted to move back to buddypress. We lost a lot of things. Photos mostly but also the activity feed is not what it was. Nothing shows when it loads in default setting of “everything” I can selected new members and that shows a member registered a year and a half ago and yet we have had new members everyday. Anyone have any thoughts on this? Your help is greatly appreciated.
WP: 6.7.1
BP: 14.3.1
BPGE: 3.7.0
Theme : BuddyBoss with a custom child themeBefore version 3.7.0 of the buddypress-groups-extras plugin, I could reorder the group tabs, even the Home/Activity. I used this to put Pages on top (above Activity) to ensure it was the landing page for the group.
Activity is now hard coded as the first tab in core/templates.php of BPGE as explained in Emaralive’s response to my previous request https://buddypress.org/support/topic/activity-tab-cannot-be-moved-in-manage-page-general-settings-anymore/How could I change the default group landing pages to Pages instead of Activity?
WP: 6.7.1
BP: 14.3.1
Theme : BuddyBoss with a custom child themeSince we update to 14.3 we cannot change the Activity tab order in the manage Page general setting anymore
When we create a group, the default page is Activity.
Previously it was possible to change it to any other tab in Manage Page General Setting, but not anymore.
While I can change the place of the other tabs (Pages; Members, etc.) I cannot move the Activity any more, i.e. I cannot grab the Activity button while I can still grab and move the others.If I edit an old group where I changed the tab default to something else than Activity, I can still change the other tabs but I cannot grab the Activity and therefore I cannot change its order.
Could someone help me on where to look at ? I’m clueless at this point.
I tried on Safari Google Chrome, Firefox and observe the same behaviour.
Thanks for your help
Dominique
Hi,
I am using the “BuddyPress Messaging Control” plugin (available here) and ran into some bugs with it. The creator has not responded so I thought I should ask here.Issue 1:
This plugin is used to restrict who (based on user roles) can send how many messages to whom and within what time period, eg free user roles can send 10 messages a week or only reply to messages sent to them, but paid users can send unlimited messages to anyone).When I tested this plugin with the latest Buddypress and WordPress version and BuddyX theme, when you go to send a message, and your account is restricted, there is a message that says “Your messaging is capped, you can send a further”. and “Your messaging is set to Reply Only, you can only message users who have previously sent you a message, in addition you are only able to send another”. It doesn’t show the quota, and I would like for it to show it, because this just looks silly.
Issue 2 and 3:
In the Buddyboss platform (Buddyboss says anything made for Buddypress is compatible with Buddyboss, but it doesn’t actually seem so) the messages can be sent by simply pressing enter, there is even a message that says “Enter to Send Shift+Enter to add a new line”. But, pressing the “enter” key doesn’t visibly do anything, ie the message that you typed still stays in the text box, it doesn’t move to the sent messages box, so it is not obvious that a message was sent. Then the user will repeatedly press “enter” until they run out of their alloted messages. Then a message appears that says “There was a problem sending your message.”The first of this issue is obviously the message not “sending” upon pressing “enter”.
The second of this issue is that the message itself is vague and not specific: It should say “You have used up your message quota for this period.”I am wondering if anyone can help with fixing these things.
Thank you in advance.Topic: Hyerarchical groups for BP
https://github.com/dcavins/hierarchical-groups-for-bp
Unfortunately, this very important plugin is no longer updated with the latest version of BP and crashes the system. It would be helpful if it was updated and if possible integrated directly into the BP core, as Buddyboss has already done.
Topic: Critical Error
I need Buddypress as I use Buddyboss and memberpress, so I need the plugin that connects them.
I have migrated my website to a new host and since moving it, re activating buddypress causes a critical error. I have tried deleting and reinstalling it and still get a critical error on activation.
Can anyone help, I am on wordpress 6.6.2
After updating the plugin to the lattes version (14.0.0), a notification message is stacked at the top of my WordPress admin dashbored as follows:
(For BuddyPress Multilingual to work you must enable WPML together with BuddyPress or BuddyBoss.)
—————————————-
and there is no close icon to close this notification, noting that the WPML and BuddyPres are already active and working since long time with no issues.
please advise how to get rid of this notification as it is annoying.