BuddyDev

Search

[Resolved] Editable Activity not work when write activity & upload image

  • Participant
    Level: Master
    Posts: 213
    smart life on #14380

    Hi,

    I used rtmedia plugin, which allow upload image on “what’s new activity post”, when i write something and upload image for activity, the edit button is not appear.

    Please update.

    Thanks

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2909
    Ravi on #14382

    Hello Julia,

    Sorry, Plugin does not support anything other than normal activity and comment.

    Thank You
    Ravi

  • Participant
    Level: Master
    Posts: 213
    smart life on #14414

    Can you please update? Because my theme forced to use rtmedia for all build of custome theme. I can’t use mediapress.

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #14431

    Hi Julia,
    We have tried doing it in part. There is a limitation of our inline editor. We don’t support richtext and that’s why editing media(be it rtMedia or MediaPress ) is not supported as they show links and html.

    This plugin is not in our current priority but we do hope that we will be able to rewrite it this year and add support for all content types.

    Thank you
    Brajesh

  • Participant
    Level: Master
    Posts: 213
    smart life on #14438

    I just mean allow “Edit” for text.

    Ex: I write what a beautyful day! and update rtmedia “sky picture”

    Then “Edit button dissapear”

    ==> Update. Edit button allow edit “what a beautyfull day”. Not edit image.

    When u have time and updated. Please let me know. Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #14451

    I will need to check before posting. last time I checked Rt media was not using any separation between the text and media items. So, users were seeing the html when we enabled it(yes, There is a filter to enable it for any type).

    I will first check with RtMedia this weekend and then will post the code.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 213
    smart life on #14466

    Ok. I will follow up. Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #14547

    Hi Julia,
    You can use the following code to enable the edit button for RT Media.

    
       add_filter( 'bp_editable_activity_allowed_type', function ( $allowed ) {
            $allowed[] = 'rtmedia_update';
            return $allowed;
       }) ;
    

    But you may not want to do it as the edit will only show html code.

    Best regards
    Brajesh

The topic ‘ [Resolved] Editable Activity not work when write activity & upload image’ is closed to new replies.

This topic is: resolved