BuddyDev

Search

[Resolved] BP Editable Activity and MediaPress

  • Participant
    Level: Enlightened
    Posts: 79
    Leo on #3448

    Hello,

    I wonder if it is possible to edit MediaPress activities with BP Editable Activities plugin? By default it is not available, as I see. By saying edit, I mean the text users type into the textarea, not the media files.

    Thank you,
    Leo

  • Keymaster
    (BuddyDev Team)
    Posts: 24262
    Brajesh Singh on #3449

    Hi Leo,
    Thank you for buying the plugin.

    The problem is people will expect to modify the listed media. The media is not stored as html, so it is not feasible for us to allow media list(It is stored as ids and generated content).

    It is possible to allow editing the activity content with media though. If you want that please do let me know and I will update this plugin for the purpose.

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 79
    Leo on #3451

    Hi Brajesh,

    Thanks for another great plugin.

    Actually, I didn’t get it correctly, sorry.
    What I want is to edit the activity content, if it includes editing media too, fine, if without media, better.

    Please let me know what’s possible and let’s do that.

    Thank you,
    Leo

  • Keymaster
    (BuddyDev Team)
    Posts: 24262
    Brajesh Singh on #3455

    Hi Leo,
    Thank you.

    It will allow editing without media.

    @ravi-1987 will be posting the code shortly.

    Thank you
    Brajesh

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2986
    Ravi on #3457

    Hi Leo,

    Please check the following code in your bp-custom.php file and let me know if it is working or not.

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

    Thank You
    Ravi

  • Participant
    Level: Enlightened
    Posts: 79
    Leo on #3462

    Hi Ravi,

    Thank you, that works perfectly.

    Thank you,
    Leo

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2986
    Ravi on #3463

    Hi Leo,

    Thank You for confirming.

The topic ‘ [Resolved] BP Editable Activity and MediaPress’ is closed to new replies.

This topic is: resolved