Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 476 through 500 (of 73,985 total)
  • Author
    Search Results
  • #334710

    In reply to: BP user @mention

    Praveen Kumar
    Participant

    Hi Varun,

    Thanks for your response.

    I was wondering if it’s possible to add a debounce function without modifying the core BuddyPress files. I’ve attempted to create a custom file where I wrap the original remoteFilter function with a debounce function and then enqueue this script in the theme’s functions.php file.

    Here’s the approach I’ve taken:

    mentionsDefaults.callbacks.remoteFilter = debounce(function(query, render_view) {
    originalRemoteFilter.call(this, query, render_view);
    }, debounceTime);

    Could you please advise if this is the correct approach or if there is a better way to achieve this?

    capexpe
    Participant

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

    We 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

    #334694

    In reply to: BP user @mention

    Varun Dubey
    Participant

    Implement a debounce function to delay AJAX requests until the user has stopped typing for a specified duration. This will reduce the number of requests and improve responsiveness. The debounced function can be added to the input event in the “What’s new” section of the BuddyPress activity stream.
    https://dev.to/zahoorcodes/benefits-of-delaying-ajax-calls-2f35

    #334693
    Varun Dubey
    Participant

    @traqbar It seems to be working fine. Try debugging using the default theme and only BuddyPress to find which plugin is causing the issue.

    #334692

    Topic: BP user @mention

    in group forum Requests & Feedback
    Praveen Kumar
    Participant

    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.

    Keith
    Participant

    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.

    #334688
    #334675

    In reply to: BuddyPress 14.0.0

    gonzaloengler
    Participant

    Hola, necesito ayuda, porque al instalar buddypress no se asocian más paginas

    #334672
    jimbrown11
    Participant

    Hi,

    For the activation email issue, check your BuddyPress and WordPress settings to ensure emails are configured correctly. Also, look for plugin conflicts that might be affecting it.

    For the profile redirection problem, verify that your website URL settings in WordPress and BuddyPress are correct. Double-check the URL configurations to ensure they point to your site.

    If you need more help, contacting support might be a good next step.

    #334662
    #334656
    744691223097925
    Inactive

    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?

    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);
    }
    #334629
    skyhaw77
    Participant

    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.

    #334627

    Topic: Website error

    in group forum Installing BuddyPress
    garymorris
    Participant

    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 83

    Since this seems to be content-related, you will need to reach out to a web developer to address this problem.

    unbelievable
    Participant

    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;
    }
    #334620

    Topic: New situation

    in forum Miscellaneous
    armensaghyan
    Participant

    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?

    ghinamt
    Participant

    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.

    #334617

    In reply to: BuddyPress 14.0.0

    ghinamt
    Participant

    Thank you, but after updating the plugin to the lattes version, 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.)

    —————————————-

    even the WPML and BuddyPres are already active and working

    hernan2022
    Participant

    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

    #334615

    In reply to: BuddyPress 14.0.0

    Mathieu Viet
    Moderator

    Hi @oumz99

    Thanks for this information. There’s no competition to me. BuddyPress is free & open source. Nobody gets any money in the BP Team. We contribute to BuddyPress and are doing our best to build great quality software because we love the community and we value the global interest over personal profit.

    I think users should see this declining rate the other way around. This won’t happen but imagine the freedom they would lose if this BuddyPress fork was the only way to build communities in WordPress.

    We are very lucky to have a completely free way to meet online inside WordPress sites: let’s protect this freedom and care for it 😍.

    #334614

    In reply to: BuddyPress 14.0.0

    oumz99
    Participant

    Buddyboss got sold to awesome motive. More competition for buddypress. We are currently at a declining rate sitting at 2016 levels.

    reza
    Participant

    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…
    🙁🙁🙁

    #334583
    Jakson
    Participant

    Ah! thanks so much @venutius !!!

    is there an equivalent in BuddyPress?

    #334582
    Venutius
    Moderator

    That’s not a BuddyPress function, it’s bbPress.

    #334581
    Jakson
    Participant

    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

Viewing 25 results - 476 through 500 (of 73,985 total)
Skip to toolbar