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

    Hi John,
    Thank you for using Moderation tools.

    You can place the button anywhere.

    Using the function

    
     echo bpmts_get_report_button( $args );
    

    is the way to go.

    You need to pass this function 4 arguments.

    item_id, item_type are used to identify items. Context helps us understand where the action took place.

    To see how we are adding the button, please check src/reportable-types/ directory.
    There, you will see a directory for each component we support.

    Look for that directory/handler/class-prefix-ui-helper.php

    For example, for user, It is reportable-types/user/handlers/class-user-ui-helper.php
    For activity it is reportable-types/buddypress/activity/handlers/class-activity-ui-helper.php

    You will find there what we are using to generate the button in various contexts.

    Please try using them.

    Hope this helps.

    Regards
    Brajesh

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

    Hi Nik,
    You are welcome.

    The default privacy for each upload is that of its parent gallery.

    On the edit media page, you can override that. So, It will have effect. It allows you to override the privacy of each media individually.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Hans,
    This is expected behaviour.

    BuddyPress does not enforce profile field visibility if you are using xprofile_get_field_data.

    The visibility is only enforced in the view/edit profile page. This is how BuddyPress works.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] Custom Link in BP Profile by user role #26071

    Hi Frank,
    I am sorry I am not able to understand you issue. Can you please help me understand it better?

    Also, In future, Please open new topic for new issues. That way it helps all.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Hans,
    Can you please recheck.

    Changing the name should have no effect. Fields are associated by Id.

    PS:- If you are able to replicate it, please post me the steps to produce it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    It depends on your hosting. My suggestion si, if you don’t know where to look for, ask the web hosting support for the log.

    The problem could be some bad query or your hosting.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: FB like notification for buddypress #26059

    Hi Tosin,
    Good day to you too.

    It will be available sometime after 28th.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

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