BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Delete all blog comments by specific user #52747

    Hello Michael,

    Try the following way:

    
    
    $comments = get_comments( 'author_email=' . $user_email );
    
    foreach ( $comments as $comment ) {
    	wp_delete_comment( $comment->comment_ID, true );
    }
    
    

    PS: it may have some performance issues if comments are in large quantity.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    You’re welcome! and thank you for marking it as resolved.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: How to get approval status? #52745

    Hello Alex,

    Thank you for posting. Sorry, I am unable to get your issue clearly. What approval feature you are talking about? Is there any third-party plugin you are using for the approval feature? Also, please let me know your working environment i.e. BuddyPress or BuddyBoss Platform. It will be helpful if you can share some screenshots or short video of the issue so that I can help you with it.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Stephanie,

    Thank you for posting. Yes, you are right it is the field name we give while creating a new field from Dashboard > User > Profile Fields > Add New Field.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] buddypress username changer follow up help #52742

    Hello Amanda,

    Sorry for the inconvenience. I have checked it and it seems to be an issue with BP 12+ as they have deprecated the function ‘bp_core_get_user_domain’. Please upgrade your plugin to 1.2.8 or you can download it from the following:

    https://buddydev.com/downloads/buddypress-username-changer/versions/bp-username-changer-1-2-8.zip

    Please give it a try and let me know.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Private message management has a problem #52714

    Hello Gisela,

    Thank you for the acknowledgement.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BuddyPress Edit and GamiPress #52713

    Hello Katrine,

    Thank you for posting. The activities generated by “Gamipress” are normal activities just like user-posted activities but in this case, The Gamipress plugin is posting these for the user on some kind of achievements that’s why they are able to edit those activities as well. But with small code, you can restrict users from editing such activities. Please use the following code in the file “bp-custom.php”

    
    add_filter( 'bp_editable_activity_can_edit_activity', function ( $can, $activity ) {
    
    	if ( isset( $activity->component ) && 'gamipress' == $activity->component ) {
    		$can = false;
    	}
    
    	return $can;
    }, 10, 2 );
    
    

    More info on “bp-custom.php”. Check here: https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Stephanie,

    Sorry for the inconvenience.

    1. HTTP Error”. When I tried to upload the files one by one, I got a message saying that the allowed storage limit has been exceeded

    Please increase the upload storage size and then give it a try. MediaPress does not offer restrictions based on individual file size instead it offers a total storage limit for an individual user or a single site group.

    2. when I tried to delete the gallery, after checking the box and pressing the “Yes I understand” button, it led to a page saying “There had been a critical error on this website.” on an otherwise empty page.

    Please share the error so that we can help. To get the actual error please enable WordPress debugging mode. You can take a look here on how to enable this: https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/

    3. I noticed that the first time, the layout of the settings for Buddypress was different to usual – instead of allowing me to type the slug for the Buddypress pages (eg the register and members directory page), I had to select from a dropdown menu, and, those pages, including the activation page, were listed in the dashboard Pages page

    With the BuddyPress version greater than ‘12.0’ there comes the feature which allows the site admin to configure page slugs of BuddyPress pages before this version it shows a dropdown of pages to select from also if you install the plugin ‘BP Classic with BuddyPress version greater than ‘12.0’ it will show dropdown.

    PS: To MediaPress work properly on your site please install the ‘BP classic’ plugin

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Error posting #52706

    Hello Mike,

    Sorry for the inconvenience. Please configure MediaPress settings and then give it a try. If an issue is coming please share it with us we will assist you.

    You can configure MediaPress from Dashboard > MediaPress > Settings

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Some issues with Mediapress #52683

    Hello Stephanie,

    1. I’m glad to know it is resolved.
    2. The description for media is shown on the Single media page if you have the settings enabled. If you are not using comments, disable lightbox and a user can view a single media page.
    3. Please contact your theme author, They can assist you better.
    4. We have made a plugin which allows gallery media to be set as the gallery cover. Please download and give it a try. You can download it here:
    https://github.com/mediapress/mpp-set-media-as-gallery-cover/archive/refs/heads/master.zip
    5. Place the following code in the “bp-custom.php” file. It will add a new link to the gallery and point to the edit gallery page.

    
    add_filter( 'mpp_gallery_actions_links', function ( $joined_links, $links, $gallery ) {
    
    	if ( mpp_user_can_edit_gallery( $gallery->id, get_current_user_id() ) ) {
    		$joined_links = $joined_links . " " . sprintf( '<a href="%1$s" title="' . __( 'edit %2$s', 'mediapress' ) . '">%3$s</a>', mpp_get_gallery_management_url( $gallery ), mpp_get_gallery_title( $gallery ), __( 'edit', 'mediapress' ) );
    	}
    
    	return $joined_links;
    }, 10, 3 );
    
    

    PS: To know more about what is bp-custom.php. check here: https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/

    Regards
    Ravi

    • This reply was modified 5 months, 2 weeks ago by Ravi.