Search Results for 'buddypress'
-
Search Results
-
WP version : 6.6.2
Buddypress : Version 14.0.0
Theme : Boss
(I have checked with Twenty Twelve and it still does not work)
Our Website : https://capexpe.orgWe have been running this website under Byddypress since more than 10 years without any issues. We regularly update to new version without any major issue so far. Thanks a lot for your work.
When we upgraded to 14.0.0, the site still runs fine except when accessing a group, any group, (called “expe” on our site).
Here is an example of on Expe (group) : https://capexpe.org/expes/les-debuts-de-lalpinisme-en-autonomie/
Any idea what I could do to identify and fix what we consider a major issue for us?
Thanks in advance for your help.
Dom
Topic: BP user @mention
Hi Team,
I am encountering an issue with user mentions in the BuddyPress activity stream. Currently, an AJAX request is sent for each letter typed by the user, which results in a long response time. I am looking for a way to control these AJAX requests so that a request is only sent after the user has finished typing. Can you provide guidance or suggest a method to implement this functionality?
Thank you.
I’ve just activated BP Activity Block Editor (https://github.com/buddypress/bp-activity-block-editor) on my multisite, it stops me accessing ‘Aactivity’ in admin panel. The error msg says I am not allowed to access the page. Given that my account is for superadmin, I doubt I have any access right issue, but as far as I remember, the error msg appears when the user has no access rights for the function.
My guess is that it is due to multisite setting, but I do not have much clue.
Hello,
Recently I have cloned my website due to plugin and php upgrade. But I had issue with Buddypress plugin and we couldn’t update it. BTW I have updated the plugin from 11.0 to 14.0. it’s seems working fine now. But my only issue is with WPLMS theme student login. when any student login to the dashboard it’s only redirecting to wp-admin and showing an error as you have no access. normall it’s redirecting to the student dashboard but now it’s not working. Still have no clue how to fix it.
Topic: Unable to register users
I’m trying to troubleshoot my BuddyPress registration form, which seems to be having some serious problems. I should start by noting that I have added some customizations to my form to add additional data fields, but the registration fails regardless of whether the customizations and overrides are enabled or disabled, and fails in exactly the same manner based on the error log, so the customizations are unlikely to be having an impact.
Here are the hooks that I am using to track where the problem is originating from:
// Hook into various stages of the BuddyPress registration process
add_action( ‘bp_before_registration_submit_buttons’, ‘log_before_registration_submit_buttons’ );
add_action( ‘bp_core_screen_signup’, ‘log_core_screen_signup’ );
add_action( ‘bp_signup_pre_validate’, ‘log_signup_pre_validate’ );
add_action( ‘bp_signup_validate’, ‘ex_custom_bp_signup_validate’ );
add_action( ‘bp_core_signup_user’, ‘log_core_signup_user’, 10, 2 );
add_action( ‘bp_core_activate_user’, ‘log_core_activate_user’, 10, 3 );
add_filter( ‘bp_core_validate_user_signup’, ‘log_core_validate_user_signup’ );
add_filter( ‘bp_core_signup_user_notification’, ‘log_core_signup_user_notification’, 10, 2 );function log_before_registration_submit_buttons() {
error_log( ‘Hook: bp_before_registration_submit_buttons fired.’ );
}function log_core_screen_signup() {
error_log( ‘Hook: bp_core_screen_signup fired.’ );
error_log( ‘Form submission data: ‘ . print_r( $_POST, true ) );
}function log_signup_pre_validate() {
error_log( ‘Hook: bp_signup_pre_validate fired.’ );
}function ex_custom_bp_signup_validate() {
global $bp;
error_log( ‘bp_signup_validate hook fired. Validation errors: ‘ . print_r( $bp->signup->errors, true ) );
}function log_core_signup_user( $user_id, $user_data ) {
error_log( ‘Hook: bp_core_signup_user fired.’ );
error_log( ‘User ID: ‘ . $user_id );
error_log( ‘User Data: ‘ . print_r( $user_data, true ) );
}function log_core_activate_user( $user_id, $key, $user ) {
error_log( ‘Hook: bp_core_activate_user fired.’ );
error_log( ‘User ID: ‘ . $user_id );
error_log( ‘Activation Key: ‘ . $key );
error_log( ‘User Data: ‘ . print_r( $user, true ) );
}function log_core_validate_user_signup( $result ) {
error_log( ‘Hook: bp_core_validate_user_signup fired.’ );
error_log( ‘Validation Result: ‘ . print_r( $result, true ) );
return $result;
}function log_core_signup_user_notification( $user_id, $user_data ) {
error_log( ‘Hook: bp_core_signup_user_notification fired.’ );
error_log( ‘User ID: ‘ . $user_id );
error_log( ‘User Data: ‘ . print_r( $user_data, true ) );
return $user_data;
}Here is a sample of the outputs from testing, with and without the Extended Profiles setting turned on:
[19-Jul-2024 00:01:28 UTC] Hook: bp_core_screen_signup fired.
[19-Jul-2024 00:01:28 UTC] Form submission data: Array
(
[signup_username] => TestUserAlpha
[signup_email] => AlphaEmail@EmailAlpha.com
[signup_password] => xEO^ONJS1ZkY
[signup_password_confirm] => xEO^ONJS1ZkY
[field_1] => Imma User
[signup_profile_field_ids] => 1
[signup-privacy-policy-check] => 1
[signup-privacy-policy-accept] => on
[signup_submit] => Complete Sign Up
[_wpnonce] => 3184f10172
[_wp_http_referer] => /register
)[19-Jul-2024 00:01:28 UTC] Hook: bp_before_registration_submit_buttons fired.
[19-Jul-2024 00:01:32 UTC] Hook: bp_core_screen_signup fired.
[19-Jul-2024 00:01:32 UTC] Form submission data: Array
(
[signup_username] => TestUserBeta
[signup_email] => AlphaEmail@EmailAlpha.com
[signup_password] => oeHAfbtPlIRG
[signup_password_confirm] => oeHAfbtPlIRG
[signup-privacy-policy-check] => 1
[signup-privacy-policy-accept] => on
[signup_submit] => Complete Sign Up
[_wpnonce] => 9240fe3ccc
[_wp_http_referer] => /register
)After poking around in various threads and ChatGPT, the suggestion is that the error is happening in the form validation, and I was told to look at bp-core-signup.php in the bp-core folder. Problem: this file does not exist in my BuddyPress installation. I deleted everything, did a fresh installation, and the file still does not exist. I added the hooks back in, made another test, and got exactly the same result. So am I just straight up missing a file in my installation? Or is there a deeper problem that’s outside the scope of my current awareness?
Topic: Buddypress with Divi
Backstory: I have a Divi Theme and have added member press to that theme as part of that they have a Buddypress integration.
Problem: whenever I activate the buddy press plugin the formatting of the account page goes weird, the Logo becomes massive the menus all go into a column and it looks awful. Has anyone else had this problem?
I just tested it and it worked here is my site to view it , view it on your desktop i haven’t added the bell to my mobile header yet
Let me how it goes for you
function register_bp_notification_bell_block() { // Inline JavaScript for the block $block_js = " (function (wp) { var registerBlockType = wp.blocks.registerBlockType; var el = wp.element.createElement; var withSelect = wp.data.withSelect; var __ = wp.i18n.__; registerBlockType('buddypress/notification-bell', { title: __('BuddyPress Notification Bell', 'buddypress'), icon: 'bell', category: 'widgets', edit: withSelect(function (select) { return { userId: select('core').getCurrentUser().id }; })(function (props) { var userId = props.userId; var unreadCount = 0; // Dummy content for editor preview if (!userId) { return el( 'div', { className: 'notification-bell' }, el('span', { className: 'bell-icon' }, '🔔'), el('span', { className: 'unread-count' }, '0') ); } // Fetch notifications count wp.apiFetch({ path: '/wp-json/bp/v1/notifications/unread_count/' + userId }).then(function(count) { unreadCount = count; props.setAttributes({ unreadCount: unreadCount }); }); return el( 'a', { className: 'notification-bell', href: '/members/' + userId + '/notifications/' }, el('span', { className: 'bell-icon' }, '🔔'), unreadCount > 0 && el('span', { className: 'unread-count' }, unreadCount) ); }), save: function () { return null; } }); })(window.wp); "; // Enqueue inline script wp_add_inline_script('wp-blocks', $block_js); // Register the block type register_block_type('buddypress/notification-bell', array( 'render_callback' => 'bp_notification_bell_block_render', )); } add_action('init', 'register_bp_notification_bell_block'); function bp_notification_bell_block_render($attributes) { if (!is_user_logged_in()) { return ''; } $user_id = get_current_user_id(); $unread_count = bp_notifications_get_unread_notification_count($user_id); $notifications_url = bp_loggedin_user_domain() . bp_get_notifications_slug() . '/'; ob_start(); ?> <a class="notification-bell" href="<?php echo esc_url($notifications_url); ?>"> <span class="bell-icon">🔔</span> <?php if ($unread_count > 0) : ?> <span class="unread-count"><?php echo esc_html($unread_count); ?></span> <?php endif; ?> </a> <style> .notification-bell { position: relative; display: inline-block; width: 30px; height: 30px; text-decoration: none; } .bell-icon { font-size: 24px; /* Adjust the font size as needed */ line-height: 30px; /* Match the container height */ display: block; text-align: center; } .unread-count { position: absolute; top: -5px; right: -5px; background: red; color: white; border-radius: 50%; padding: 2px 6px; font-size: 12px; } </style> <?php return ob_get_clean(); } add_action('rest_api_init', function() { register_rest_route('bp/v1', '/notifications/unread_count/(?P<user_id>\d+)', array( 'methods' => 'GET', 'callback' => 'get_bp_unread_notifications_count', )); }); function get_bp_unread_notifications_count($request) { $user_id = $request['user_id']; if (!$user_id) { return new WP_Error('no_user', 'Invalid user ID', array('status' => 404)); } return bp_notifications_get_unread_notification_count($user_id); }Topic: User Can’t Upload Media
Hi, I have installed Buddypress attachments however users can’t upload media., below the attach media icon, there is a red square with an exclamation mark inside.
Topic: Website error
Hi all I have a website error. Our hosting company have given me this error below which seems to relate to the Buddypress add-in & hope someone can help. I am no way an expert unfortunately as our web person left our group.
Thank you for contacting us and apologies for the delay!
Upon further investigation, this is the error that we found:
PHP Fatal error: Uncaught Error: Call to undefined function bp_get_total_friend_count() in /home/nmlukwlpsuo6/public_html/wp-content/themes/besocial/buddypress/groups/single/members.php:83
Stack trace:
#0 /home/nmlukwlpsuo6/public_html/wp-includes/template.php(732): require()
#1 /home/nmlukwlpsuo6/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template(‘/home/nmlukwlps…’, false, Array)
#2 /home/nmlukwlpsuo6/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template(Array, true, false, Array)
#3 /home/nmlukwlpsuo6/public_html/wp-content/plugins/buddypress/bp-groups/bp-groups-template.php(4703): bp_get_template_part(‘groups/single/m…’)
#4 /home/nmlukwlpsuo6/public_html/wp-content/themes/besocial/buddypress/groups/single/home.php(160): bp_groups_members_template_part()
#5 /home/nmlukwlpsuo6/public_html/wp-includes/template.php(732): require(‘/home/nmlukwlps…’)
#6 /home/nmlukwlpsuo6/public_html/wp-content/plugins/buddypress/bp-core/bp-core- in /home/nmlukwlpsuo6/public_html/wp-content/themes/besocial/buddypress/groups/single/members.php on line 83Since this seems to be content-related, you will need to reach out to a web developer to address this problem.
So i made this code which successfully fetches wordpress avatar to display on buddypress it does sync the profile pictures but it dooesn’t change all the profile pictures on buddypress for example the avatar where it says “Whats new” still has mystery man
What am i missing to have it successfully sync on all places in buddypress including in friends section help please because parts are synced but not everything
// Add the custom avatar to BuddyPress user profiles add_filter('bp_core_fetch_avatar', 'custom_user_avatar', 10, 2); function custom_user_avatar($avatar, $params) { // Get the user ID from the parameters $user_id = isset($params['item_id']) ? $params['item_id'] : 0; // Specify the maximum size for the avatar (adjust as needed) $max_size = 170; // Determine the context where the avatar is being fetched $context = isset($params['object']) ? $params['object'] : ''; // Adjust avatar size based on the context switch ($context) { case 'activity': // For member activity avatars $avatar_size = 50; // Set the size you want for activity avatars break; case 'group': // For group avatars (if applicable) $avatar_size = 100; // Set the size you want for group avatars break; default: $avatar_size = $max_size; // Fallback to max size for other contexts break; } // Fetch the avatar HTML for the user with the specified size $avatar_html = get_avatar($user_id, $avatar_size); // Check if the avatar HTML is not empty if (!empty($avatar_html)) { // Extract the URL from the avatar HTML preg_match('/src="(.*?)"/', $avatar_html, $matches); if (isset($matches[1])) { // Return the custom avatar URL with specified width and height return '<img src="' . esc_url($matches[1]) . '" class="avatar" style="max-width: ' . $max_size . 'px; height: auto;" />'; } } else { // If no uploaded avatar is found, fall back to the default WordPress avatar with specified size $avatar_url = get_avatar_url($user_id, ['size' => $avatar_size]); return '<img src="' . esc_url($avatar_url) . '" class="avatar" style="max-width: ' . $max_size . 'px; height: auto;" />'; } // Return the original avatar if avatar HTML could not be processed return $avatar; }Topic: New situation
Hi
How to add a new situation for sending email.
I want to create a situation for one course.
Is there such an option in buddypress? and how to implement it in this case?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.
Hello,
I recently updated to the latest version of BuddyPress and ran into some issues
The first thing I’ve noticed is that the elements I had for the “Blog” page are printing on some BuddyPress pages, like the registration page
I have consulted the people at GeneratePress and they tell me that the problem would be in BuddyPress, since BuddyPress would be occupying is_home() in templates that are not blog. This bug or problem is persistent and can be replicated, for now I hid those elements using CSS
https://generate.support/topic/problem-with-elements-in-buddypress/
I have also noticed strange behavior on blog page after updating. For example, sometimes the registration page and the blog itself lose their favicon in the browser
I have also noticed that, after updating, occasionally my blog gets some styles corrupted, for example I lose some paddings. These bugs or problems are difficult to detect, they are occasional
It would be great if you could review this
Thanks for the plugin, best regards
Hello
WordPress version 6.5.5 buddypress v. 14.0.0
Just gorup have a problem
Google webmaster:
Page availability
Page cannot be indexed: Redirect error
URL will be indexed only if certain conditions are met
Discovery
Not checked in live tests
Crawl
Time
Jul 13, 2024, 12:58:21 AM
Crawled as
Google Inspection Tool smartphone
Crawl allowed?
Yes
Page fetch
error
Failed: Redirect error
————————
SSL ok
I can’t see any redirect code…
I changed theme and test it…
🙁🙁🙁Hello,
I’m calling the BuddyPress function “bbp_get_user_profile_url” in a shortcode but I’m getting a fatal error:
“Fatal error: Uncaught Error: Call to undefined function bbp_get_user_profile_url()”
Any help would be supremely appreciated !
Cheers!
Jakson