Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: How add new type notification for BuddyPress? #16498

    Hi Max,
    Welcome to BuddyDev.

    You can use

    
    
    bp_notifications_add_notification();
    
    

    to add new type of notifications. Please do note that you will need to register a dummy component and notification callback to make it render the notification.

    From your post, It seems you are using some kind of task management plugin. My suggestion will be to ask the developer to add it. It should be a very simple task as they might have some of the notifications already there.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: [Resolved] Hyperlink to edit profile #16497

    Hi Audiomonk,

    You can use

    get_edit_profile_url( $user_id)
    

    to get the profile edit link.

    In your case, you can use the following code

    
    
    echo "<li><a href='" . get_edit_profile_url( get_current_user_id() ) . "'>" . __( 'Edit my profile', 'clean-login' ) . "</a></li>";
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi George,
    Will it be feasible for you to share the temporary login details with me.

    It is very strange that the shortcode is behaving this way.

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Please put the following code to your bp-custom.php

    
    
    /**
     * Disable recording posting from a specific category to BuddyPress activity 
     *
     * @param bool $enabled allow posting?
     * @param int  $blog_id blog id.
     * @param int  $post_id post id.
     * @param int  $user_id user id.
     *
     * @return bool
     */
    function buddydev_disable_category_post_from_activity_recording( $enabled, $blog_id, $post_id, $user_id ) {
    
    	$category_id = 165;
    	$taxonomy    = 'category';
    
    	if ( has_term( $category_id, $taxonomy, $post_id ) ) {  // I could use has_category() but has_terms can be a better example for future customization.
    		$enabled = false;
    	}
    
    	return $enabled;
    }
    
    add_filter( 'bp_activity_post_pre_publish', 'buddydev_disable_category_post_from_activity_recording', 10, 4 );
    
    

    It will disallow any future recording of posts from that category. It won’t change the activity for already recorded posts though.

    Please test and let me know if it works for you or not?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Limit private messages for PaidMembership Users #16488

    Hi Velli,
    We don’t offer any solution for the above combination.

    We do have a message rate limiter(It will not work with Nouveau template).
    https://buddydev.com/plugins/bp-private-message-rate-limiter/

    You may want to customize it or hire someone to do it for you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Velli,
    Please share the post type(is it post or a custom post type?) and category(term) id.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Hidden Members and Directory Profiles #16486
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: How to send a message to all users #16485

    You are welcome.

    Please be aware that using BP better Message will cause a lot of stress on database(too many queries per page in the current version).

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Herve,
    I will do a re-test today and will get back to you.

    PS:- In future, If you do not want to wait for the cron to test, you can use the cron control to manually trigger and call the hooked function.

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Theo,
    I am sorry I could not reply earlier.

    Please use this

    
     <?php  echo xprofile_get_field_data( "Age", bp_get_member_user_id() );?>
    
    

    For members loop. The problem with it does not seem to be applying the display filter.

    Using xprofile_get_field_data works.

    Regards
    Brajesh