BuddyDev

Search

Additional Global shared gallery question

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

    Hi Mike,
    I am sorry for the delayed reply. We had too many off days this week. I am asking @ravisharma to check and see if he can assist you tomorrow.

    Regards
    Brajesh

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

    Hello Mike,

    Sorry for the delayed reply. I have tested this and it is working fine me. Please provide me your staging site creadential with admin and guest credentials and FTP details so that I can help you.

    Regards
    Ravi

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

    can you resend me the plugin link and I will try reinstalling it first..
    Thanks

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

    Please resend the plugin link to me

    and also maybe I’m inserting code in the wrong file…which file should I be inserting it to?

    /**
    * 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 );

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

    Hello Mike,

    Plugin downloadable link same as provided earlier.

    You can put the code in “bp-custom.php”. For more info check the following link:
    https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/

    Regards
    Ravi

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

    If I gave you credentials to go in site.
    There is an issue because users are already on site…identity security?

    When I uploaded plugin and added code.

    Photos work users can’t upload video.

    Sorry!! Don’t mean to be a pain about this!!!

  • Participant
    Level: Enlightened
    Posts: 36
    Mike on #35874
    This reply has been marked as private.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #35876

    Hello Mike,

    Please provide me the credential admin as well as one guest account so that I can check there.

    Regards
    Ravi

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

    is it safe to put admin password on this page? How do you want it sent?

  • Participant
    Level: Enlightened
    Posts: 36
    Mike on #35883
    This reply has been marked as private.

You must be logged in to reply to this topic.

This topic is: not resolved