Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 3,326 through 3,350 (of 69,121 total)
  • Author
    Search Results
  • bojates
    Participant

    I am running a subscription site. When membership expires, the member is demoted to a ‘subscriber’ role. They should then be excluded from listings and searches. I had this working ok before the new BuddyPress but it seems a bit trickier with Nouveau. I have the following code so far in bp-custom.php.

    
    add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_users_by_role' );
    add_filter( 'bp_members_suggestions_query_args', 'buddydev_exclude_users_by_role' );
    
    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 );
        }
     
        $user_ids = get_users( array( 'role__in' => ['subscriber'], 'fields' => 'ID' ) );
        $excluded = array_merge( $excluded, $user_ids );
     
        $args['exclude'] = $excluded;
     
        return $args;
    }
    

    The first filter seems to fix the regular member listing.
    The second filter fixes the autocomplete when trying to find a user for messages.

    Do you know how I can filter the list for inviting members to groups? I’m using Nouveau and it seems to be ignoring these filters at that point.

    Thanks.

    #312556
    Varun Dubey
    Participant

    @reelscene not sure with Youzer, BuddyPress by default have nested comments and replies for activity
    https://prnt.sc/t73fas

    Varun Dubey
    Participant

    @dmcsupport to debug try to disable all active plugin except BuddyPress and also toggle to the default 2020 theme.
    It might be possible any of your active plugin or theme is using flush_rewrite_rules() and trying to set their own path.

    #312542

    In reply to: avatar notification

    Varun Dubey
    Participant

    @socially2020 You will have to code for it
    at xprofile_avatar_uploaded action, you can hook notification
    for ref, you can check https://codex.buddypress.org/developer/function-examples/bp_notifications_add_notification/

    #312540
    Varun Dubey
    Participant


    @rootcr8r
    You can override single member profile template inside child theme

    Template Hierarchy


    /buddypress/members/single/ folder contain all files
    https://github.com/buddypress/BuddyPress/tree/master/src/bp-templates/bp-legacy/buddypress/members/single

    bojates
    Participant

    I’m having a problem with the messaging in BuddyPress. When I search for a user in Compose, to send them a message, they quite often don’t appear in the dropdown list of users.

    I am pretty sure this is because the ajax search bp_get_suggestions is checking the extended user fields as well as the name and username fields. My members are referred by other members, so many of them have another user’s name in one of their extended user fields. This means a search for ‘@jane’ will bring back all the users who have been referred by Jane before it brings back Jane herself. And because it’s alphabetical, we don’t get to Jane herself.

    Is there a way to restrict the fields that get searched for this messaging functionality?

    Thanks,

    Jemima

    dmcsupport
    Participant

    Thank you for your reply. The Permalink solution doesn’t work. The issue is explained below. If I disable the BuddyPress plugin, no 404 error.

    Step 1. Visit any BuddyPress page.
    Step 2. Visit non BuddyPress page and 404 error comes up. If I refresh the same page the error goes away.
    Step 3. Again visit BuddyPress page and then non BuddyPress page and again 404 page.

    I hope someone has solution to this.

    #312524
    clickallco
    Participant

    You’re asking about two separate things.

    The Buddypress notifications doesn’t need modified templates to send new notifications – it needs custom coding for it to be expanded.

    Here’s an example in how to create a new type of buddypress notification:

    https://gist.github.com/modemlooper/9693b591d8c36288496d

    Here’s where its described in the buddypress codex:

    bp_notifications_add_notification

    There is no limitation to the amount of notifications your website or plugin has if thats how you want it, it just needs to be coded in.

    #312521
    clickallco
    Participant

    You could always customize your own templates and change it to your behest.

    You can get an idea about how to start it out here https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    From then on its just about coding it to your own set standards.

    #312509
    dmcsupport
    Participant

    I am getting same 404 page for the next page after buddypress page. How do I solve this issue? Please advise.

    Thank you.

    Andrea
    Participant

    How can I enable a non-admin user to moderate buddypress activities without let him using admin backend panel?

    #312496

    In reply to: 2 problems

    wahj73
    Participant

    Which version of WordPress are you running?

    Current Version: 3.2.7.2

    Did you install WordPress as a directory or subdomain install?

    directory

    Which version of BP are you running?

    last version

    Do you have any plugins other than BuddyPress installed and activated? If so, which ones?

    s2.member
    learnpress
    Wpbakary
    Loco

    Which theme do you use ?

    eduma

    __

    I tried delete the WordPress website and reinstall it again with using the same database but it doesn’t work.

    I had use jetpack plugin before.

    I can’t remember when this problem happen. Is it after graduation? Is it after install some plugins?

    nikkdj
    Participant

    Hi, i’m using updated version of Buddypress,
    when i Delete an account, the commments the account have created is not deleted, the account becomes Anonymous.
    How can i fix this to delete all comments and topics on the account that has been deleted?

    #312494

    In reply to: 2 problems

    iamthewebb
    Participant

    Hi,

    Check https://buddypress.org/support/topic/when-asking-for-support-2/ as we’ll need more information to be able to help you. It also lists basic troubleshooting steps

    #312486
    coolhunt
    Participant

    Hi Everyone,

    Im thinking of installing Jetpack to take advantage of the CDN (for images) built in.
    Is the Jetpack plugin recommended companion for Buddypress?

    #312483
    nqui
    Participant

    @alwaysalready Thank you so much!!!!!
    Your solution sorted everything. I so appreciate it!!!!!!!!!!!!!!!

    In case it is interesting to anyone, to try fix this before coming to this thread, I:
    1. installed “Check Email” to see if there was a problem sending emails from my site (there wasn’t)
    2. installed “WP Mail SMTP”, setting up SMTP with all its complications in case it was some sort of spam issue (it wasn’t)
    3. discovered using the above that the registration emails were being bounced with the error message “Diagnostic-Code: smtp; 550 Messages should have one or no To headers, not 2.” When I looked at the headers, sure enough, there were two “To: destination-email-address” lines in the header.
    4. Deactivated BuddyPress. Found that registration emails successfully went through.
    5. Finally came here, having found out that BuddyPress was definitely the culprit.

    All this has been quite stressful, it is the first website I’ve ever set up.

    #312481
    danimasedo93
    Participant

    Hi all! I’m new in php & css.

    After reading a lot and learning very little, I managed to program the notifications in my project in php and css. It works fine, shows the amounts (friends, messages and notifications) and redirects where it should.

    My problem is that I need to “hide” the bubble of “0” when the user has no notifications and only show when if they have 1 or more notifications

    Bubble Notification in menu

    Functions.php

    function my_counter_nav_menu($menu) {
    
    	if ( ! is_user_logged_in() ) {
    		return $menu;
    	}
    
    	$user_id = bp_loggedin_user_id();
    	$user_url = bp_loggedin_user_domain();
    
            $friends_url = $user_url . bp_get_friends_slug() . '/';
    	$msg_url = $user_url . bp_get_messages_slug() . '/';
    	$notify_url = $user_url . bp_get_notifications_slug() . '/';
    
    	ob_start();
    	?>
            <li><a><a href="<?php echo bp_loggedin_user_domain();?>friends"><span class="notifications_icons"><i class="fas fa-user-friends" style="font-size:17px;"></i></span><span class="my_bubble_notify"><?php echo friends_get_friend_count_for_user( $user_id );?></span></a></a></li>
    
    	<li><a><a href="<?php echo bp_loggedin_user_domain();?>messages"><span class="notifications_icons"><i class="fas fa-envelope" style="font-size:17px;"></i></span><span class="my_bubble_notify"><?php echo bp_get_total_unread_messages_count( $user_id );?></span></a></a></li>
    	
    	<li><a><a href="<?php echo bp_loggedin_user_domain();?>notifications"><span class="notifications_icons"><i class="fas fa-bell" style="font-size:17px;"></i></span><span class="my_bubble_notify"><?php echo bp_notifications_get_unread_notification_count( $user_id );?></span></a></a></li>
    <?php
    	$menu_items = ob_get_clean();
    
    	$menu = $menu . $menu_items;
    	return $menu;
    }
    
    add_filter( 'wp_nav_menu_items', 'my_counter_nav_menu' )

    CSS

    .notifications_icons {
    color: #ffffff;
    vertical-align: middle;
    margin: -7px;
    }
    
    .my_bubble_notify {
    color: #ffffff;
    border-radius: 3px;
    background-color: #f7823f;
    vertical-align: 20%;
    position: relative;
    	font-size: small;
    	padding: 0.1em 5px;
    }

    Buddypress 6.0.0
    Wordpress 5.4.2
    site: http://www.gamerstroop.com
    If you need, you can use test account (acc:test – pw:test)

    I dont know if I can paste my site link here. If I can’t please remove it or let me know, thank you so much for reading and helping me! <3

    #312479
    cmsplay
    Participant

    How can one email all members of a BuddyPress group only?

    There is the ‘Email WP Users’ plugin:

    WP Email Users

    …but its email ‘Group’ option is greyed-out and not useable. I have posted a query to the plugin’s support page, but no reply.

    There is a separate email subscription plugin:

    BuddyPress Group Email Subscription

    …but that just copies BP Group messages to users who have already opted to receive copies of messages posted to that group.

    Is there a simple way in BuddyPress to email all members of a BP Group? (It can’t be that difficult.)

    Thank you for your help 🙂

    #312473
    coolhunt
    Participant

    I found this thread
    https://buddypress.trac.wordpress.org/ticket/7321

    But I cant really make sense of it

    #312472
    coolhunt
    Participant

    Hi Guys,

    Is there a way to limit the excerpt being pulled by buddypress from a blog post.
    I’ve tried several techniques the trim the excerpt length. They work on the blog post excerpt but doesnt apply to the ACTIVITY excerpt.

    Any tips to the right direction would be great

    pinballw
    Participant

    I am relatively new to using BuddyPress but have spent a lot of time trying to find an answer to my question and I am at a total loss.

    I have created several xProfile fields under Users > Profile Fields but none of them display on the WP User profile (Admin Dashboard > Users > Edit or user-edit.php) for any given user.

    Fields:
    Name, Profession, Phone, Email, Address, Date of Birth, Emergency Contact Name, Emergency Contact Phone

    Ideally these fields would be displayed on the WP User profile with a header such as Personal Information.

    delta5
    Participant

    Hi all,

    Buddypress keeps telling me that I have a new message, but when I click on it and open it up, there is no message. I cant seem to clear that notice. Anyone have ideas?

    Thanks

    #312446
    Ricsca2
    Participant

    I inserted 1 new group (with various fields) to be requested from users. The registration page shows the buddypress group defoult and not the new one.
    How do I show my custom group too?
    Thanks

    #312434
    King Ding
    Participant

    Hello!

    I am trying to move the ’email preferences’ and ‘profile settings’ pages into the WooCommerce my-account tabs. I have created tabs and have template files, and everything visually looks great. However functionally, not so great.

    My issue is that the forms appear as they should, it’s just that they do not do anything – they don’t save or remember any data.

    I have found a ‘sort of’ solution to this problem here, but it refers to moving the registration form. After following these instructions and adapting it to the forms I am trying to move, I still have no success. I trust that I’m on the right track, but perhaps I’m overlooking something? Here is the instructions for reference:

    ———————————
    1. Copy the the contents of the bp-templates/bp-legacy/buddypress/members/register.php into the new registration page template

    2. At this point, the registration form will show up, but nothing will happen when we submit the form.

    3. To solve that, we need to add a custom function to the “bp_screen” hook. In the custom function, we will paste the contents of the “bp_core_screen_signup” function. (located in bp-members/bp-members-screens.php)

    4. Then, in our custom function, we will remove this

    if ( ! bp_is_current_component( ‘register’ ) || bp_current_action() )

    return;

    and put this

    if ( !is_page( ‘your-page-slug’ ) || bp_current_action() )

    return;

    5. Next, we’ll remove these lines:

    bp_core_load_template( apply_filters( ‘bp_core_template_register’, array( ‘register’, ‘registration/register’ ) ) );

    It will work now.
    ———————————-

    #312429
    msslrb
    Participant

    This is what I found.

    jquery.js?ver=1.12.4-wp:4 XHR failed loading: POST “https://example.com/wp-admin/admin-ajax.php&#8221;.
    send @ jquery.js?ver=1.12.4-wp:4
    ajax @ jquery.js?ver=1.12.4-wp:4
    n.<computed> @ jquery.js?ver=1.12.4-wp:4
    ajax @ buddypress-nouveau.min.js?ver=6.0.0:1
    buttonAction @ buddypress-nouveau.min.js?ver=6.0.0:1
    dispatch @ jquery.js?ver=1.12.4-wp:3
    r.handle @ jquery.js?ver=1.12.4-wp:3

    I’m not sure how to fix it. I discovered that friend requests to the admin is fairly quick. it’s the button for all other members that takes a long time.

Viewing 25 results - 3,326 through 3,350 (of 69,121 total)
Skip to toolbar