Tagged: EnableGalleryOnByDefault
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
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’ );
}The code is from mediapress/modules/buddypress/groups/mpp-bp-groups-functions.php
Hi Jaume,
Thank you. It was a bug. I have it fixed in
https://github.com/buddydev/mediapress/commit/061d913d578bcdaa5f50aaea365604e3c2647fa9It will be available in our next release.
Thank you
Brajesh
You must be logged in to reply to this topic.