BuddyDev

Search

[Resolved] BuddyPress Editable Activity doesnt work well with MediaPress

  • Participant
    Level: Enlightened
    Posts: 34
    Milan Latinovic on #24378

    Hi everyone,

    I have installed “BuddyPress Editable Activity” and it works very good on it’s own.

    But, when I installed and configured MediaPress, I have noticed that:
    1) Activities made without media (regular activities) can be edited.
    2) Activities made with media (with MediaPress) can not be edited (option is not there).

    Example: https://ibb.co/1dNn8HG

    Expected behavior:
    If there is edit option it would make sense for it to work on all activities.
    I understand that implementing edit for media might be harder (remove images, upload new ones etc.) but at first step it would be enough if user can simply edit text related to that post.

    Is there something that can be done here?

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #24379

    Hi Milan,
    Welcome to BuddyDev.

    We had disabled it to avoid people wondering why they can not edit media list. Please allow us to release an update in next 2 days to let the users edit text for media updates too.

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 34
    Milan Latinovic on #24382

    Hi Brajesh,
    Thank you for a quick response.

    Sure, I think editing text within media updates will make sense for all users (it will be a quick win for a plugin usability).

    Please let me know when new version of plugin is available, so I can update and test it.

    Kind regards,
    Milan

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #24387

    Hello Milan,

    Please try the following code. It will allow editing MediaPress activity text.

    
    function buddydev_modify_activity_allowed_type( $allowed_types ) {
    
        if ( ! in_array( 'mpp_media_upload', $allowed_types ) ) {
            $allowed_types[] = 'mpp_media_upload';
        }
    
        return $allowed_types;
    }
    add_filter( 'bp_editable_activity_allowed_type', 'buddydev_modify_activity_allowed_type' );
    
    

    Please let me know it works.

    Regards
    Ravi

  • Participant
    Level: Enlightened
    Posts: 34
    Milan Latinovic on #24388

    Hi Ravi,

    Thanks for a quick response.
    Yes, adding ‘mpp_media_upload’ as allowed type worked perfectly.

    Issue resolved, thank you very much!

    Kind regards,
    Milan

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #24405

    Hello Milan,

    Thank you for the acknowledgment.

    Regards
    Ravi

The topic ‘ [Resolved] BuddyPress Editable Activity doesnt work well with MediaPress’ is closed to new replies.

This topic is: resolved