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

    Hi Kir,
    There are no direct methods to do the count. You may use this though.

    
    
    $count = count( mppftc_get_featured_media( 'component_id' => $user_id, 'per_page'=> -1 ) );
    
    

    That should most probably give the count. You will need to update the $user_id.

    Internally, featured media are simply ‘attachment’ post type with meta ‘_mppftc_featured’ set to 1. You can do a direct count for efficiency.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347
    Brajesh Singh on in reply to: Mediapress Privacy Settings #26057

    Hi Nik,
    Thank you for using MediaPress.

    1.Is there any way for members to set the privacy option when uploading images?
    No. The privacy is managed by the gallery they are uploading to. If the gallery is public, the media will be public and so on.

    2. Can members set a default privacy setting for their own uploads?
    When the user create a gallery, they can choose their privacy. This ats as the default privacy for all uploads to that specific gallery.

    3. Are images set to “friends only” excluded from the activity stream for “non-friends”?
    Any privacy other than public marks the activity as private.

    4. What happens if an image was originally “public” but then changed to “friends only” ie. will it be removed from the activity stream for non-friends?

    The activity will not be removed but the image will not be visible to non friends.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347

    Hi,
    We don’t have any plans for it currently.

    As of your issue, Please check your mysql error log, that should give you some pointer.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347

    Hi Hugo,
    Thank you for reporting.
    Seems like a bug. I will update you within 24 hours.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347

    Hi Hans,
    both have same function names. That’s why you are getting fatal error.

    You can not use them together.

    You will need to adapt the code from the tutorial to the plugin.

    regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347

    Hi Carsten,
    Please use css to hide them. They are wrapped in spans and should be easily hidden with css.

    regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347
    Brajesh Singh on in reply to: Activate Button for users with no toolbar #26042

    Hi Jacqui,
    Thank you.

    Please upgrade to 1.2.0. It fixes the issues.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347
    Brajesh Singh on in reply to: Customize private group announcement #26041

    Hi Hugo,

    Thank you for the question.

    I do not see a simple way to customize it on per group basis.

    There are two ways to customize it.
    1. Using the filter ‘bp_group_status_message’ or
    2. Modifying buddypress/groups/single/home.php in your theme.

    Here is an example using the filter.

    
    
    function buddydev_custom_group_status_message( $message, $group ) {
    
    	if ( 'private' !== $group->status ) {
    		return $message;
    	}
    
    	// now handle all the cases(invited, pending etc) and modify the $message
    
    	return $message;
    }
    
    add_filter( 'bp_group_status_message', 'buddydev_custom_group_status_message', 10, 2 );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347

    Hi Hans,
    Did you copy both part of the tutorial?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347
    Brajesh Singh on in reply to: Activate Button for users with no toolbar #26036

    Thank you for the details.
    Just 1 more question.

    Did you login with a deactivated user account? If yes, didn’t their profile show an “Activate” button? It should be at the same place where deactivate is.

    If it is not showing. Please let me know. It could be a bug. I will be testing the same today too and update you.

    Regards
    Brajesh