BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 4
    Martin Janos on #46031

    Hi Brajesh,

    As I mentioned, this didn’t work. This was my initial approach. I installed the Globally shared gallery plugin, created gallery and checked “Allow everyone to upload”, the result was that the output was “Sorry, you are not allowed to upload here.” message instead of uploader. I got stuck on that for like 5 hours, tried different settings etc. Editing the code was the only think that made it work.

    Regards,
    Martin

  • Participant
    Level: Initiated
    Posts: 4
    Martin Janos on #46012

    Hi Brajesh,

    Thank you for getting back to me.

    I have this plugin installed already but still it didn’t work. I had to change can_upload to true and comment condition as below:

    // the user must be able to upload to current component or gallery.
    $can_upload = true;

    /*if ( mpp_user_can_upload( $atts[‘component’], $atts[‘component_id’], $atts[‘gallery_id’] ) ) {
    $can_upload = true;
    }

    if ( ! $can_upload && $atts[‘show_error’] ) {
    return __( ‘Sorry, you are not allowed to upload here.’, ‘mediapress’ );
    }*/

    mediapress/core/shortcodes/mpp-shortcode-media-uploader.php

    Only now it’s working