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: 25494
    Brajesh Singh on in reply to: Change behaviour inside the lightbox #26093

    Hi,
    Please copy plugin/mediapress/templates/mediapress/default/buddypress/activity/views/grid-photo.php to
    Your theme/mediapress/default/buddypress/activity/views/grid-photo.php

    Now, you will see somethin like this

    
    <a href="<?php mpp_media_permalink(); ?>"
    

    change the

    
    <?php mpp_media_permalink(); ?>
    

    with

    
    <?php mpp_media_src( 'original' ); ?>
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Change behaviour inside the lightbox #26091

    Hi elias ,
    Welcome to BuddyDev.

    Please visit Dashboard->MediaPress->settings->Theming
    Please adjust the lightbox settings there(enable/disable etc).

    Currently, we do not have the option to link to media.

    If you want to do it, you will need to override a template file? Please let me know if you are comfortable with that and I will share how to do it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Mediapress in the activity stream #26090

    Hi Rafi,
    Welcome to BuddyDev.

    Do you want to rename it(change label) or do you want to mix it with profile updates?

    Currently, mixing it with profile update is not feasible as we use a different action type.

    If you want to change the label, Please use any translation tool to do it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Frank,
    Thank you for sharing. Makes sense.

    I am glad you resolved it and shared with us.

    Best regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: [Resolved] Hide tabs and profile for custom roles #26087
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    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: 25494
  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    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: 25494

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