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: 25373

    Hi Vlad,
    Thank you.

    Here is the code for those steps.

    
    // create profile
    add_action( 'groups_create_group', function ( $group_id, $member ) {
    
    	$profile_group_id = 1;// the profile fiedl group where the new field will be stored.
    	$group            = groups_get_group( $group_id );
    
    	$field_id = xprofile_insert_field(
    		array(
    			'field_group_id' => $profile_group_id,
    			'type'           => 'textbox', // Your field type.
    			'name'           => $group->name,
    			'description'    => sprintf( 'Details for group %s', $group->name ),
    			'is_required'    => false,
    			'can_delete'     => true,
    		)
    	);
    
    	// let us remember the field id for future usage.
    	if ( $field_id ) {
    		groups_update_groupmeta( $group_id, '_associated_profile_field_id', $field_id );
    	}
    }, 10, 2 );
    
    add_action( 'groups_before_delete_group', function ( $group_id ) {
    
    	$associated_profile_field_id = groups_get_groupmeta( $group_id, '_associated_profile_field_id', true );
    	if ( ! $associated_profile_field_id ) {
    		return;
    	}
    
    	xprofile_delete_field( $associated_profile_field_id );
    }
    );
    
    

    Please get in touch via our services section, we may be able to assist you next week onward with any custom code requirement. Our hourly fee for services is USD $90/hr.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25373

    Hi Kateryna,
    Thank you for using the plugin. It is a bug if this is happening. Our team is looking into it and we will make sure to test it before releasing tomorrow’s update.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25373

    Hi Carsten,
    Thank you for the screenshot.

    It will only show if you scoped it to a few of the ember types.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25373

    Thank you Carsten,
    I will be reaching out in couple of days after investing your other topic.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25373

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25373

    Thank you for confirming.

    Is the profile page of the user being accessed on main site and not the sub site? Or is that a domain mapped sub site(I am not sure due to the site language).

    Please let me know.

    PS:- In case we need further investigation, can you please let me know if you are comfortable with checking a few details in phpmyadmin/cpanel.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25373
    Brajesh Singh on in reply to: Mediapres & Powerpoint #38238

    Hi Nik,
    Thank you. I am doing a lot better and hoping to get back to the regular work in next couple of days.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25373
    Brajesh Singh on in reply to: added a new -? #38237

    Hi,
    Thank you for the reply.

    You will need to load the translation from MediaPress and then search/translate that specific string.

    If you add it other way, It won’t work. Please give it a try.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25373

    Hi Ryan,
    Thank you for the kind words. I am glad I was able to assist.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25373
    Brajesh Singh on in reply to: Recent Visitors layout issue #38235

    Hi Carsten,
    It seems to me that your theme or you have applied css which are very targeted at specific loop.

    The Recent visitors plugin loads ‘members-loop.php’ from your theme or template pack(for directory page) and if it looks any different from your other directories, most probably the theme has very specific targeting.

    I will suggest exploring the same to see what could be the issue.

    I can check in the free theme but will need couple of days before doing that.

    Regards
    Brajesh