Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 401 through 425 (of 73,983 total)
  • Author
    Search Results
  • konstant88
    Participant

    Hello everyone,

    WP Version: 6.6.1-de_DE
    Elementor: v3.24.4
    Elementor Pro: v3.23.3
    BuddyPress Version: 14.0.0

    I’m facing an issue where the registration form URL, defined in Settings > BuddyPress > URLs, always loads with the single post template. I can’t change it to another template. How can I assign a custom template to this page instead of using the standard blog post template? Any help would be greatly appreciated!

    Thanks!

    #334990
    thinlizzie
    Participant

    I seem to remember if you force Buddypress to use wp_mail to send its emails, then those will indeed be logged by the WP Mail Logging plugin.

    Try it out.

    
    add_filter( 'bp_email_use_wp_mail', '__return_true' );
    
    #334987
    Venutius
    Moderator

    I think best practice really depends on your target audience and what features they may expect or desire from their profile.

    One of that main profile customisation features provided in BuddyPress is the ability to “overload”, a profile template file, replacing it with your own customised version. This is a simple way to add your own features to the profile pages.

    However, overloading a page means any updates to it in future by BuddyPress would need to be manually added to your overloaded page, so this method, although simple, is not the only way to add custom features to profile pages.

    If you look in the plugins/buddypress/templates directory, and investigate the templates in, for example bp-nouveau, then you can see there are a lot of action hooks you could use to add further content in specific locations in each page.

    This second method allows you to keep the BP provided templates unchanged, but still add the content required.

    The most configurable profile I ever created was for a social networking community that wanted the user to effectively create their own theme for their profile pages. So I built the following additional plugins for the site:

    1. a theme specific plugin that allowed the user to fully customise their profile colour scheme.
    2. A custom header plugin that allowed the user to select their own header image.
    3. Similarly, a custom background plugin.
    4. My profile home and sidebar user widgets plugins to allow the user to add their own content into their profile pages.
    5. Menu customisations to bring all these customisation options into a single location, and remove/simplify them in other places.
    6. Integration with the overall blogging platform – providing the user with areas where they can showcase their own blogs, and also allow them a variety of options as to who those blogs are shown to.

    Those are just a few main examples as to the possibilities, but most of them do require some form of coding.

    #334982
    terrenuit
    Participant

    Hello,
    The activity page of my site, I copied his permalink and pasted on the slug of this page, it generate -2 on the permalien, and this page cannot be displayed,
    How I can make it not -2 generation so that this page could be displayed on my site ? or another solution ?
    Thank you very much !

    #334981
    farhansheikh125
    Participant

    I’m looking to customize user profiles in BuddyPress to better suit my site’s needs. What are the best practices for:

    Adding custom fields and profile sections
    Ensuring seamless integration with existing themes
    Improving user interface and experience for profile pages
    Any recommended plugins or techniques for advanced customization
    I’d appreciate any advice or resources you can share to help with customizing BuddyPress profiles effectively.

    Thanks!

    #334980
    avltheater
    Participant

    Just to check all the boxes, I’ve changed themes and deactivated all plugins except buddypress and it’s still happening. HELP!!!

    #334978
    #334963
    George
    Participant

    For anyone that landed here from a Google search. The pagination is not working for forums set up inside BuddyPress groups. You need to copy those two files from
    \plugins\bbpress\templates\default\bbpress
    pagination-topics.php
    pagination-replies.php

    and copy them to
    \wp-content\themes\[yourchildtheme]\bbpress

    Replace the code inside pagination-topics.php to:

    <?php
    
    /**
     * Pagination for pages of topics (when viewing a forum)
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    // Exit if accessed directly
    defined( 'ABSPATH' ) || exit;
    
    do_action( 'bbp_template_before_pagination_loop' );
    
    // Use bbPress setting for topics per page
    $posts_per_page = bbp_get_topics_per_page();  // Dynamically get the value from bbPress settings
    
    // Get the current page
    $paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1;
    
    // Set up the custom query
    $args = array(
        'post_type'      => bbp_get_topic_post_type(),
        'posts_per_page' => $posts_per_page,
        'paged'          => $paged,
        'meta_query'     => array(
            array(
                'key'   => '_bbp_forum_id',
                'value' => bbp_get_forum_id(),
            ),
        ),
    );
    
    // Run the custom query
    $forum_query = new WP_Query($args);
    
    if ($forum_query->have_posts()) :
    ?>
        <div class="bbp-pagination">
            <div class="bbp-pagination-count">
                <?php
                // Display the range of topics being viewed
                $start = ($paged - 1) * $posts_per_page + 1;
                $end = min($paged * $posts_per_page, $forum_query->found_posts);
                echo sprintf(__('Viewing %1$s to %2$s (of %3$s topics)'), $start, $end, $forum_query->found_posts);
                ?>
            </div>
            <div class="bbp-pagination-links">
                <?php
                // Generate the pagination links
                echo paginate_links(array(
                    'total'   => $forum_query->max_num_pages,
                    'current' => $paged,
                    'format'  => '?paged=%#%',
                    'add_args' => false,
                    'prev_text' => __('« Prev'),
                    'next_text' => __('Next »'),
                ));
                ?>
            </div>
        </div>
    <?php
    else :
        echo '<p>No topics found.</p>';
    endif;
    
    // Reset post data
    wp_reset_postdata();
    
    do_action('bbp_template_after_pagination_loop');
    ?>
    

    Replace the code inside pagination-replies.php to:

    <?php
    
    /**
     * Pagination for pages of replies (when viewing a topic)
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    // Exit if accessed directly
    defined( 'ABSPATH' ) || exit;
    
    do_action( 'bbp_template_before_pagination_loop' );
    
    // Use bbPress setting for replies per page
    $posts_per_page = bbp_get_replies_per_page();  // Dynamically get the value from bbPress settings
    
    // Get the current page
    $paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1;
    
    // Set up the custom query
    $args = array(
        'post_type'      => bbp_get_reply_post_type(),
        'posts_per_page' => $posts_per_page,
        'paged'          => $paged,
        'meta_query'     => array(
            array(
                'key'   => '_bbp_topic_id',
                'value' => bbp_get_topic_id(),
            ),
        ),
    );
    
    // Run the custom query
    $replies_query = new WP_Query($args);
    
    if ($replies_query->have_posts()) :
    ?>
        <div class="bbp-pagination">
            <div class="bbp-pagination-count">
                <?php
                // Display the range of replies being viewed
                $start = ($paged - 1) * $posts_per_page + 1;
                $end = min($paged * $posts_per_page, $replies_query->found_posts);
                echo sprintf(__('Viewing %1$s to %2$s (of %3$s replies)'), $start, $end, $replies_query->found_posts);
                ?>
            </div>
            <div class="bbp-pagination-links">
                <?php
                // Generate the pagination links
                echo paginate_links(array(
                    'total'   => $replies_query->max_num_pages,
                    'current' => $paged,
                    'format'  => '?paged=%#%',
                    'add_args' => false,
                    'prev_text' => __('« Prev'),
                    'next_text' => __('Next »'),
                ));
                ?>
            </div>
        </div>
    <?php
    else :
        echo '<p>No replies found.</p>';
    endif;
    
    // Reset post data
    wp_reset_postdata();
    
    do_action('bbp_template_after_pagination_loop');
    ?>
    

    Then, resave your permalinks.

    #334962
    capexpe
    Participant

    Hello Lars

    No I haven’t found any workaround yet and haven’t heard from the buddypress team yet. They might be in vacation, so I’m Still waiting.

    I’ll keep you and the community posted.

    Dom

    #334960
    Lars Henriksen
    Participant

    Hi

    1) For my BP community, it would be nice if ‘Buddypress Follow’ was part of core and replaced the ‘friends’ functionality. It should be either/or – both together is confusing for users, IMO.

    2) Thanks @venutius, for updating the plugin. I tried it on my staging site. When I clicked ‘follow’, there was a critical error, but refreshing the site fixed it, so that it showed 1 follow on user’s profile.

    emaralive
    Moderator

    @mike80222, when composing a message, the “@” applies to the BuddyPress Nouveau template pack, i.e, the label reads “Send @Username” as opposed to the BuddyPress Legacy template pack that reads “Send To (Username or Friend’s Name)” and I’m not sure why it is not the same for both but, that is current behavior. As to the inconsistency for when suggestions appear or not appear is a puzzle, at the moment.

    @stephunique, it is possible to filter the suggested usernames by utilizing the bp_core_get_suggestions filter. If you only want to apply this filtering to messages (compose) then your callback needs to be location aware (what/which page/screen is active/loaded), as well.

    #334954
    emaralive
    Moderator

    The create_function() was deprecated as of PHP 7.2.0 and was removed in 8.0.0 (see create_function). Since you are using PHP 8.x then, it would be best to not use this plugin until it has had all compatibility issues resolved. On another note, there seems to be some interest by individuals other than the original developers to provide some sort of future support for this plugin (see Would like to take over this plugin, or help – Support forum for BuddyPress Follow).

    #334949
    GaianHuuto
    Participant

    Hi,

    Any suggestions how to proceed. I can install BuddyPress Follow to my site but when I’m activating it the whole site crashes. Here is the log:

    [18-Aug-2024 17:42:18 UTC] PHP Fatal error: Uncaught Error: Call to undefined function create_function() in /var/www/domains/dokkarit.fi/www/wordpress/wp-content/plugins/buddypress-followers/_inc/bp-follow-widgets.php:113
    Stack trace:
    #0 /var/www/domains/dokkarit.fi/www/wordpress/wp-content/plugins/buddypress-followers/bp-follow-core.php(71): require()
    #1 /var/www/domains/dokkarit.fi/www/wordpress/wp-content/plugins/buddypress-followers/bp-follow-core.php(46): BP_Follow_Component->includes()
    #2 /var/www/domains/dokkarit.fi/www/wordpress/wp-content/plugins/buddypress-followers/bp-follow-core.php(347): BP_Follow_Component->__construct()
    #3 /var/www/domains/dokkarit.fi/www/wordpress/wp-includes/class-wp-hook.php(324): bp_follow_setup_component()
    #4 /var/www/domains/dokkarit.fi/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #5 /var/www/domains/dokkarit.fi/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 /var/www/domains/dokkarit.fi/www/wordpress/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(357): do_action()
    #7 /var/www/domains/dokkarit.fi/www/wordpress/wp-includes/class-wp-hook.php(324): bp_loaded()
    #8 /var/www/domains/dokkarit.fi/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #9 /var/www/domains/dokkarit.fi/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
    #10 /var/www/domains/dokkarit.fi/www/wordpress/wp-settings.php(555): do_action()
    #11 /var/www/domains/dokkarit.fi/www/wordpress/wp-config.php(112): require_once(‘…’)
    #12 /var/www/domains/dokkarit.fi/www/wordpress/wp-load.php(50): require_once(‘…’)
    #13 /var/www/domains/dokkarit.fi/www/wordpress/wp-blog-header.php(13): require_once(‘…’)
    #14 /var/www/domains/dokkarit.fi/www/wordpress/index.php(17): require(‘…’)
    #15 {main}
    thrown in /var/www/domains/dokkarit.fi/www/wordpress/wp-content/plugins/buddypress-followers/_inc/bp-follow-widgets.php on line 113″

    john201502
    Participant

    Hi, thanks for your reply.
    I use Fastest Cache plugin, and I have previously excluded cache for the following specific paths.

    Contains: /members/
    /(.*)/members/(.*)

    I also used the following code in nginx’s conf:

    # /members/ specific rule
    if ($request_uri ~* “^/members/”) {
    add_header Cache-Control “no-cache, no-store, must-revalidate”;
    add_header Pragma “no-cache”;
    add_header Expires “0”;
    }

    But it didn’t help.

    Youzify didn’t mention the anti-proxy Buddypress plugin. They thought that I might not handle Ajax requests properly when using nginx anti-proxy, but they were not sure. They just confirmed that it was a problem with Buddypress, not Youzify. After I disabled Youzify, the problem still exists.

    ashtonagar
    Participant

    The information you provided suggests a caching issue with your CDN setup for the member page activities. Here are some technical suggestions to investigate and potentially fix the problem:

    1. Caching Configuration on CDN:

    Check your CDN provider’s (CloudFront in this case) caching settings. You likely need to configure it to not cache dynamic content like member activities. Look for options related to “Cache Control” or “Object Caching”. You might need to set a short cache expiry time or disable caching for specific paths (e.g., /members/*).
    2. Caching Headers:

    Ensure your server sends appropriate caching headers with the member activity data. The server should send headers like Cache-Control: no-cache, no-store, must-revalidate to prevent browsers and the CDN from caching this data.
    3. Browser Caching:

    Although less likely, there’s a chance the browser is caching the initial response. Try clearing the browser cache and cookies after the first load to see if the issue persists.
    4. Anti-Proxy Buddypress Plugin:

    While Youzify mentioned the anti-proxy Buddypress plugin, it’s difficult to say definitively if it’s causing the issue without more information. It’s possible the plugin is interfering with the caching mechanism. You can try temporarily disabling the plugin to see if the problem resolves. Be cautious as disabling plugins can have unintended consequences.
    5. Debugging Tools:

    Use browser developer tools (Network tab) to inspect the network requests when loading activities. Look for any caching headers being sent and received. Additionally, check the status code of the requests – a 304 (Not Modified) might indicate the CDN is serving cached data.

    stephunique
    Participant

    Hello all,

    I have hidden myself as an admin, on my test site running buddypress, for obvious reasons. However, I discovered that when composing a message using Buddypress messages, when the user types in a partial name of the recipient, even a single letter, everyone that matches that name will show up, even if they are hidden from the directory. For example, typing “@a” will show “@admin” (me) as well as “@adam” or “@amanda” and this is no good.

    Is there a way to remove certain users (ideally by user roles) from showing up in the “to” field?

    I have WordPress 6.6.1 and Buddypress 14.0.0.

    Thank you

    stephunique
    Participant

    I saw this post and it was ultimately not resolved but I can’t reply to that, so am starting a new post. Skip to the bottom to see my specs.

    In that post, it is said that the issue may be due to usernames that have spaces in them.

    I set up a test site with Buddypress and some test users. I have 4 test users whose names have spaces in them, like “First Last” as opposed to “FirstLast”. 3 of them cannot access any Buddypress links (such as mydomain.com/members) but 1 can. I can’t figure out how to fix this. I don’t have any redirect rules activated.

    I have WordPress 6.6.1 and Buddypress 14.0.0.

    Any help is appreciated.

    #334937

    In reply to: Slow Queries

    Renato Alves
    Moderator

    There is currently a ticket in progress: https://buddypress.trac.wordpress.org/ticket/8413

    #334932
    cj74
    Participant

    Thank you all.

    Update : The hosting provider fixed everything after i reached out to them. Too bad i don’t know what they did but after starting this thread i did some more testing and found out, to make long story short, it was as if buddypress had shut down the emails. No emails were going out. No nitications to me either.

    #334931
    pellepedersen
    Participant

    WP:6.6.1
    BP:14
    BP Registration Options Version 4.4.5
    BuddyPress Members only 3.5.3

    For many years, users on my site have been able to request membership, after which the administrator needed to approve them. Upon requesting membership, the applicant saw a message on the screen and received an email instructing them to await the administrator’s approval. Similarly, the administrator received an email, and it was clearly marked in BP Registration in the backend that there was a new application to be approved.

    Suddenly, only the applicant receives an email. No email is sent to the administrator, and there is no marking in BP Registration. Are there others experiencing similar challenges?

    Does anyone know what changes might have been made? Or is the solution to my problems to downgrade?

    #334929
    thinlizzie
    Participant

    @pellepedersen

    Looks like your issues probably stem from BP changing the way new accounts are registered, which I think was introduced in BP 14 (but not sure, look into that).

    So best to go back to an earlier version.

    I use BP 10.6.4 with BP Registration Options to provide admin with moderation options for newly registered accounts (ie. they need to be “approved”)

    So if that’s what you were doing earlier, then I’d recommend that setup.

    – You can manually delete and install an older version of BP, but I would recommend you use the WP Rollback plugin, much safer.
    – so, install WP Rollback plugin
    – do not delete anything
    – rollback Buddypress to v. 10.6.4
    – all should be ok

    IMPORTANT : you should definitely do a full site backup before you do any rollback. Just in case. I’ve done it multiple times, no issues.

    john201502
    Participant

    I used this snippet but it doesn’t work.
    https://d6476bsmtk1fy.cloudfront.net/members/dontwait99/

    function disable_cache_for_buddypress() {
    if ( function_exists(‘bp_is_current_component’) &&
    (bp_is_current_component(‘activity’) || bp_is_current_component(‘members’)) ) {
    nocache_headers();
    }
    }
    add_action( ‘wp’, ‘disable_cache_for_buddypress’ );

    function add_nocache_to_ajax_requests() {
    ?>
    <script type=”text/javascript”>
    jQuery(document).ready(function($) {
    $.ajaxSetup({
    beforeSend: function(jqXHR, settings) {
    if (settings.url.indexOf(‘?’) > -1) {
    settings.url += ‘&nocache=’ + new Date().getTime();
    } else {
    settings.url += ‘?nocache=’ + new Date().getTime();
    }
    }
    });
    });
    </script>
    <?php
    }
    add_action( ‘wp_footer’, ‘add_nocache_to_ajax_requests’ );

    john201502
    Participant

    –You can try adjusting the cache settings for Ajax requests in CloudFront or configuring Buddypress to prevent caching of dynamic content.
    Thank you for your reply.could you please tell me how to configuring Buddypress to prevent caching of dynamic content?
    Thank you very much.

    #334918
    pellepedersen
    Participant
    #334914
    richardrcook2
    Participant

    Hello. I needed to fix a problem on my website romancingrarehearts.com. While doing so, I deactivated and reactivated Buddypress. Then I found that most of my pages were gone. Is there a trash bin that I can get them back from? Or are they unretrievable? I’m using theme Twenty Fifteen, buddypress 14.0.0, and WordPress 6.6.1.

Viewing 25 results - 401 through 425 (of 73,983 total)
Skip to toolbar