Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 1 through 25 (of 768 total)
  • Author
    Search Results
  • #335647
    locker17
    Participant

    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!

    #335389
    GyziieDK
    Participant

    Favorites to me is kinda the same as “liked posts”.. So either would work I guess.
    For now the favorites do work for the most part, but some areas do need an update.

    The “notifications” I’m talking about is on the
    #buddypress div.item-list-tabs.primary-list-tabs & activity-favorites

    – Basically the counter for the “marked as favorites” on the sub-navigation. If a member decides to remove an activity that another member has marked as a favorite the count dosen’t update or accomidate for this. So now the other user is left with an empty list but still a phantom “notification” on the sub navigation.

    The only way I’ve found to “reset” this is to go into the MySQL database itself and clear the meta-data from there in order to actually “reset”/update the counter. The issue is that it’s almost impossible to find the specific “favorite” data and dele only that one.

    Hope it makes sense! 🙂

    Error-065

    Antipole
    Participant

    BuddyPress site-wide notifications work well for me on all platforms except Android.

    On Android the notification is transparent – superimposed over the page and the dismiss button does not work. There is no way to dismiss it.

    Confirmed using
    Wordpress 6.6.2
    Buddypress 14.1.0
    No other plugins except StopEmails and UserSwitching
    Theme: Twenty Tweny-Four

    #334915
    cj74
    Participant

    Hello @pellepedersen

    You aren’t getting notification emails when a new user signs up? Am i understanding it right?

    I have the same setup as you. Discovered yesterday that people signing up are not receiving activation emails. Today i discovered I am not being notified when someone signs up.

    Did you find out why you aren’t getting any emails of a new user signing up. I would have thought that’s the most minimum of an alert which should work without any hiccups.

    #334864
    Renato Alves
    Moderator

    Three things:

    – I can’t replicate the issue you have.
    user_name is not a valid field, btw. It was deprecated.

    Using the followwing payload, I actually get this in BuddyPress 14.0 since you are using + in the user_login, that’s not valid.

    Request Payload.

    
    curl -X POST "https://bp-demo.test/wp-json/buddypress/v1/signup/" \
         -d "context=edit" \
         -d "user_email=pratik@testmail.com" \
         -d "user_login=testthe+request+" \
         -d "password=\"']));L)Q542q8dL3" \
         -d "signup_field_data[0][field_id]=1" \
         -d "signup_field_data[0][value]=testthe+request+" \
         -d "state=gggg" \
         -d "country=AZE" \
         -d "postal_code=444444" \
         -d "mobile_phone=555555555"
    
    
    {
      "code": "bp_rest_signup_validation_failed",
      "data": {
        "status": 500
      },
      "message": "Usernames can contain only letters, numbers, ., -, and @"
    }
    

    Here is the BP configuration I have locally, taken from my local site: https://bp-demo.test/wp-admin/site-health.php?tab=debug

    
    version: 14.0.0
    active_components: Extended Profiles, Settings, Friend Connections, Private Messages, Activity Streams, Notifications, User Groups, Site Directory, Members, Members Invitations
    url_parser: BP Rewrites API
    global_community_visibility: anyone
    template_pack: BuddyPress Nouveau 14.0.0
    ! hide-loggedout-adminbar: Yes
    ! bp-disable-account-deletion: Yes
    ! bp-disable-avatar-uploads: Yes
    ! bp-disable-cover-image-uploads: Yes
    bp-enable-members-invitations: No
    bp-enable-membership-requests: No
    ! bp-disable-profile-sync: Yes
    ! bp_restrict_group_creation: Yes
    ! bp-disable-group-avatar-uploads: Yes
    ! bp-disable-group-cover-image-uploads: Yes
    ! bp-disable-group-activity-deletions: Yes
    ! bp-disable-blogforum-comments: No
    _bp_enable_heartbeat_refresh: Yes
    
    #334662
    unbelievable
    Participant

    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);
    }
    #334518

    In reply to: user engagement

    Venutius
    Moderator

    you could consider adding a chat facility like Wise Chat perhaps?

    Like new posts to user notifications, if there is a lot of blogging.

    Streamline the options you make available to users, complexity often puts people off.

    Kokiri
    Participant

    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,

    #334190
    GyziieDK
    Participant

    After some testing this is indeed an issue that needs to be looked into.

    When a user marks something as “favorite” and that post is deleted – the notification is not being deleted with that said post.

    I’ve had to delete the row (usermeta) through my MySQL database before I managed to remove this. Clearing cache or anything like that will not work.

    Where do I report this to be “fixed?”.

    Thanks!

    #334093
    Koka boka
    Participant

    I created a small plugin where users can subscribe to authors, but for some reason users are not notified when the author publishes a new post. Please help to solve this problem. I checked the logs, it shows that the notification was sent, but the notification itself is not there!

    <?php
    /*
    Plugin Name: Author Subscription and Notification
    Description: Allows users to subscribe to authors and receive notifications when authors publish new posts.
    Version: 1.3
    Author: test
    */
    
    // Hook to create the database table upon plugin activation
    register_activation_hook(__FILE__, 'create_subscriptions_table');
    
    function create_subscriptions_table() {
        global $wpdb;
        $table_name = $wpdb->prefix . 'author_subscriptions';
        $charset_collate = $wpdb->get_charset_collate();
    
        $sql = "CREATE TABLE $table_name (
            id bigint(20) NOT NULL AUTO_INCREMENT,
            user_id bigint(20) NOT NULL,
            author_id bigint(20) NOT NULL,
            PRIMARY KEY (id),
            UNIQUE KEY user_author (user_id, author_id)
        ) $charset_collate;";
    
        require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
        dbDelta($sql);
    }
    
    // Hook to add subscription button in the post content
    add_filter('the_content', 'add_author_subscription_button_to_post');
    
    function add_author_subscription_button_to_post($content) {
        if (is_single() && is_user_logged_in()) {
            $author_id = get_the_author_meta('ID');
            $current_user_id = get_current_user_id();
            
            global $wpdb;
            $table_name = $wpdb->prefix . 'author_subscriptions';
    
            // Check if user is already subscribed
            $is_subscribed = $wpdb->get_var($wpdb->prepare(
                "SELECT COUNT(*) FROM $table_name WHERE user_id = %d AND author_id = %d",
                $current_user_id, $author_id
            ));
    
            $button_text = $is_subscribed ? 'Unsubscribe' : 'Subscribe';
            $button_html = '<button id="subscribe-author" class="subscribe-button" data-author-id="' . esc_attr($author_id) . '">' . esc_html($button_text) . '</button>';
            $button_html .= '<div id="subscription-message"></div>';
            
            $content .= $button_html;
        }
        return $content;
    }
    
    // Enqueue the JavaScript file and localize script
    add_action('wp_enqueue_scripts', 'enqueue_subscription_script');
    
    function enqueue_subscription_script() {
        if (is_single() && is_user_logged_in()) {
            wp_enqueue_script('subscription-script', plugin_dir_url(__FILE__) . 'subscription.js', array('jquery'), '1.0', true);
            wp_localize_script('subscription-script', 'subscriptionData', array(
                'ajax_url' => admin_url('admin-ajax.php'),
                'nonce'    => wp_create_nonce('subscription_nonce')
            ));
        }
    }
    
    // Handle the AJAX request for subscription
    add_action('wp_ajax_handle_author_subscription', 'handle_author_subscription');
    
    function handle_author_subscription() {
        check_ajax_referer('subscription_nonce', 'nonce');
    
        if (is_user_logged_in()) {
            global $wpdb;
            $table_name = $wpdb->prefix . 'author_subscriptions';
    
            $current_user_id = get_current_user_id();
            $author_id = intval($_POST['author_id']);
            $operation = sanitize_text_field($_POST['operation']);
            
            if ($operation === 'subscribe') {
                $wpdb->insert($table_name, array(
                    'user_id' => $current_user_id,
                    'author_id' => $author_id
                ));
                wp_send_json_success('Subscribed successfully.');
                error_log("User ID $current_user_id subscribed to author ID $author_id");
            } else if ($operation === 'unsubscribe') {
                $wpdb->delete($table_name, array(
                    'user_id' => $current_user_id,
                    'author_id' => $author_id
                ));
                wp_send_json_success('Unsubscribed successfully.');
                error_log("User ID $current_user_id unsubscribed from author ID $author_id");
            }
        }
        wp_send_json_error('Failed to update subscription.');
    }
    
    // Hook to send notifications when an author publishes a new post
    add_action('publish_post', 'notify_subscribers_on_new_post');
    
    function notify_subscribers_on_new_post($post_id) {
        global $wpdb;
        $table_name = $wpdb->prefix . 'author_subscriptions';
    
        $post = get_post($post_id);
        $author_id = $post->post_author;
    
        error_log("New post published by author ID: " . $author_id);
    
        // Get subscribers
        $subscribers = $wpdb->get_results($wpdb->prepare(
            "SELECT user_id FROM $table_name WHERE author_id = %d",
            $author_id
        ));
    
        error_log("Subscribers found: " . count($subscribers));
    
        foreach ($subscribers as $subscriber) {
            // Send BuddyPress notification
            bp_notifications_add_notification(array(
                'user_id'           => $subscriber->user_id,
                'item_id'           => $post_id,
                'secondary_item_id' => $author_id,
                'component_name'    => 'buddypress',
                'component_action'  => 'new_post_by_subscribed_author',
                'date_notified'     => bp_core_current_time(),
                'is_new'            => true,
            ));
            error_log("Notification sent to user ID: " . $subscriber->user_id);
        }
    }
    
    // Custom notification format
    add_filter('bp_notifications_get_notifications_for_user', 'custom_bp_notification_format', 10, 5);
    
    function custom_bp_notification_format($content, $item_id, $secondary_item_id, $action, $component_name) {
        if ($component_name === 'buddypress' && $action === 'new_post_by_subscribed_author') {
            $author_name = get_the_author_meta('display_name', $secondary_item_id);
            $post_title = get_the_title($item_id);
            $post_url = get_permalink($item_id);
            
            $content = sprintf(__('New post by %s: <a href="%s">%s</a>', 'text-domain'), $author_name, $post_url, $post_title);
        }
        
        return $content;
    }
    ?>
    [23-May-2024 09:42:15 UTC] a:0:{}
    [23-May-2024 09:42:40 UTC] New post published by author ID: 1
    [23-May-2024 09:42:40 UTC] Subscribers found: 2
    [23-May-2024 09:42:40 UTC] Notification sent to user ID: 1
    [23-May-2024 09:42:40 UTC] Notification sent to user ID: 27
    [23-May-2024 09:42:43 UTC] a:0:{}
    Koka boka
    Participant

    I’m trying to create a block with notifications that should be displayed using a shortcode, but for some reason I get one message (Error: Unable to retrieve notification data.) in the place of the notifications themselves. Tell me where did I mess up?
    The code itself:

    <?php
    /*
    Plugin Name: BuddyPress Real-Time Notifications
    Description: 
    Version: 1.0
    Author: 
    */
    
    // JavaScript
    function bprtn_enqueue_scripts() {
        wp_enqueue_script('bprtn-scripts', plugin_dir_url(__FILE__) . 'scripts.js', array('jquery'), null, true);
    }
    
    add_action('wp_enqueue_scripts', 'bprtn_enqueue_scripts');
    
    // CSS
    function bprtn_enqueue_styles() {
        wp_enqueue_style('bprtn-styles', plugin_dir_url(__FILE__) . 'styles.css');
    }
    
    add_action('wp_enqueue_scripts', 'bprtn_enqueue_styles');
    
    // function
    function bprtn_display_notification($notification) {
        if (isset($notification->component_name) && isset($notification->component_action) && isset($notification->item_id)) {
            echo '<div class="bprtn-notification">';
            echo '<p class="bprtn-description">' . bp_the_notification_description($notification->component_action, $notification->item_id) . '</p>';
            echo '<p class="bprtn-date">' . bp_the_notification_time_since($notification->date_notified) . '</p>';
            echo '<div class="bprtn-actions">';
            // buttons
            bp_the_notification_action_links(array('before' => '<div class="bprtn-action">', 'after' => '</div>', 'notification' => $notification));
            echo '</div>';
            echo '</div>';
        } else {
            echo '<p class="bprtn-notification-error">Error: Unable to retrieve notification data.</p>';
        }
    }
    
    // function load notifications
    function bprtn_load_notifications() {
        $user_id = bp_loggedin_user_id();
        $notifications = bp_notifications_get_notifications_for_user($user_id);
    
        if (!empty($notifications)) {
            foreach ($notifications as $notification) {
                bprtn_display_notification($notification);
            }
        } else {
            echo '<p class="bprtn-no-notifications">No new notifications.</p>';
        }
    }
    
    // shortcode
    function bprtn_notifications_shortcode() {
        ob_start();
        bprtn_load_notifications();
        return ob_get_clean();
    }
    
    add_shortcode('bprtn_notifications', 'bprtn_notifications_shortcode');
    
    // AJAX
    function bprtn_mark_as_read() {
        if (isset($_POST['notification_id'])) {
            $notification_id = $_POST['notification_id'];
            bp_notifications_mark_notifications_by_id(array($notification_id), 'read');
        }
        wp_die();
    }
    
    add_action('wp_ajax_bprtn_mark_as_read', 'bprtn_mark_as_read');
    ?>
    #333989
    Koka boka
    Participant

    Hi @imath
    Thanks for the help!
    Maybe you can suggest something with this. I want to add a counter of new posts from the activity feed to the custom menu.
    I put it in functions.php but didn’t get any results. With my meager knowledge, I did not succeed. I can’t figure out how to add a counter to my custom menu.
    P.S I’m not sure that the code itself is workable!

    Here on the forum I was offered the following code:

    <?php
    function bp_update_last_visit() {
    if (is_user_logged_in()) {
    update_user_meta(get_current_user_id(), 'last_visit', current_time('mysql'));
    }
    }
    add_action('wp_login', 'bp_update_last_visit'); 
    add_action('wp', 'bp_update_last_visit'); 
    ?>
    <?php
    function bp_get_new_activity_count() {
    $last_visited = get_user_meta(get_current_user_id(), 'last_visit', true);
    $args = array(
    'action' => 'new_post', // Adjust based on the actions you want to count
    'since' => $last_visited, // Filter activities since the last visit
    );
    
    // Query BuddyPress activity with arguments
    $activities = new BP_Activity_Query($args);
    return $activities->get_total();
    }
    ?>
            <?php
            function add_activity_notification_count() {
    $count = bp_get_new_activity_count();
    if ($count > 0) {
    echo '<span class="activity-notification-count">' . $count . '</span>';
    }
    }
    add_action('bp_menu', 'add_activity_notification_count');
      ?> 
    #333582
    davinian
    Participant

    Hi @venutius, not sure if I am missing something, but it doesn’t appear to work – in-fact when enabled and user role is selected the User no only doesn’t receive an email but the notification in BP stops working.

    I might look at using a 3rd party registration plugin like Paid Memberships Pro.

    #333581
    jgasba
    Participant

    For the posterity: the Codex was not very clear for newer user: the Settings > Email mentionned is in the public user profile settings, and only available if you have the “Notifications” component enabled.

    It does not allow to define the default values for the users settings. Each user can customize their own themselves.

    If I’m not mistaken to customize the “default” you can use this code:

    
    add_action( 'bp_core_activated_user', 'wps_set_email_notifications_preference');
      
    function wps_set_email_notifications_preference( $user_id ) {
     
        $settings = array(
            'notification_activity_new_mention'         => 'yes',
            'notification_activity_new_reply'           => 'yes',
            'notification_friends_friendship_accepted'  => 'yes',
            'notification_friends_friendship_request'   => 'yes',
            'notification_groups_admin_promotion'       => 'yes',
            'notification_groups_group_updated'         => 'yes',
            'notification_groups_invite'                => 'yes',
            'notification_groups_membership_request'    => 'yes',
            'notification_messages_new_message'         => 'yes',
        );
      
        foreach( $settings as $setting => $preference ) {
            bp_update_user_meta( $user_id,  $setting, $preference );
        }
    }
    
    #333369
    wingflap
    Participant

    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.

    #333300
    thinlizzie
    Participant

    Hi dvalken

    Just to add info:

    This issue has also been on my site for four years.
    Only affects Android devices, not iPhone or pc/laptop.

    When the buddypress drop-down items in the admin bar are clicked (top-right on screen) , for example Activity, Profile, Notifications, Messages, then the first sub-menu item is automatically selected and clicked without any user action. The user is unable to select the second or third sub-menu item.

    Default WordPress Twenty Sixteen Theme.
    Buddypress 10.6.1

    #333206
    eluyawi
    Participant

    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.0

    I don’t have any idea how fix it.

    #333045
    Mathieu Viet
    Moderator

    Hi @gomle

    Thanks a lot for your feedback. About Notifications, I believe using the Notification Web API can improve your “pulling the user to the site” need.

    Hi @oumz99

    I agree we should look into import/export. To comply with GDPR, users can export the data they created on the site from their profile settings. But a more global tool would be great to easily develop BuddyPress themes or move community generated content to another site.
    See & contribute to it there: https://buddypress.trac.wordpress.org/ticket/1058

    Hi @bclaim

    So do I! I totally agree with you. We need to rethink the Private Messages component/feature with the goal:
    1. to make it a chat like system for member(s) to member(s) discussions as well as between group members discussions. What are channels in Slack could be groups in BuddyPress Private Messages. I’m looking carefully to the Block Editor live collaboration system as it may help us to reach this goal.
    2. to move the Community wide notice feature outside of it.


    @priyam1234

    It should be the case. So it’s not an evolution to me but more a bug. I’ll look into it.

    @everyone:
    I’ll make sure to talk about it with other members of the BP Core Developers team during our next development meeting.

    Here’s my 2 main wishes for 14.0.0:
    – Review our different registration flows and allow Administrators to easily disable these BuddyPress registration flows.
    – Build new BP Blocks along with a new BP Blocks only Theme to start using the WP Site Editor to customize our community area.

    #332751
    raoof12323
    Participant

    Hi drstrats,

    Greetings! I understand the challenge you’re facing with BuddyPress email notifications ending up in the spam folder. To resolve this issue, follow these steps:

    1. BuddyPress SMTP Settings:
    Ensure that BuddyPress is configured to use SMTP for sending emails. Navigate to the BuddyPress settings, and look for the email configuration section. You might find options to input SMTP details like server, port, username, and password. Set these up according to your email provider’s specifications.

    2. WP Mail SMTP Plugin:
    It’s great that you’ve installed the WP Mail SMTP plugin. To make sure it integrates with BuddyPress, go to the WP Mail SMTP settings. You’ll find an option to enable SMTP for BuddyPress emails. Ensure it’s checked, and save the settings.

    3. Testing:
    After configuring the above settings, send a test email through BuddyPress. Check the spam folder and see if the issue persists. Sometimes, it might take a little time for the changes to take effect.

    If the problem continues, consider reaching out to your hosting provider to verify if there are any server-specific configurations affecting email delivery.

    On a lighter note, when it comes to making moments special, have you ever considered expressing yourself with flowers? Explore the offerings from the best flower shops in McAllen, TX. Their delightful arrangements might just be the perfect touch for any occasion.

    Wishing you success in resolving the SMTP matter, and may your BuddyPress notifications reach their recipients seamlessly.

    Best regards,

    [raoof]
    Best Flower Shops in McAllen, TX

    #332555
    Mike Witt
    Participant

    @anisf18,

    Could you provide a bit more information on what you’re seeing? I’ve also been having a problem, apparently with the timezone, between BuddyPress and bbPress. But the problem I’m seeing is definitely not new with BP 12.

    FYI, I’m just another BP user. Here a description of my issue:

    bbPress / BuddyPress notification interaction?

    #332525
    fasirathore
    Participant

    /home/u604108565/domains/forextradingcommunity.com/public_html/wp-content/themes/hello-elementor/functions.php on line 229

    [23-Dec-2023 07:58:30 UTC] PHP Warning: Attempt to read property “title” on null in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-includes/class-wp-customize-widgets.php on line 905

    [23-Dec-2023 07:59:01 UTC] PHP Deprecated: The PSR-0 Requests_... class names in the Requests library are deprecated. Switch to the PSR-4 WpOrg\Requests\... class names at your earliest convenience. in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-includes/class-requests.php on line 24

    [23-Dec-2023 08:08:45 UTC] Cron reschedule event error for hook: better_messages_cleaner_job, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {“schedule”:”better_messages_cleaner_job”,”args”:[],”interval”:300}

    [23-Dec-2023 08:11:04 UTC] PHP Deprecated: Function print_emoji_styles is deprecated since version 6.4.0! Use wp_enqueue_emoji_styles instead. in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-includes/functions.php on line 6031

    [23-Dec-2023 08:32:43 UTC] PHP Warning: Attempt to read property “title” on null in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-includes/class-wp-customize-widgets.php on line 905

    [23-Dec-2023 08:32:54 UTC] PHP Deprecated: File Theme without header.php is deprecated since version 3.0.0 with no alternative available. Please include a header.php template in your theme. in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-includes/functions.php on line 6031

    [23-Dec-2023 08:42:41 UTC] PHP Deprecated: Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead. in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-includes/functions.php on line 6031

    [23-Dec-2023 08:43:00 UTC] PHP Deprecated: The PSR-0 Requests_... class names in the Requests library are deprecated. Switch to the PSR-4 WpOrg\Requests\... class names at your earliest convenience. in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-includes/class-requests.php on line 24

    [23-Dec-2023 08:44:10 UTC] PHP Deprecated: Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead. in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-includes/functions.php on line 6031

    [23-Dec-2023 11:32:30 UTC] PHP Deprecated: urldecode(): Passing null to parameter #1 ($string) of type string is deprecated in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-content/plugins/litespeed-cache/src/control.cls.php on line 547

    [23-Dec-2023 11:55:40 UTC] PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-content/plugins/bbp-style-pack/includes/settings_import.php on line 16

    [23-Dec-2023 12:55:50 UTC] PHP Deprecated: urldecode(): Passing null to parameter #1 ($string) of type string is deprecated in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-content/plugins/litespeed-cache/src/control.cls.php on line 547

    [23-Dec-2023 14:04:20 UTC] PHP Warning: file_put_contents(): Exclusive locks may only be set for regular files in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-content/plugins/bbp-style-pack/includes/generate_css.php on line 165

    [23-Dec-2023 14:34:05 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-content/plugins/google-analytics-for-wordpress/includes/admin/notification-event-runner.php on line 94

    [24-Dec-2023 11:48:54 UTC] PHP Warning: Attempt to read property “name” on bool in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-admin/nav-menus.php on line 1215

    [24-Dec-2023 11:48:54 UTC] Cron reschedule event error for hook: action_scheduler_run_queue, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {“schedule”:”every_minute”,”args”:[“WP Cron”],”interval”:60}

    [24-Dec-2023 11:49:58 UTC] Cron reschedule event error for hook: better_messages_cleaner_job, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {“schedule”:”better_messages_cleaner_job”,”args”:[],”interval”:300}

    [24-Dec-2023 11:51:55 UTC] PHP Deprecated: Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead. in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-includes/functions.php on line 6031

    [24-Dec-2023 13:03:21 UTC] PHP Warning: mysqli_real_connect(): (HY000/1130): Host ‘127.0.0.1’ is not allowed to connect to this MariaDB server in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-includes/class-wpdb.php on line 1987

    [24-Dec-2023 13:05:23 UTC] PHP Warning: Attempt to read property “name” on bool in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-admin/nav-menus.php on line 1215

    [24-Dec-2023 13:05:29 UTC] PHP Warning: Attempt to read property “name” on bool in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-admin/nav-menus.php on line 1215

    [24-Dec-2023 13:05:31 UTC] PHP Warning: Attempt to read property “name” on bool in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-admin/nav-menus.php on line 1215

    [24-Dec-2023 13:42:33 UTC] PHP Deprecated: Function bp_core_get_user_domain is deprecated since version 12.0.0! Use bp_members_get_user_url() instead. in /home/u604108565/domains/forextradingcommunity.com/public_html/wp-includes/functions.php on line 6031

    #332249

    In reply to: BuddyPress 12.0.0

    dangbird
    Participant

    So I tried the BP Classic Plugin and no changes. Did a bunch of testing and IF a notification has NOT been read or dismissed for ANY user, they can see the normal front end of the Website fine/all works as before. HOWEVER if any user dismisses or deletes any notification then they get a blank web page with just our header and the BP Icons, with no console errors etc.

    So having a Notification or NOT having a notification is the trigger for the Theme failing.
    Installing BP Classic made not change.

    That said, I am likely not understanding the thread you provided or how the update worked. Rolled to 11.4 all well again. Appreciate the support, and a fantastic plugin.

    #332243

    In reply to: BuddyPress 12.0.0

    Mathieu Viet
    Moderator

    Hi @dangbird

    Thanks for your feedback, in version 11.4.0 we’ve (exceptionally) introduced a feature to display notifications only to admins to inform them about the massive change coming into 12.0.0. See https://buddypress.trac.wordpress.org/ticket/9007

    This feature we called “Admin notifications” is temporarily overriding the notifications for all admin users as long as one of the admin clicks on the exclamation mark to read the important message we want him to read. This message is about when to activate BP Classic to preserve backwards compatibility required by a specific config (BP Plugins not updated for the last 4 months, the deprecated BP Default standalone theme activated or the need to still use BP Legacy widgets).

    It may be the reason explaining what you saw with the Reign theme. It should disappear as soon as you read the Admin notification. Let me know if it helped you fix (or not) the issue with 12.0 for you.

    #332242

    In reply to: BuddyPress 12.0.0

    dangbird
    Participant

    Hello @imath – After 12.0 update if the “Notifications” Setting is set, it appears to take over/override my theme. (Reign Theme + Child Ultimate Buddy Press Theme) NON Admin users cannot see the site as some kind of code overrides the Theme.

    Let me know if I can provide any details.
    (Rollback to 11.4 is great, or DISABLE 12.0 “Notifications”)

    Thanks very much.

Viewing 25 results - 1 through 25 (of 768 total)
Skip to toolbar