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: 25471

    Hi Alexandre,
    Please try hooking to ‘init’ section and it should work.

    Here is your code with init action

    
    
    add_action( 'init', 'remove_admin_bar_user', 10001 );
    function remove_admin_bar_user() {
    
    	if ( current_user_can( 'administrator' ) || is_admin() ) {
    
    		show_admin_bar( true );
    	} else {
    		show_admin_bar( false );
    	}
    }
    
    

    Does it work?

    • This reply was modified 8 years, 10 months ago by Brajesh Singh. Reason: Updated privacy to normal
    • This reply was modified 8 years, 10 months ago by Brajesh Singh. Reason: Updated priority to normal
  • Keymaster
    (BuddyDev Team)
    Posts: 25471
    Brajesh Singh on in reply to: "BuddyPress Deactivate Account" email notification #10883

    Marking it as resolved since it is fixed from our end. Also 1.10 of the plugin is available which ads a ton of extra features.

  • Keymaster
    (BuddyDev Team)
    Posts: 25471
    Brajesh Singh on in reply to: Community builder costumizer #10882

    Hi Branislav,
    Thank yyou.

    I will make sure to let you know.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25471

    Thank you Shashi.
    We are looking at it and will keep you informed.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25471
    Brajesh Singh on in reply to: [Resolved] Privacy issue in comments #10880

    Hi Tiziano,
    My apologies.

    It’s the way WordPress handles comment. There are two ways.

    1. Completely disable email to post authors

    
    add_filter( 'notify_post_author', '__return_false' );
    
    

    That is a bad way.

    2. Filtering on ‘comment_notification_text’ like this

    
    
    function buddydev_strip_commenter_email( $message, $comment_id ) {
    
    	$comment = get_comment( $comment_id );
    
    	$email_info = sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n";
    
    	$message = str_replace( $email_info, '', $message );
    
    	return $message;
    }
    
    add_filter( 'comment_notification_text', 'buddydev_strip_commenter_email', 10, 2 );
    
    

    The second option may work or may not work. It depends on the kind of setup you have.

    Please give that a try and let me know.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25471

    Hi Kuni,
    Thank you.

    If you pass type=”newest” it will list the list ordered by user id in the reverse order.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25471

    Hi Kuni,
    The member type shortcode supports only the order by filter supported by BuddyPress.

    BuddyPress does not support ordering by xprofile yet. So, It is almost not feasible for now to do it.

  • Keymaster
    (BuddyDev Team)
    Posts: 25471
    Brajesh Singh on in reply to: Error when activating Buddyblog #10873

    Hi Aldo,
    BuddyBlog does not add blogging capabilities to Groups. It is for user bloging. Please look int o Blog Categories for groups to enable it for groups.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25471

    Thank you. Yes, any privacy plugin will work. Another option will be to use logged in privacy in MediaPress to force MediaPress photos to be visible to logged in members only.

  • Keymaster
    (BuddyDev Team)
    Posts: 25471

    I am not sure of the origin of that error, I will send you the link to our current plugin. today. That should work.