BuddyDev

Search

[Resolved] Howto: default galleries for all new users (my videos, my docs, my pictures)?

  • Participant
    Level: Enlightened
    Posts: 27
    studioleland on #14272

    Hello,

    Is there a hook or action I can use to automatically create a gallery for all new users for each media type with a default name? Such as My Videos, My Pictures, My Docs? I want to automatically link to these media galleries from other places in the profile to “create doc” or “add video” but I can only send them to the empty gallery page if non exists. I’d like to remove that confusion and just create a single default gallery automatically for all new accounts. Please advise.

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #14274

    Hi Leo,
    There are multiple ways to do it.

    Please see an example here

    https://buddydev.com/support/forums/topic/mediapress-predefined-user-galleries/page/2/#post-2474

    I will suggest an enhancement though. Instead of using mpp_actions you should bind to the account activation action. That way, It will only run when new account gets activated instead of the each page load on user profile.

    You may modify it as you please.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #14277

    Also,
    Here is another post you may be interested in.
    https://buddydev.com/support/forums/topic/user-galleries/

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 27
    studioleland on #14278

    This is perfect! Thanks for the prompt assistance.

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #14285

    You are welcome 🙂

The topic ‘ [Resolved] Howto: default galleries for all new users (my videos, my docs, my pictures)?’ is closed to new replies.

This topic is: resolved