Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 276 through 300 (of 73,981 total)
  • Author
    Search Results
  • #335570
    GyziieDK
    Participant

    Figured it out (I’m stupid lol).

    I can confirm that the snippet from Brajesh Singh still works. Just make sure to place it into your bp-custom.php (/wp-content/plugins/bp-custom.php). Turns out my role wasn’t called “Basic” (as shown/named within the backend). Since I use Paid Membership Pro it used pmpro_role_1 set by PMP.

    Remember to change the role within the code down below to the one you want to exclude. 🙂

    Credit: https://buddydev.com/hiding-users-on-buddypress-based-site/

    /**
     * Exclude Users from BuddyPress Members List by WordPress role.
     *
     * @param array $args args.
     *
     * @return array
     */
    function buddydev_exclude_users_by_role( $args ) {
    	// do not exclude in admin.
    	if ( is_admin() && ! defined( 'DOING_AJAX' ) ) {
    		return $args;
    	}
    
    	$excluded = isset( $args['exclude'] ) ? $args['exclude'] : array();
    
    	if ( ! is_array( $excluded ) ) {
    		$excluded = explode( ',', $excluded );
    	}
    
    	$role     = 'administrator';// change to the role to be excluded.
    	$user_ids = get_users( array( 'role' => $role, 'fields' => 'ID' ) );
    
    	$excluded = array_merge( $excluded, $user_ids );
    
    	$args['exclude'] = $excluded;
    
    	return $args;
    }
    
    add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_users_by_role' );
    #335565
    goodsuccess
    Participant

    I have activitated buddypress on my website. But when I try viewing the register page it reverts to my home page?

    #335557
    priyam1234
    Participant

    I used latest version of buddypress and wordpress also .
    IN current buddypress when user join group that time new activity will creat . but i cant stop it using hook .

    groups_record_activity(
    array(
    ‘type’ => ‘joined_group’,
    ‘item_id’ => $group_id,
    ‘user_id’ => $user_id,
    )
    );

    #335556
    GyziieDK
    Participant

    Thank you for this plugin @dcavins!

    Didn’t know someone took the time to update the old “BP Group Hierarchy” plugin by David Dean.

    Can confirm it works for me with the following setup:

    WordPress - Version 6.6.2
    BuddyPress - Version 14.2.1
    Template Pack - Legacy

    The only minor issue I’m having is that my theme doesn’t support the setting:
    Replace the flat groups directory with a hierarchical directory.

    This makes sense though and isn’t necessary.

    Thank you for updating this. 🙂

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

    #335549
    taadike
    Participant

    I’m using the latest wordpress default block theme. Where can I swap template for buddypress pages? Currently buddypress is using the default “pages” template for all buddypress related pages.
    How to apply another page template to buddypress? There is no way to “edit page”.

    #335548
    taadike
    Participant

    I have the same problem. I’m also using the latest wordpress default block theme. Where can I swap template for buddypress pages? Currently it is using the default “pages” template for all buddypress pages.
    How to apply another page template to buddypress?

    I am amazed how few people have asked this. It should be the number 1 question.

    #335545

    In reply to: Rest Api Help

    Renato Alves
    Moderator

    Not via the REST API.

    You can use the activity endpoint: https://developer.buddypress.org/bp-rest-api/reference/activity/#list-activities

    To get activities from a single group only.

    #335542
    toni9825
    Participant

    Good evening, is there any way to prevent you from being automatically logged out of one of my Buddypress pages after a short time? Regards, Toni

    #335541
    flamuren
    Participant

    OMG I am sooo happy! Chatgpt and some noob questions to it managed to tweak the code so now it works! 😍

    If anyone would need it, this now works:

    function assign_role_based_on_profile_field($user_id) {
        // Get the BuddyPress profile data for the registered user
        if (function_exists('xprofile_get_field_data')) {
            $role_value = xprofile_get_field_data('Roll', $user_id); // Replace 'Role' with the exact name of your profile field
    
            $user = new WP_User($user_id);
    
            // Assign the user role based on the profile field value
            if ($role_value == 'Arbetsgivare') {
                // Assign 'employer' role
                $user->set_role('employer'); // Replace 'employer' with the exact role slug
            } elseif ($role_value == 'Arbetssökande') {
                // Assign 'candidate' role
                $user->set_role('candidate'); // Replace 'candidate' with the exact role slug
            } else {
                // Default role if no specific selection is made
                $user->set_role('subscriber'); // Or any other default role
            }
        }
    }
    add_action('bp_core_activated_user', 'assign_role_based_on_profile_field', 10, 1);
    #335533
    GyziieDK
    Participant

    Makes sense, have you checked that your BuddyPress URLs are correct?

    Settings > BuddyPress > URLs

    Maybe there is a setting in there missing or something; maybe under User Groups or Gallery. :/

    I personally swicthed to MediaPress since I had other third plugins like Anonymous Posting, Privacy Settings and so on that were too important – and rtMedia wasn’t compatible with them.

    Also rtMedia seems to be a pain in the *** when it comes to being compatible with anything and it always seems to be causing issues.

    I’m sure it would be pretty fast to move images if you used FTP to do so.
    /uploads/mediapress/members/MEMBER-ID/GALLERY-ID/IMAGE-URL

    It’s not easy to help other troubleshoot issues unless you’re backend testing settings for yourself, so it’s hard to guess what the problem might be.

    I never had issues with the permalinks when using rtMedia though. 🙂

    #335473
    flamuren
    Participant

    Hi,

    I have a buddypress theme installed that allows to handle WPJM plugin for job and resume registrations. For this latter I need the users to register as candidate or employer to control who can view resumes or post jobs etc.

    However the theme dont have this per standard but their support where very kind to give me a suggested custom code to handle this. I cant get this to work and wonder if someone knows what might be missing?

    This is what they wrote me for this question:

    Create a Profile Field for “Role”: Set options like “Employer” and “Candidate” for users to select during registration.
    Use Code to Assign the Role: A code snippet can assign the correct role based on the user’s selection in this profile field.

    Please let us know if you’d like guidance on the custom code snippet to achieve this or if you’d prefer assistance from a developer.

    Here is a code snippet you can use to assign a user role based on the value selected in a custom BuddyPress profile field during registration. This example assumes the profile field is named “Role” and has values such as “Employer” or “Candidate.”

        function assign_role_based_on_profile_field($user_id) {
            // Get the BuddyPress profile data for the registered user
            if (function_exists('xprofile_get_field_data')) {
                $role_value = xprofile_get_field_data('Role', $user_id); // Replace 'Role' with the exact name of your profile field
    
                // Assign the user role based on the profile field value
                if ($role_value == 'Employer') {
                    // Assign 'employer' role
                    $user = new WP_User($user_id);
                    $user->set_role('employer'); // Replace 'employer' with the exact role slug
                } elseif ($role_value == 'Candidate') {
                    // Assign 'candidate' role
                    $user = new WP_User($user_id);
                    $user->set_role('candidate'); // Replace 'candidate' with the exact role slug
                } else {
                    // Default role if no specific selection is made
                    $user = new WP_User($user_id);
                    $user->set_role('subscriber'); // Or any other default role
                }
            }
        }
        add_action('bp_core_signup_user', 'assign_role_based_on_profile_field', 10, 1);

    Make sure the roles employer and candidate are defined in your site.

    I want to use the WPJM user roles as standard: employer and candidate. Not sure if the slug meant here is just ’employer’ and ‘candidate’ to be correct?

    Best regards,

    Flamuren

    #335435
    GyziieDK
    Participant

    Hello @varunkamani

    I already gave you a few options to choose from, so in the end it’s up to you.

    1. Ignore error and keep plugin
    Keep the plugin and accept the fact that it comes with some issues and risks.
    The risk itself is pretty low when it comes to the XSS since this is pretty common.
    Like mentioned before, old and unsupported plugins do come with some risk.

    2. Find a different plugin
    Find a different plugin that is updated that can provide you with the features you need/want.
    You can search on both WordPress.Org or other sites like Google, CodeCanyon etc.

    https://wordpress.org/plugins/

    3. Use a third party security plugin
    Download and install a third party security plugin that can help prevent the XSS attacks on your site. This could be either free or paid/premium depending on your budget and needs.

    4. Get a developer to help you update current plugin
    If you insist on keeping the BuddyPress Global Search and you want it updated to fix its current issues, you’d need to pay a developer to help you update the plugin itself. This might not be the best solution long term, and I would also assume BuddyBoss themselves would update this if they felt it was necessary. The fact that they talked about updating it for the past 3 years and now left it abandoned tells me that it’s not a priority for them.

    From a quick search on the forums, this topic has been up several times before for the past many years, so don’t expect an easy or “free” solution for this.

    Hope it helps! 🙂

    #335422
    Mathieu Viet
    Moderator

    I confirm the issue, it will be fixed very soon:
    https://buddypress.trac.wordpress.org/ticket/9248

    #335420
    flamuren
    Participant

    I found it here:

    Stop BuddyPress SPAM

    #335419
    flamuren
    Participant

    Hi,

    I am building a new buddypress website and want to set all spam preventions before going live.

    Does this honeypot code still work for buddypress register page?

    // BuddyPress Honeypot
    function add_honeypot() {
        echo '';
    }
    add_action('bp_after_signup_profile_fields','add_honeypot');
    function check_honeypot() {
        if (!empty($_POST['system55'])) {
            global $bp;
            wp_redirect(home_url());
            exit;
        }
    }
    add_filter('bp_core_validate_user_signup','check_honeypot');

    best regards,
    flamuren

    #335416
    Ketil Ervik
    Participant

    I completely reinstalled BuddyPress but have the same page and problem as before! https://drive.google.com/file/d/1t6ePWc0fe9nlxIu4Y8aN3IbaDCOscxXo/view?usp=sharing

    This must be a bug!

    MikeAlan
    Participant

    I am admin for a fairly comprehensive site, still under construction.
    I’m in the process of setting up the various sidebar widgets. They all work well except Sitewide notices, which has been set to be at the top of the right-hand sidebar, but it only displays a blank widget area, no title.
    The widget setup screen/right-hand sidebar/’sitewide Notices’ just says “Preview unavailable”
    Buddypress Settings/Private Messaging has been activated (ticked)
    There’s no “This is a notice to all users” box in the front end Messages/Compose screen.

    The site uses the latest versions of Buddypress and WordPress.
    The current theme is Theme4Press’s Evolve Plus

    I’ve tried deactivating all plugins except Buddypress.
    I have tried switching the theme to Twenty Seventeen, but all to no avail!

    Any help would be very much appreciated in getting the Sitewide Notices to work.

    #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

    #335381
    Mathieu Viet
    Moderator

    Activity favorites really need improvements, I agree. I’ve suggested many ways to do so but haven’t succeed to convince the team. Here’s my last attempt about it: https://github.com/buddypress/buddypress/pull/238

    I’m not sure what you call “Notification” is an item of the Notifications component, as you can always mark as read notifications going into the corresponding profile page.

    I guess what you call “Notification” is the amount of favorited activity that is added to nav items.

    We’re aware of the issue but haven’t found the best way to deal with it.

    #335378
    GyziieDK
    Participant

    BuddyPress Global Search is a separate plugin that enables you to use some better search-functions. This plugin has been abandoned for a while and could be a security risk on your site. A lot of people still use it – what version do you have of the plugin?

    You could just “ignore” the warning within your WordFence control panel, since you already know having this plugin is in itself a risk to your site.

    GyziieDK
    Participant

    Hello guys!

    I’ve noticed that when I’m on a (private) group’s own activity wall and I wait for a few seconds – it comes up with a button to “Load Newest” activites. When this button is pressed it loads EVERYTHING from the main activity wall and not just the items from that specific group.

    The meaning behind the “Load Newest” when within a group, should (I assume) be to load the newest posts/activites within that specific (again private) group. Anything else makes no sense.

    Also when page is refreshed all the activites that dosen’t belong in the group is removed.

    Is anyone else having the same issue or is this just a third party conflict on my end?

    If anyone else is having the same issue, then this should be fixed/looked into in an upcomming update for sure.

    If anyone has a solution to this, please let me know! 🙂

    Thanks!

    varunkamani
    Participant

    Recently, the WordFence plugin has been giving me a “critical” error message of:

    The Plugin “BuddyPress Global Search” has been removed from wordpress.org but is still installed on your site.
    Type: Vulnerability Scan

    Is “BuddyPress Global Search” part of the “core” BuddyPress code now? Can I safely remove it?Currently, the site is using global search functionality. If I remove it, the feature might break. How can I fix this issue without causing any disruptions?

    #335368
    emaralive
    Moderator

    This topic has been resolved by BuddyPress 14.2.1 Maintenance & Security release.

    #335351
    GyziieDK
    Participant

    @ph59 – I’ve been working on this too, but for now the only close solution to this is the following premium plugin. Would love to know if this helps!

    Facebook Like User Activity Stream for BuddyPress

Viewing 25 results - 276 through 300 (of 73,981 total)
Skip to toolbar