BuddyDev

Search

[Resolved] Any way to set Gallery ON by default for Groups?

  • Participant
    Level: Enlightened
    Posts: 40
    Jaume Aragay on #5614

    You passed me code to create Galleries by default for a group when creating it.

    Is there a way to make the checkbox called “Enable Gallery” on step 2 of the group creation process be checked by default?

    Even if I set the “Enable group galleries by default?” to YES in MediaPress / Settings / Groups Gallery, the checkbox is not marked.

    Thanks in advance! 🙂

    Jaume

  • Participant
    Level: Enlightened
    Posts: 40
    Jaume Aragay on #5615

    I see mpp_group_is_gallery_enabled() checks for the _mpp_is_enabled group meta… Is it set by default on group creation if the checkbox is checked? Or does it count on it to be empty by default so this code gets the value:

    if ( empty( $is_enabled ) ) {
    $is_enabled = mpp_get_option( ‘enable_group_galleries_default’, ‘yes’ );
    }

  • Participant
    Level: Enlightened
    Posts: 40
    Jaume Aragay on #5616

    The code is from mediapress/modules/buddypress/groups/mpp-bp-groups-functions.php

  • Keymaster
    (BuddyDev Team)
    Posts: 21785
    Brajesh Singh on #5617

    Hi Jaume,
    Thank you. It was a bug. I have it fixed in
    https://github.com/buddydev/mediapress/commit/061d913d578bcdaa5f50aaea365604e3c2647fa9

    It will be available in our next release.

    Thank you
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved