BuddyDev

Search

[Resolved] Limit Number of Galleries Per User?

  • Participant
    Level: Enlightened
    Posts: 31
    Brian on #5488

    Hello,

    I believe this was a feature when BP Gallery was a thing, but can’t find mention of it in MediaPress.

    I am looking to limit the number of galleries a user can create on his or her BuddyPress profile to 1 Photo Gallery and 1 Audio Gallery only.

    Is this kind of functionality apart of MediaPress?

    Thank you!

  • Keymaster
    (BuddyDev Team)
    Posts: 22202
    Brajesh Singh on #5494

    Hi Brian,
    Thank you for posting. It is not part of MediaPress gallery but is doable. I need to write some custom code or may be a small plugin. Will post in a day or two.

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 31
    Brian on #5506

    Thank you so much Brajesh, you’re the best.
    Waiting patiently for your next reply 🙂

  • Participant
    Level: Enlightened
    Posts: 31
    Brian on #5722

    Any update on this Brajesh? Would love to incorporate this.

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 22202
    Brajesh Singh on #5723

    Hi Brian,
    I am sorry but it is a little bit delayed. I am not able to find time for it at the moment due to other priorities.

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 31
    Brian on #5731

    Okay no worries Brajesh, I understand.

  • Participant
    Level: Enlightened
    Posts: 31
    Brian on #5741

    Brajesh,

    Good news.
    I searched previous support threads and found these two:

    https://buddydev.com/support/forums/topic/limit-number-of-galleries-per-user/
    https://buddydev.com/support/forums/topic/mediapress-predefined-user-galleries/

    With some slight modifications, I was able to get the result I wanted.

    My solution in this was to auto-create the two galleries (audio and photo), and then three other functions to disable gallery creation, editing and deletion.

    This is basically the same effect I was looking for (better, even, as if a user is restricted from creating more than 1 gallery per media type, why not create it for them automatically).

    I will mark this as resolved, thank you again.

You must be logged in to reply to this topic.

This topic is: resolved