BuddyDev

Search

[Resolved] MediaPress – predefined user gallery

  • Participant
    Level: Initiated
    Posts: 1
    Krzysztof Masłowski on #32207

    Hi,

    I’ve tried to use the solution from:
    https://buddydev.com/support/forums/topic/mediapress-predefined-user-galleries/

    and it seems that the 2 first features are OK – the user can’t create a gallery, but the predefined gallery is NOT created.

    Could you please share any insight? It seems the post is from 2016 so maybe some function names changed or some variables are now needed for the creation of the predefined gallery?

    I’d really appreciate some help here. BTW this seems to be a good feature to add to the MediaPress (predefined media galleries 😉 )

    Best,
    Chris

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #32248

    Hi Chris,
    Welcome to BuddyDev.

    Thank you for the question.

    Please try adding this line too

    
    
    add_action( 'bp_template_redirect', 'mpp_custom_auto_create_gallery');
    
    

    At the bottom of the code.

    Please check by visiting a user’s profile if it work or not?

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 1
    Krzysztof Masłowski on #32249

    You Sir, are an absolute treasure!

    Thank you – it works as expected now. The previous thread could use an update though, so not to generate duplicates in the future.

    Once again – thanks!

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #32268

    Thank you Chris.

    I am glad I was able to help.

    I will update the original post too.

    Regards
    Brajesh

The topic ‘ [Resolved] MediaPress – predefined user gallery’ is closed to new replies.

This topic is: resolved