Replies
- Brajesh Singh on March 3, 2023 at 10:31 am in reply to: [Resolved] Display GROUPS Alphabetically in List #48648
Hi Dianne,
Thank you for the question.I have modified your shcorcode for flexibility. I hope it helps.
/** * Shortcode for listing groups of a user. * * @param array $atts shortcode attributes. * @param string $content content. * * @return string */ function user_world_memberships( $atts, $content = '' ) { $atts = shortcode_atts( array( 'user_id' => bp_displayed_user_id(), 'type' => 'alphabetical', 'order' => 'ASC', 'page' => 1, 'per_page' => - 1, 'group_type' => '', 'group_type__in' => '', 'group_type__not_in' => '', ), $atts, 'member_worlds' ); $groups = groups_get_groups( $atts ); $groups = $groups['groups']; if ( empty( $groups ) ) { return ''; } $list = ''; foreach ( $groups as $group ) { $list .= sprintf( '<li><a title="View %1$s" href="%2$s">%3$s</a>', esc_attr( $group->name ), esc_url( bp_get_group_permalink( $group ) ), esc_html( $group->name ) ); } if ( ! empty( $list ) ) { $list = "<ul class='custom-user-group-list'>{$list}</ul>"; } return $list; } add_shortcode( 'member_worlds', 'user_world_memberships' );P.S. we normally void providing coding support for 3rd party plugins but there are always exceptions.
Regards
Brajesh Hi Earl,
Thank you for the reply.Here are the steps you need to follow:-
1. Create form and select Group Post form and publish
2. Visit Dashboard->BuddyBlog->Group Settings
3. Enable a post type for Group and save.
4. On the Post Type tab in group settings, Please make sure you have the form selected in “Create” section. Also, Please make sure proper settings and enabled for all the tabs/sub tabs.That will allow you to associate a post type with a group and allow posting from group if you enable it to do so.
Thank you
Brajesh- Brajesh Singh on March 3, 2023 at 9:45 am in reply to: BuddyBlog Groups – 1.0.0-RC-3 – possible bug – can’t save group tab settings #48645
Hi Nik,
Thank you.Can you please help me understand the hour glass icon? We haven’t added any, so it could be inheriting from the theme.
Please link me to a screenshot and I will make sure it is included.
Regards
Brajesh - Brajesh Singh on March 3, 2023 at 9:43 am in reply to: how to encrypt file name when uploading with Xprofile Custom Field Types #48644
Hi Oscar,
Welcome to BuddyDev support forums.The files upload by Xprofile custom field types are public. Please do not treat them as private.
It is still possible to hash/encrypt file name.
Yo may want to try this one
/** * Encrypts file name using md5 * * @param array $file file info. * * @return array */ function buddydev_cusotm_encrypt_file_name( $file ) { $info = pathinfo( $file['name'] ); $ext = empty( $info['extension'] ) ? '' : '.' . $info['extension']; $name = basename( $file['name'], $ext ); $new_file_name = md5( $name ); // limit file name to 12 characters. comment if you don't want to limit. $new_file_name = substr( $new_file_name, 0, 12 ); // update file name. $file['name'] = $new_file_name . $ext; return $file; } add_filter( 'wp_handle_upload_prefilter', 'buddydev_cusotm_encrypt_file_name' );Please do note that it will encrypt the file name for all files uploaded via WordPress and not just ours. In next release, I will put an extra hook to allow us to it selectively.
Regards
Brajesh - Brajesh Singh on March 3, 2023 at 9:22 am in reply to: Assiging Member Type Doesn’t Add User to Group #48641This reply has been marked as private.
- Brajesh Singh on March 3, 2023 at 9:20 am in reply to: [Resolved] Order by – parameter for featured member plugin shortcode #48640
Hi Tosin,
Thank you.Both of the above code has no effect on it. Can you try other type(alphabetical) and see if that works or not? Just to be sure.
If that doe snot work, I will have my team to look into it an assist you.
Regards
Brajesh Hi Earl,
Do you want to allow others(other than author) to upload to the gallery?
If yes, Please use the global shared gallery plugin
https://github.com/mediapress/mpp-global-shared-galleryYou can mark a gallery as globally shared and everyone can upload to it then.
Regards
Brajesh- Brajesh Singh on March 3, 2023 at 9:12 am in reply to: [Resolved] Sitewide gallery upload issue #48638
Hi Earl,
Thank you for the question.Please share your shortcode. Is there any chance that the current user has upload access to only once of the gallery? Only gallery creators can upload to a gallery, so I am assuming that could be the reason(or it could be type of the gallery).
Regards
Brajesh Hi Earl,
I am sorry, I am not sure of the question.Please help me understand it in a clear way and I will assist.
Regards
BrajeshHi Earl,
Please login to your BuddyDev account and visit your profile->Memberships->Plugins page.
you will find BuddyBlog Groups plugin there.Please install and activate both the BuddyBlog & BuddyBlog Groups. Now, you can create forms and mark it for use with group.
you can also setup post types for group tabs.Regards
Brajesh