Search Results for 'buddypress'
-
Search Results
-
WP: 6.6.1, BBClassic & BuddyPress: 14.0, Stearnvault.com
This enquiry is regarding excerpts from private posts displayed in the search hit results of the in-built Site Search. Looking for repro before filing at Trac.
Because of the privacy concerns, the code from this SO thread is used to disable all search at the site at this time.
Thanks.Topic: Trouble with translation
Hello BP-developers
Thank you for maintaining and developing Buddypress!
I have an issue with translating some site messages and labels, i.e. ‘members-only area’ + ‘This community area is accessible to logged-in members only.’ , text in buttons like ‘view group’ and some time stamps like ‘a month ago’
I use Loco Translate, and I update the strings, but the translations don’t show.
Here is a link to a group, which redirects to ‘private community’
WP 6.6.1
BP 14.0.0I want to make users able to add bullet or numeric lists to their profile page. Doesn’t matter if I chose wp user meta bio field or multiline xprofile field, both display lists in user profile as words with linebreaks (br). How can I avoid that and show it like it is saved in db?
Same question here 3 years ago, unanswered.
The Avatar and Cover images are showing up blurry. I tried adding the below code to my functions file (via snippets plugin) and it did nothing. I need to change the quality of the images to 100% not be so blurry looking, they just look terrible (I changed nothing, just using default BuddyPress). How do I tell BuddyPress to use the full image size and just scale it down to fit the image size vs. using the thumbnail size, since typically in WordPress those images are horribly blurry.
Hereโs the code I added which only alters the image sizes not QUALITY.
<?php // Define Buddypress Avatars Dimensions. if ( ! defined( 'BP_AVATAR_THUMB_WIDTH' ) ) { define( 'BP_AVATAR_THUMB_WIDTH', 50 ); } if ( ! defined( 'BP_AVATAR_THUMB_HEIGHT' ) ) { define( 'BP_AVATAR_THUMB_HEIGHT', 50 ); } if ( ! defined( 'BP_AVATAR_FULL_WIDTH' ) ) { define( 'BP_AVATAR_FULL_WIDTH', 150 ); } if ( ! defined( 'BP_AVATAR_FULL_HEIGHT' ) ) { define( 'BP_AVATAR_FULL_HEIGHT', 150 ); }Topic: URL page is blank
I just installed MemberPress for the first time last week. A few years ago, I had tried using BuddyPress and set up a few things, but ultimately went a different way.
When I reinstalled BuddyPress last week, all of my old settings were still there. I’m wondering if that is the reason that this URL page is blank, because I understand that the assignment of pages has changed in the past year or so.
I have tried torubleshooting by deactivating all of my plugins besides BuddyPress and I even reverted to one of the default themes and nothing makes the data appear on the URL page.
Is there a way for me to reset my BuddyPress account so that it takes me through the full install process again? If not that, does anyone have any other ideas why this might be happening?
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.