BuddyDev

Search

Additional Global shared gallery question

  • Participant
    Level: Enlightened
    Posts: 36
    Mike on #35663

    Hi Ravi

    https://github.com/mediapress/mpp-global-shared-gallery
    worked…thank you!
    But an additional question..

    With Global Shared Galleries…is there any way the media a user uploads
    has control over at all? Able to delete…etc.

    Is there anything I can do?

    Thanks for your assistance!!

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #35671

    Hello Mike,

    Thank you for posting. I have added edit and delete capability on media user has uploaded. Please check

    Download the fresh copy of plugin:

    https://github.com/mediapress/mpp-global-shared-gallery/archive/master.zip

    Please let me know if it works or not.

    Regards
    Ravi

  • Participant
    Level: Enlightened
    Posts: 36
    Mike on #35674

    Ok will test and let you know!

    Thanks for your assistance!

  • Participant
    Level: Enlightened
    Posts: 36
    Mike on #35691

    Ravi,

    The update works good for photos , all users can upload and delete
    But with videos, users can’t upload at all…it gives error message you don’t have sufficient privilege..they can’t upload video at all.

    Please assist…thanks so much!

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #35692

    Hello Mike,

    Thank you for the acknowledgement. It is releated to the gallery publishing permission. Please try the follwoing code:

    
    /**
     * Modify gallery activity.
     *
     * @param bool        $can     Can publish or not.
     * @param MPP_Gallery $gallery MediaPress gallery object.
     * @param int         $user_id User id permission need to check.
     *
     * @return bool
     */
    function buddydev_modify_user_can_publish( $can, $gallery, $user_id ) {
    
    	if ( ! is_user_logged_in() ) {
    		return $can;
    	}
    
    	// If gallery is shared allow user to publish.
    	if ( get_post_meta( $gallery->id, '_mpp_is_all_upload_allowed', true ) ) {
    		$can = true;
    	}
    
    	return $can;
    }
    add_filter( 'mpp_user_can_publish_gallery_activity', 'buddydev_modify_user_can_publish', 10, 3 );
    
    

    Please let me know if it works or not.

    Regards
    Ravi

  • Participant
    Level: Enlightened
    Posts: 36
    Mike on #35694

    I still a newbie at this..
    I add this code to snippets correct?

    I added to snippets and it gave me an error
    won’t work.

    Let me know what next.

  • Participant
    Level: Enlightened
    Posts: 36
    Mike on #35698

    I tried it again to try in snippets…

    Went to video page to upload a video as a subscriber..
    still gives error message insufficient privileges to upload

    Please help…alot of users are asking me if it is fixed.

    I thank you for your asssistance, very much!!!

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #35703

    Hi Mike,

    Thank you for the reply.

    Please have patience. We will assist you. This will need some time as we are unable to prioritize your ticket. This is an experiment plugin, not published on BuddyDev site, we will need time to check and fix it.

    Thank you

  • Participant
    Level: Enlightened
    Posts: 36
    Mike on #35725

    Any update? Thanks so much!

  • Participant
    Level: Enlightened
    Posts: 36
    Mike on #35792

    Any update? I have alot of subscribers going on my site asking!

    Thanks so much for all your hard work! Greatly appreciated!!

You must be logged in to reply to this topic.

This topic is: not resolved