Search Results for 'theme'
-
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 used the /avatar block in my header, as I want users to be able to access it from anywhere.
The avatar shows up in the editor and on any page that is NOT BuddyPress. If the page IS a BuddyPress page, the avatar simply doesn’t load at all.
The header is a row with the images used to link the users to different parts of the site. They are equally spaced. On normal pages: 4 items, one being the avatar. On BuddyPress pages: 3 items, avatar suddenly decides to go Amelia Earhart on me.
What am I doing wrong, and how this be fixed?
Using Twenty Twenty-five theme and FSE with Gutenberg. Fresh install of WordPress, latest version as of today, as well as a fresh install of BuddyPress.
Thank you in advance.
I would like to instal Buddy Press, however it is stated that it is not tested with my current WP version. Details follow. What would you advise, please?
Current WP version: 6.8.1
Theme:Mero Blog by Kantipur Themes
Thanks a lot for any help I can getI am currently using:
– WordPress v6.8.1
– Theme: Sweetdate by SeventhQueen v3.9.2
– BuddyPress v14.3.4
– Elementor v3.29.2
– Elementor Pro v3.29.2I have noticed a strange behavior occurring on BuddyPress group and profile pages. Specifically, the issue is:
When visiting a BuddyPress group, sometimes:
– If the user is not a member, they are automatically added to the group without clicking the join button.
– If the user is already a member, they are automatically removed from the group without clicking the leave button.
When visiting a user profile, sometimes:
– If the visitor is not a friend, a friend request is automatically sent.
– If they are already friends, the friendship is automatically cancelled.
It seems like if the “Join Group”, “Leave Group”, “Add Friend” and “Cancel Friendship” buttons are being triggered automatically upon loading the corresponding pages. This does not happen every time, so it has been difficult for me to replicate it to show it to you, but it occurs frequently enough to negatively affect the user experience.
In an effort to identify the cause, I have done the following tests:
– Deactivated all custom scripts.
– Deactivated all plugins except those required for WordPress and the theme to function correctly.
– Cleared and purged all caches.While running these tests, the issue did not occur. However, as I began reactivating plugins one by one (still with my custom scripts deactivated), I found that the issue reappears when Elementor Pro is activated. This leads me to believe the problem may come from a conflict between Elementor Pro and BuddyPress, the theme, or WordPress itself.
I am sharing a video where I was able to replicate the issue: https://drive.google.com/file/d/1uuLIc-hGQHHq5BGY3b5M3pklMMEQqKyx/view?usp=sharing
Do you have any idea what could be causing this behaviour, and if it is an incompatibility with BuddyPress?
Thank you all in advance.
Hi and first of all thanks for your plugin and the support
I m using Tutor LMS pro on a fresh new wordpress installation.
I decided to install the Buddypress addon but i hav a problem regarding the templateWordPress version 6.8.1
Thème actif : Sofia (version 1.0)
Extension actuelle : BuddyPress (version 14.3.4)
PHP version 8.1.32Une erreur de type E_ERROR a été causée dans la ligne 725 du fichier /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php. Message d’erreur : Uncaught TypeError: urldecode(): Argument #1 ($string) must be of type string, array given in /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php:725 Stack trace: #0 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php(725): urldecode(Array) #1 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/class-wp-hook.php(324): bp_legacy_theme_ajax_querystring('', 'activity') #2 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/plugin.php(205): WP_Hook->apply_filters('', Array) #3 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-core/bp-core-template.php(1157): apply_filters('bp_ajax_queryst...', '', 'activity') #4 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-activity/bp-activity-filters.php(560): bp_ajax_querystring('activity') #5 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/class-wp-hook.php(326): bp_activity_heartbeat_last_recorded(Array, Array) #6 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #7 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-admin/includes/ajax-actions.php(3503): apply_filters('heartbeat_recei...', Array, Array, 'front') #8 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/class-wp-hook.php(324): wp_ajax_heartbeat('') #9 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #10 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-admin/admin-ajax.php(192): do_action('wp_ajax_heartbe...') #12 {main} thrown
Hello, i installed latest version of wordpres, and i am using bray games theme, from my arcade plugin bundle. unfortunately moment i install buddy press, whole wordpress crash, i try deactivate all plugins, same thing happened, then i try install it on fresh wordpress instalation to check if there is any server problems, and buddy press was installed without any problem on mu server host. in that time i used default wordpress theme. So i come to conclusion bray games theme is outdated. They claim they made buddy press compatibility but that was 2019. six years is long time, and i dont know what changed from that time. next i try install bp basic plugin,but after instaling it and trying to instal bp. it crash my website again. so now i am stuck, i try contact developer but there was no answer from him.
can anyone help me?Hi,
I love buddypress and wpjm combo. Its free and helps people get jobs, which is my private project.
However I am not so tech savy and not any real coding.
My question is if its possible, within reason, to add two choices on the member page, to filter out two user classes/types (wpjm candidates and employers).
Today I have active members and “my friends” as tabs and also a search member field under that. I would like to add candidates and employers, to filter out those users. Mainly employers – since it woud be nice for candidates to reach out if it seems good match.
I guess find the teamplate for members, add it to my child theme and ad buttons, and then connect the buttons with a filter option in the child theme function file?
Best regards,
Flamur
I am using version: 6.8.1 and BuddyPress Version 14.3.4
I develop an dating website and created a register form, but if I add field to upload image is not uploaded and the page get issue like that
https://prnt.sc/bALFPL871QJUSupport from theme redirect to you guys
Thanks