Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 1 through 25 (of 7,560 total)
  • Author
    Search Results
  • tim4578
    Participant

    Hello!
    I am using BuddyPress + BUddyBuilder + bbpress + Woocommerce for subscriptions.
    I now have the problem that for testusers there is no profile being displayed. When navigating with my admin profile, I can open the “my account” page without any problems, the full BuddyPress Profile with Woocommerce integrations are being displayed.
    Do you have any idea how I may resolve this issue, so that users can access their profiles?

    Thanks and best regards

    #337935
    emaralive
    Moderator

    Apparently, this is the current behavior of the bp_rewrites_get_url() function, i.e., the missing trailing slash, when the permalink structure is missing a trailing slash. Hence, a permalink of /%postname%/.html will result in a URL with a missing trailing slash, e.g.:

    
    site.url/members/<user_name>
    

    This causes a 404 error when bbPress tries to concatenate the URLs for the following:

    • Replies Created
    • Engagements
    • Favorites
    • Subscriptions

    What’s peculiar is that “Topics Started” isn’t affected because, for bbPress, all member area URLs (navigation links) are based on either the bp_displayed_user_domain() or the bp_loggedin_user_domain() functions and both of these functions have the bp_rewrites_get_url() function in the chain for return.

    Regardless, this appears to be problematic due to some 3rd party themes and plugins that make use of various other BP functions that have bp_rewrites_get_url() function in the chain for return.

    Ricsca2
    Participant

    Hello,
    I’ve noticed a possible bug in the way Yoast SEO generates sitemaps for bbPress replies.

    – In the topic-sitemap.xml files, the topic URLs are correctly generated and point to the actual topics (e.g. https://www.example.com/topic-name.html).

    – But in the reply-sitemap.xml files, every reply entry points to the same generic URL like https://www.example.com/forums/reply, which doesn’t resolve to the actual reply.

    As a result:

    – These sitemap entries are invalid because they don’t lead to a specific page.

    I built a custom plugin (with ChatGPT’s help) that adds proper URLs for replies, but I’m wondering: does it even make sense to submit reply URLs to Google?
    Wouldn’t it be better if Yoast excluded replies from the sitemap entirely, and only kept topics?

    I also noticed that in the Yoast settings (SEO → Search Appearance → Content Types) it is possible to disable “Replies”. That solves the problem, but shouldn’t this be the default setting?
    Or alternatively, if replies are enabled, shouldn’t Yoast output the correct URLs instead of /forums/reply?

    Can you clarify what the recommended behavior is?

    Thank you!

    #337508
    flamuren
    Participant

    Hi,

    I use the Reign theme for buddypress and bbpress.

    I have classic widget plugin installed.

    I have some of the buddypress widgets, but not all of them. Also there seems to be an issue that widgets has dissapeared.

    Do widgets dissappear when I press “delete” in the widget area on the right where I edit specific widget areas of the website? I thought i only removed them from that widget area. Very confusing.

    If this is the case, how would I get them back again?

    These widgets is the ones i refer too: https://codex.buddypress.org/themes/buddypress-widgets/

    Best regards,

    Flamur

    smelendez
    Participant

    Hi, thank you for your reply. Yes, it is a strange issue and I understand that it must be some incompatibility or something similar with the new versions. Because as I show in the video I attached in my previous reply, I have deactivated all my custom scripts and I was activating all the plugins one by one (after having previously deactivated all of them) until I got to Elementor Pro and detected the issue again. In my plugin list (you can see it in the video) I do not have the BP classic plugin. The BP related plugins I have are:

    – BuddyPress v14.3.4
    – bbPress v2.6.13
    – BP Profile Search v5.8.3
    – BuddyPress Xprofile Custom Field Types v1.2.7
    – BuddyPress Profile Completion v1.1.0
    – Block, Suspend, Report for BuddyPress v3.6.4
    – BuddyPress Follow v1.3-alpha
    – Buddy Notification Bell v1.0.4.

    During my tests, I deactivated all of these except for BuddyPress, BuddyPress Xprofile Custom Field Types, BP Profile Search and bbPress which are the plugins that came with the theme I use in WordPress.

    #336486
    rodafinos
    Participant

    I have been struggling with this for days now. Maybe the fact that I dont code plays a role.
    I used several iterations of snippets presented by AI, all failed.
    This is the latest:
    function sync_xprofile_to_user_meta($user_id) {
    $fields = bp_xprofile_get_fields_by_group();
    foreach ($fields as $field) {
    $field_value = xprofile_get_field_data($field->id, $user_id);
    update_user_meta($user_id, ‘xprofile_’ . $field->name, $field_value);
    }
    }
    add_action(‘xprofile_updated_profile’, ‘sync_xprofile_to_user_meta’);

    // This function is not automatically executed
    function sync_all_xprofile_to_user_meta() {
    $users = get_users();
    foreach ($users as $user) {
    sync_xprofile_to_user_meta($user->ID);
    }
    }

    I think this one caused critical error.

    WordPress 6.7.2
    Website edited: removed link
    bbPress Version 2.6.11
    Code Snippets Version 3.6.7

    #336440

    Topic: bbpress

    in group forum Installing BuddyPress
    jruiz
    Participant

    I want migrate from phbb, should I install bbpress (and migrate) before install buddypress?

    #336437
    sheepdontswim
    Participant

    One more detail: I can still pull up the correct forums using the bbpress shortcode with the correct forum id. Which means I can put it up on a custom page: https://www.thecaregiverspace.org/forums/caring-for-a-client/

    However, the navigation within bbpress (breadcrumbs, within the forums themselves) is all screwy.

    sheepdontswim
    Participant

    I’m reviving the old forums on my website, which previously used buddypress and bbpress happily. I updated things a bit, adding groups with their own forums.

    Unfortunately, now when buddypress is activated the forums are mapping incorrectly. For example, with buddypress disabled, the forum correctly links to:https://www.thecaregiverspace.org/connect/forum/general-discussion/paid-perspective/

    When buddypress is enabled, the forum links to a group forum instead: https://www.thecaregiverspace.org/connect/forum/general-discussion/baby-boom/

    Going to the correct forum url directly results in being redirected to the incorrect group forum.

    Not all of the forums are mapping to a random group, only a few are.

    Any suggestions for how to correct this? Thanks!

    #336355
    emaralive
    Moderator

    Thanks,

    BP_GROUPS_SLUG (deprecated), as indicated is deprecated and shouldn’t be defined/used. However, BP_GROUPS_DEFAULT_EXTENSION is defined as “forum” which is what is causing the initial 404 redirect (page not found). Apparently, there was a “forum” nav item for any given group and now there is not therefore, that page can’t be found.

    Somewhere, perhaps wp-config.php, there is a line that contains define( 'BP_GROUPS_DEFAULT_EXTENSION', 'forum' );, find it and either remove it or comment it out and then you won’t need the redirect plugin. Perhaps, the bbPress plugin was previously activated and all groups had “Group Forum” enabled and thus the constant being defined as it was.

    seeanimalswild
    Participant

    I am using bbpress for discussion in my wordpress website, and using armember for the underlying members stuff (though I am going to be using the bbpress profile).

    I have a number of armember groups running on the site (supporters, members writers etc). What I want though is to be able to have people be friends within their own group – but to follow those in other armember groups.

    Anyone know how to do this? Obviously, i want supporters to be free to make friends, but i don’t want them to be able to ‘friend’ a lister, and then arrange their trip, and avoid paying the marketplace fee.

    I hope someone else can help with how to do this?

    Thanks in advance for any support – I’m happy to be pointed to the answer to someone else’s question, but i couldn’t find anyone looking for this info.

    #336104
    emaralive
    Moderator

    Hi @mike80222

    This is an issue with bbPress and there is an open ticket Deprecated Warning ##3589 in bbPress Trac.

    You will have to ask the folks over in bbPress as to the status of this ticket.

    Mike Witt
    Participant

    I’ve been seeing this sort of thing for a while now with PHP 8.2

    [03-Jan-2025 21:14:02 UTC] PHP Deprecated:  Creation of dynamic property BBP_Forums_Component::$members is deprecated in /home/wp/sites/rc-clone/wp-content/plugins/bbpress/includes/extend/buddypress/loader.php on line 149
    [03-Jan-2025 21:14:02 UTC] PHP Deprecated:  Creation of dynamic property BBP_Forums_Component::$activity is deprecated in /home/wp/sites/rc-clone/wp-content/plugins/bbpress/includes/extend/buddypress/loader.php on line 153

    AFAICT there’s no report for this anywhere, here in the forums or in Trac, but it might just be my limited knowledge of how to search?

    Can anyone shed any light on this?

    pro104
    Participant

    Using WordPress 6.7
    Installed as a root directory
    Wordpress is working fine
    Using BuddyPress 14.2.1
    No other BuddyPress plugins installed
    Using Themify theme Peak, no mods
    No custom functions
    Using bbPress 2.6.11
    Hosted by ‘Omnipresents’ is in association with LiquidNet Ltd.
    Server running Rocky Linux 8
    I have not overloaded any BuddyPress template files
    Template Pack BuddyPress Nouveau

    I am trying to set up a forum. Everything is working so far except for recent post, comments, archives, categories are not appearing. Ive tried looking through the forum and looking around in Buddypress with no luck. Any ideas?

    #335550
    kaihanga2
    Participant

    Hi

    I’m using BBPress with BuddyPress in a WordPress site with MicroOffice theme. We’ve notice recently that the BuddyPress Activity Feed is no longer updating when someone Favourites a Forum post inf BBPress. I’ve tried turning off all other plugins to no avail. I’ve also delted and reinstalled buddypress.

    Also I’ve notice the BuddyPress RSS feed is not working, and when I go into the activity feed domain.com/activity (for example) it will say 9 favourites but when you click o it you only see two listed. Its also not increasing from 9 when I click on forum items favourite button.

    Does anyone have any ideas please?

    #335348
    GyziieDK
    Participant

    Hi guys

    I love to highlight different forums and topics on the forum list and this can be done using HTML in the title itself. The issue I’m having is that the HTML is being shown where I don’t want it (I know this is within bbPress).

    This is how it looks in the forum (how I would like it to look):
    bb-Press-HTML-01

    This is how it looks in Activity Stream:
    bb-Press-HTML-02

    This is just an example – and I don’t want the HTML prefix/suffix to be shown in there – only the name/text like it is in the forum/topic itself.

    Is it possible to force BuddyPress to “accept” the HTML and showcase it like bbPress does?

    Anyone know if this is possible?

    #335312

    In reply to: disable rss

    I’m no longer using BuddyPRess or bbPress. I switched to BuddyBoss and gave up on trying to get BuddyPress to work the way I wanted.

    #335310

    In reply to: disable rss

    Mike Witt
    Participant

    @venutius,

    How about this for bbPress:

    function goto_home() {
        wp_redirect(get_option('siteurl'));
    }
    add_action('bbp_feed', 'goto_home', 1);


    @whyknott
    , are you using bbPress or only BuddyPress. I didn’t see anything in what you posted above that would disable bbPress feeds.

    Actually, for my purposes the redirect actually works better for all the disables that wp_die() which appears to result in a funny page that some browser still think is an XML page. Does anyone know of a downside in using wp_redirect() here?

    daihlo
    Participant

    Found an issue.

    I have several Groups with Forums made, then if I make a Group and select not to have a forum on that group, the ‘forum’ tab will still show and will link to whichever forum is my first one created.
    This happens with any group that does not have a forum.

    Even worse, the first forum I have created is part of a private group which should be for members of that group only.

    This forum shows on the forum tab in any group that does not have a forum and even allows others to post within it this way!

    I have looked up this issue in lots of dated posts and found no solution even though finding it being a long stranding issue for a number of people…

    Please help as I am aiming to launch my site this month but will have to remove BBpress if cannot fix this.

    Thanks

    #335243
    Youzify
    Participant

    Do you mean you want to restrict the file size of images uploaded? If yes, as I know both bbPress and BuddyPress do not have this feature. You can limit it directly on your server or use another plugin.

    #335239
    Marisa
    Participant

    I am new to BuddyPress. I will be using BuddyPress with the forum software bbPress.

    How can you moderate images uploaded to both BuddyPress and bbPress?

    #335237

    Topic: BBpress style

    in forum Miscellaneous
    Ricsca2
    Participant

    I know I’m OT but I’ll try anyway…
    Buddypress inherits the theme style and this is a basic thing for every plugin… bbpress does not inherit the style and this means that if you look at the forum statistics on buddypress, they are very small.
    I wonder how it is possible that in 2024 bbpress has not yet been updated so that it inherits the theme style.
    This is a big problem and a big limitation for those who want to use bbpress.

    George
    Participant

    I want to remove the “Forum” step from the BuddyPress group creation step but keep the group forums active. I have tried many solutions but I can’t seem to find a filter I could use.

    For example, this code:

    add_filter( 'groups_create_group_steps', function ( $steps ) {
        unset( $steps['group-settings'] );
        return $steps;
    } );

    removes the group settings from the group creation process.

    This code:

    function buddydev_remove_group_admin_settings() {
    
        if ( ! bp_is_group() ) {
            return;
        }
    
        bp_core_remove_subnav_item( groups_get_current_group()->slug . '_manage', 'group-settings', 'groups' );
    
        // reattach screen function to avoid 404.
        add_action( 'bp_screens', 'groups_screen_group_admin', 3 );
    }
    
    add_action( 'bp_template_redirect', 'buddydev_remove_group_admin_settings', 1 );

    removes the group settings from the Group “Manage” menu.

    Using this:

    function remove_unwanted_group_creation_steps() {
        global $bp;
        if ( isset( $bp->groups->group_creation_steps['forum'] ) ) {
            unset( $bp->groups->group_creation_steps['forum'] );
        }
    
    }
    add_action( 'bp_before_create_group_content_template', 'remove_unwanted_group_creation_steps', 9999 );

    removes the step but leaves the /create/step/forum/ step active, thus messing with the custom number of steps I have.

    I also posted in the bbPress forums but was told from a Moderator that this is probably a question for the buddypress support forum!

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

Viewing 25 results - 1 through 25 (of 7,560 total)
Skip to toolbar