Search Results for 'notification user id'
-
Search Results
-
Hello,
I have a follow up question to this old thread:
https://buddypress.org/support/topic/how-to-get-notification-count-code/chatty24 asked “Could that also happen in real time (without refreshing the page)?”.
I am having the same question. How can I ajaxify “bp_notifications_get_unread_notification_count( $user_id)”?
Thanks for any help!
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?
Hello BuddyPress Support Team / Community,
I hope this message finds you well. I am writing to request a feature enhancement for our BuddyPress community. We would love to see an option to automatically display when a user uploads or updates their avatar in the activity feed. This feature would significantly enhance user engagement by keeping the community informed of profile updates and encouraging interactions.
Benefits:Increased Visibility: Members can immediately see when someone updates their avatar, promoting profile visits and interactions.
Enhanced Engagement: Users are more likely to comment or react to avatar changes, fostering a sense of community.
Streamlined User Experience: Automated updates in the activity feed ensure that members do not miss out on important profile changes.
Suggested Implementation:Avatar Update Trigger: When a user uploads or updates their avatar, a trigger should generate a new activity entry.
Activity Message: The activity entry could display a message like “User [Username] has updated their avatar.”
Integration with Existing Feed: The new activity entry should seamlessly integrate with the existing activity feed, appearing in chronological order.
Customization Options:Privacy Settings: Allow users to opt-out of broadcasting their avatar changes if they prefer privacy.
Activity Message Customization: Option for users to add a custom message along with their avatar update notification.We believe this feature would greatly benefit our community and enhance user experience. Thank you for considering our request. We look forward to your response and any potential updates on this feature. We did find a way to block certain activity types from showing up in the activity feed – however we’re looking for a way to add this particular type in our feeds.
Best regards,
When I create a group and set it to hidden, it is not visible to me as admin (or any other user whether they’re members of the group or not.
To test, I created a fresh WordPress install, installed the BuddyX (free) theme, then BuddyPress, bbPress, and finally BP Classic plugin. I’m logged in as admin. I created a user called sub1 who is a subscriber.
I created a group called Normal which is set up as a public group. Then I created a second group called Private which is set up as private. Then I set up a group called Hidden which is set to hidden. When creating each group, I sent an invite to user Sub1.
When I go to the Groups page (/groups), I see the group count as 3. I see the group Normal which I can click into and view group info, and the group Private which I can click into and see group info (since I’m logged in as admin who created the group). I do not see the group Hidden. But on the bottom it says “Viewing 1 – 3 of 3 groups” even though I can only see 2.
If I log out, I can see the group Normal and click into it and see group info. I can see the group Private and click into it, but see a message saying that this is a private group. No group Hidden when logged out (as expected) and on the bottom it says “Viewing 1 – 2 of 2 groups”.
If I log in as user Sub1, I only see 2 groups but “Viewing 1 – 3 of 3 groups”. The group Private says I have to be a member of the group to see anything. Then I accept the invite to group Private. Then I can see everything in the group. I don’t see the group Hidden. In my notifications, I click on the invitation to group Hidden and nothing happens.
I tried and succeeded to reproduce this in a vanilla environment. Any help would be appreciated.
Thanks.
Topic: Notifications page
I have a problem with the notifications page, because when you are in the user’s profile, and you want to see your notifications, the page is not shown, a page error appears, because it does not exist.
https://tudominio.com/miembros/horacios/notifications/
BuddyPress Versión 12.2.0I don’t have any idea how fix it.

