Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25448
    Brajesh Singh on in reply to: Buddyblog group #48659

    Please do it from BuddyBlog->Group Settings

    That menu is only available if you have BuddyBlog Groups plugin installed.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25448

    Thank you Oscar.
    Please do let me know if it worked or not?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25448

    Thank you Nik.
    It does point me in the right direction.

    I will make sure that the status message is working properly in next release.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25448

    Hi Tosin,
    Thank you for the details. I will have someone test it and write back to you early next week.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25448

    Hi Azamat,
    As conveyed over email, the plugin does not allow you to add public tab to private/hidden groups. That is how BuddyPress/BuddyBoss works.

    Marking it resolved as discussed over email.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25448

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25448
    Brajesh Singh on in reply to: Buddyblog group #48646

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25448

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25448

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25448
    This reply has been marked as private.