Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 151 through 175 (of 69,016 total)
  • Author
    Search Results
  • ozmagic
    Participant

    How to restrict media uploads for specific user roles, except profile and cover images?

    Hi there,

    I’m building a BuddyPress-based site with two types of paid users: “Members” and “Users”. While both can access their profiles, messages, and groups, **only “Members” should be allowed to upload media content**, such as photos and videos.

    However, **all users (regardless of role)** must still be able to upload:
    – Profile pictures
    – Cover images

    What I need:
    – Prevent specific roles (like “Users”) from accessing the **”Media” tab** in their profiles
    – Disable the **rtMedia upload button** inside messages and activity posts for those users
    – Still allow the **upload of profile and cover images** (as BuddyPress requires)

    I’ve tried some code-based role filters and CSS to hide buttons, but they either:
    1. Only hide the frontend buttons (not secure), or
    2. Block profile picture uploads entirely (which is not acceptable)

    Is there a proper way to:
    – Fully disable rtMedia uploads based on user role
    – While keeping BuddyPress core image uploads active?

    Any suggestions, filters, or add-on recommendations would be much appreciated.

    Thanks in advance!

    #337532
    emaralive
    Moderator

    @general_b,

    BuddyPress comes with 2 template packs (selectable via the options tab within BuddyPress Settings):

    • BP Nouveau – has activity search for individual Group activity stream and for Sitewide activity stream.
    • BP Legacy – appears to not have such built-in capability

    The following screenshot is what it looks like for the BP Nouveau template pack:

    screenshot of axtivity search box for groups

    #337511
    emaralive
    Moderator

    When using the Classic Widget plugin, deleting a widget from a sidebar or footer area will remove the widget from that area. Widgets that can be added are listed under the “Available Widgets” section (left-hand side).

    For BuddyPress widgets to appear in the “Available Widgets” section, when using the Classic Widget plugin, you will have to install and/or activate the BP Classic plugin.

    #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

    After extensive troubleshooting by my support and the support from the technical team of the WordPress theme I use, we both came to the conclusion that the issue seems to happen upon activating the Elementor Pro plugin. We have both been able to replicate the issue on a default WordPress theme such as the Twenty Twenty One theme, so is it possible that it could be an incompatibility between BuddyPress and Elementor Pro or vice versa?

    We managed to replicate the issue in a clean environment, no custom code, no additional plugins, just Elementor, Elementor Pro and BuddyPress.

    emaralive
    Moderator

    The URL provided in the email notification is just to a page that requires access by an appropriate logged-in user. The issue appears to be related to the process that is constructing the redirect URL. The example you provided appears to be mangled for an unknown reason:

    https://infosecportal.ru/wp-login.php/?redirect_to=https%3A%2F%2Finfosecportal.ru%2Fpolzovateli%2Fpauls%2Fbp-messages%2F#/conversation/11

    The slash that is after wp-login.php seems to be misplaced, additionally, there should be a slash after 11 and then I would expect &bp-auth=1&action=bpnoaccess after that.

    The redirect is constructed in the function bp_core_no_access() which can be viewed at the following URL for BP 14.3.4:

    https://github.com/buddypress/buddypress/blob/14.3.4/src/bp-core/bp-core-catchuri.php#L328-L405

    Typically, $mode is equal to 2 which will then execute the code represented by lines 371 through 381: i.e.:

    		case 2:
    			if ( ! empty( $redirect ) ) {
    				bp_core_redirect(
    					add_query_arg(
    						array(
    							'bp-auth' => 1,
    							'action'  => 'bpnoaccess',
    						),
    						wp_login_url( $redirect )
    					)
    				);

    $redirect should be the URL that is represented in the email notification. The function wp_login_url(), which is a WordPress function, constructs/builds the redirect URL. The function wp_login_url() without arguments should, in your case, return:

    
    https://infosecportal.ru/wp-login.php
    

    The fact that there is a slash after the .php indicates that you should look there for why the slash is present, see the following regarding information on wp_login_url():

    wp_login_url()

    emaralive
    Moderator

    Hi,

    BuddyPress doesn’t have chat. Out of curiosity, what plugin are you using for chat?

    #337483
    emaralive
    Moderator

    Hi,

    Unofficially, AFAIK, BuddyPress v14.3.4 is compatible with the 6.8 branch of WordPress.

    Officially, we (the BP team) are behind with the scheduling of the next release. As to when this will occur is, currently, up in the air. Lastly, thanks for the reminder, I’ll have a chat with one of the BP committers to see if we can get things moving forward.

    #337481
    lillivalentino2025
    Participant

    I would like to instal Buddy Press, however it is stated that it is not tested with my current WP version. Details follow. What would you advise, please?
    Current WP version: 6.8.1
    Theme:Mero Blog by Kantipur Themes
    Thanks a lot for any help I can get

    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.

    #337469
    VibeThemes
    Participant

    I am pretty sure none of the information is deleted during move from buddypress -> buddypress.
    But this requires an inspection into the database.

    StudentFilmmakers
    Participant

    I was on buddyboss for a couple of years on a fairly popular site. I had issues several times and decided I wanted to move back to buddypress. We lost a lot of things. Photos mostly but also the activity feed is not what it was. Nothing shows when it loads in default setting of “everything” I can selected new members and that shows a member registered a year and a half ago and yet we have had new members everyday. Anyone have any thoughts on this? Your help is greatly appreciated.

    smelendez
    Participant

    I am currently using:

    – WordPress v6.8.1
    – Theme: Sweetdate by SeventhQueen v3.9.2
    – BuddyPress v14.3.4
    – Elementor v3.29.2
    – Elementor Pro v3.29.2

    I have noticed a strange behavior occurring on BuddyPress group and profile pages. Specifically, the issue is:

    When visiting a BuddyPress group, sometimes:

    – If the user is not a member, they are automatically added to the group without clicking the join button.

    – If the user is already a member, they are automatically removed from the group without clicking the leave button.

    When visiting a user profile, sometimes:

    – If the visitor is not a friend, a friend request is automatically sent.

    – If they are already friends, the friendship is automatically cancelled.

    It seems like if the “Join Group”, “Leave Group”, “Add Friend” and “Cancel Friendship” buttons are being triggered automatically upon loading the corresponding pages. This does not happen every time, so it has been difficult for me to replicate it to show it to you, but it occurs frequently enough to negatively affect the user experience.

    In an effort to identify the cause, I have done the following tests:
    – Deactivated all custom scripts.
    – Deactivated all plugins except those required for WordPress and the theme to function correctly.
    – Cleared and purged all caches.

    While running these tests, the issue did not occur. However, as I began reactivating plugins one by one (still with my custom scripts deactivated), I found that the issue reappears when Elementor Pro is activated. This leads me to believe the problem may come from a conflict between Elementor Pro and BuddyPress, the theme, or WordPress itself.

    I am sharing a video where I was able to replicate the issue: https://drive.google.com/file/d/1uuLIc-hGQHHq5BGY3b5M3pklMMEQqKyx/view?usp=sharing

    Do you have any idea what could be causing this behaviour, and if it is an incompatibility with BuddyPress?

    Thank you all in advance.

    Ho
    Participant

    Google is telling me there should be a Search Bar within the Buddypress Group, but I cannot find it anywhere. Can someone PLEASE send me an image or instruct me how to find or implement search function within a group?

    I am not talking about searching for a group, but once inside a group, how do I search for keywords so that I don’t have to scroll through 1000s of posts?

    #337453
    David Cavins
    Keymaster

    I definitely recommend member types for this use case: https://codex.buddypress.org/developer/member-types/

    There are plugins to help you register a new type, and built-in support for types is much richer than if you go some custom field route. I’d say try it out and see.

    urbanscom
    Participant

    Hi and first of all thanks for your plugin and the support
    I m using Tutor LMS pro on a fresh new wordpress installation.
    I decided to install the Buddypress addon but i hav a problem regarding the template

    WordPress version 6.8.1
    Thème actif : Sofia (version 1.0)
    Extension actuelle : BuddyPress (version 14.3.4)
    PHP version 8.1.32

    Une erreur de type E_ERROR a été causée dans la ligne 725 du fichier /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php. Message d’erreur : Uncaught TypeError: urldecode(): Argument #1 ($string) must be of type string, array given in /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php:725
    Stack trace:
    #0 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php(725): urldecode(Array)
    #1 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/class-wp-hook.php(324): bp_legacy_theme_ajax_querystring('', 'activity')
    #2 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/plugin.php(205): WP_Hook->apply_filters('', Array)
    #3 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-core/bp-core-template.php(1157): apply_filters('bp_ajax_queryst...', '', 'activity')
    #4 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-activity/bp-activity-filters.php(560): bp_ajax_querystring('activity')
    #5 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/class-wp-hook.php(326): bp_activity_heartbeat_last_recorded(Array, Array)
    #6 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #7 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-admin/includes/ajax-actions.php(3503): apply_filters('heartbeat_recei...', Array, Array, 'front')
    #8 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/class-wp-hook.php(324): wp_ajax_heartbeat('')
    #9 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #10 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #11 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-admin/admin-ajax.php(192): do_action('wp_ajax_heartbe...')
    #12 {main}
      thrown
    flamuren
    Participant

    @emaralive thanks and I am aware.

    I thought perhaps someone kind would look at it and see what in the redirect goes wrong and perhaps its something easy for a coder.

    All the other text is for context to make it easier to understand what I am trying to do.

    I mean I can listen to the AI-models and just split the code and put a filter in the function file. But something in me says there must be some way to redirect to your own messages after login with prefilled “send to” value. It feels like something that buddypress would be able to handle nativly?

    flamuren
    Participant

    Hi,

    I am a total novice in coding. Please bare with me now. I have used copilot, gemini and chatgpt to help me build a custom page from zero.

    The page shows registrered employers on my website. (Wpjm+buddypress)

    If a user is not logged in the message button on the employer profile card on the custom page will read “please login to message this employer”.

    If pressed you go to the login with a redirect to your own compose message page with prefilled to field with the username of the employer.

    The issue here is I cant get it to work. Tried 1000s of different variants but the AI models wont give me a solution. They tell me it cant be made and that I have to split the redirect code with some code on the page and some code in the function file.

    HOWEVER! This is where it gets weird. The first round of code help I got it managed to solve this without function file. But I cant find the solution again since I am stupid/novice enough to not save work as I make new changes…

    I wonder if any kind soul would see if they can help me solve this. The page for reference is here: https://arbetssokande.nu/registrerade-arbetsgivare/

    One of the code I have used that wont work:

    <?php if ( bp_is_active( 'messages' ) && isset( $user ) ): ?>
        <?php
            $recipient_username = $user->user_nicename;
            $query_args = array(
                'r' => $recipient_username,
            );
            $query_string = http_build_query( $query_args );
    
            if ( is_user_logged_in() ):
                $compose_url = bp_loggedin_user_domain() . bp_get_messages_slug() . '/nytt-meddelande/?' . $query_string;
            ?>
                <a href="<?php echo esc_url( $compose_url ); ?>" class="bp-message-button">Skicka meddelande</a>
            <?php else:
                $redirect_url = home_url( '/' . bp_get_messages_slug() . '/nytt-meddelande/?' . $query_string );
                $login_url = wp_login_url( $redirect_url );
            ?>
                <a href="<?php echo esc_url( $login_url ); ?>" class="bp-message-button">Logga in för att skicka meddelande</a>
            <?php endif; ?>
    <?php endif; ?>

    The message button works if you are logged in. As also does the “see job ads” of the chosen employer (both logged in or logged out and redirected).

    Am I stupid/remember wrong that the redirect for message worked one time some days ago? I feel so stupid its sad.

    Please help if you can.
    Best regards,

    flamuren

    Arni
    Participant

    The problem with sending private messages to multiple recipients may be due to bugs in an older version of BuddyPress. Make sure you have the latest version installed. Also try disabling other plugins to check for conflicts.
    Hope this helps!

    flamuren
    Participant

    I wrote this code in the child function file but it wont work. Any suggestion what might be wrong?

    function my_custom_bp_employer_features_setup() {
        add_action( 'bp_members_directory_tabs', 'my_custom_members_directory_employer_tab', 10 );
        add_filter( 'bp_pre_user_query_args', 'my_custom_members_directory_filter_by_role' );
        add_action( 'wp_head', 'my_custom_members_directory_employer_tab_styles' );
    }
    add_action( 'bp_loaded', 'my_custom_bp_employer_features_setup' );
    
    function my_custom_members_directory_employer_tab() {
        error_log( 'my_custom_members_directory_employer_tab: Attempting to add "Arbetsgivare" tab.' );
        if ( ! function_exists( 'buddypress' ) || ! bp_is_active( 'members' ) ) {
            error_log( 'my_custom_members_directory_employer_tab: BuddyPress or Members component not active.' );
            return;
        }
        bp_members_add_tab( array(
            'id'                => 'employer',
            'text'              => __( 'Arbetsgivare' ),
            'slug'              => 'employer',
            'link'              => bp_get_members_directory_permalink() . 'employer/',
            'position'          => 35,
            'css_id'            => 'members-employer-tab',
            'screen_function'   => 'my_custom_members_directory_employer_screen',
            'show_in_filters'   => true,
            'filter_id'         => 'employer',
        ) );
        error_log( 'my_custom_members_directory_employer_tab: Successfully called bp_members_add_tab().' );
    }
    
    function my_custom_members_directory_employer_screen() {
        error_log( 'my_custom_members_directory_employer_screen: Screen function called.' );
        bp_core_load_template( 'members/index' );
    }
    
    function my_custom_members_directory_filter_by_role( $query_args ) {
        error_log( 'my_custom_members_directory_filter_by_role: Filter applied.' );
        if ( bp_current_action() === 'employer' ) {
            error_log( 'my_custom_members_directory_filter_by_role: Filtering by "employer" role.' );
            $query_args['role'] = 'employer';
        }
        return $query_args;
    }
    flamuren
    Participant

    go to wp admin/dashboard – settings – buddypress – settings – and here you should have settings to adjust how registrations are handled.

    I cant confirm since I have official registration set to active. But if I remember you can set your settings to either manual or automatic here.

    Please try and confirm 🙂

    flamuren
    Participant

    Hi,

    I love buddypress and wpjm combo. Its free and helps people get jobs, which is my private project.

    However I am not so tech savy and not any real coding.

    My question is if its possible, within reason, to add two choices on the member page, to filter out two user classes/types (wpjm candidates and employers).

    Today I have active members and “my friends” as tabs and also a search member field under that. I would like to add candidates and employers, to filter out those users. Mainly employers – since it woud be nice for candidates to reach out if it seems good match.

    I guess find the teamplate for members, add it to my child theme and ad buttons, and then connect the buttons with a filter option in the child theme function file?

    Best regards,

    Flamur

    #337268
    emaralive
    Moderator

    Hi,

    Your best option is to flag it in the #buddypress channel on Slack or to flag it in this forum (Request & Feedback), given that posting in any of the forums doesn’t automatically flag a post as spam or as requiring moderation.

    That said, your post was automatically flagged for moderation due having 3 links (3 or more links will automatically place your post into moderation). As to how long it will take will depend on whether a moderator notices the post or is made aware of such, as you have done.

    Last but not least, I edited your initial post such that the links don’t register as links, basically encapsulated the links within the code tag/element. Additionally, I released your Topic from moderation.

    webstudiolvmm
    Participant

    I am using version: 6.8.1 and BuddyPress Version 14.3.4
    I develop an dating website and created a register form, but if I add field to upload image is not uploaded and the page get issue like that
    https://prnt.sc/bALFPL871QJU

    Support from theme redirect to you guys

    Thanks

    #337221
    devansh17
    Participant

    I am using LeranDash to sell the courses and also want to create a community using buddypress. So while using buddy press plugin along with the LearnDash plugin it gives registration error if some new client want to register on the website.
    I am using Divi theme as well.

    Please provide me the solution how I can use both the plugins.

Viewing 25 results - 151 through 175 (of 69,016 total)
Skip to toolbar