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

    Hi Sujee,
    You can disable member type to role mapping or vice versa.

    To disable, Please visit each member type and uncheck the associated role. In that case, changing the member type will not update role(s).

    Also, if you have role to member Type mapping set in the settings page, you may disable that if you do not want the member type to change based on the role change.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Carsten,
    Thank you.
    1. The conditional profile field is not tested with Xprofile Custom Field types. I do hope to test it in next couple of weeks and add the compatibility wherever needed.

    2. Gender is a field that I would love to have. The problem with Gender is that it needs to be implemented in a way where the listing of users by gender should be fast.

    In my personal opinion, instead of the normal field, member type suits this much better. The exclusion/inclusion by member type is much more efficient than the normal data field.
    In the long run, I plan to add the following field types
    – Gender
    – Country
    – Location/Map
    – Member Types( by consolidating my other plugin into it)’
    – Roles
    – Groups(single/multi, I am still not sure how much useful this will be)

    I won’t be able to work much on Xprofile Field Type for next one week. Hoping to add the Profile search compatibility first and then these field in next 2 weeks.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    HiSam,
    Thank you for posting. It has got delayed due to BuddyPress 3.0 release. It will be available early next week.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Keith,
    You may remove the code after upgrading to 1.0.1

    BuddyPress Xprofile Custom Field Types 1.0.1 is available and it provides you an option on the Admin edit field page to show/hide month.

    Best Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Carsten,
    Please upgrade to 1.0.1

    The field type From/To is available now. Also, you can show/hide months with the Date of birth/Age field.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    You are welcome 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Colin Lau,
    Thank you for asking.

    The plugin does not provide it out of the box and the order is controlled by BuddyPress.

    It i still possible to reorder the list. You can use the following functions.

    
    
    /**
     * Comparator function.
     *
     * @param Object $mtype_1 member type 1.
     * @param Object $mtype_2 member type 2.
     *
     * @return int
     */
    function buddydev_member_type_comparator( $mtype_1, $mtype_2 ) {
    	// compare by member type unique name(key).
    	return strcmp( $mtype_1->name, $mtype_2->name );
    
    	// compare by labels instead. to use it, comment the previous line using // and uncomment the line below.
    	// return strcmp( $mtype_1->labels['singular_name'], $mtype_2->labels['singular_name'] );
    }
    
    /**
     * Filter Member Types and sort.
     *
     * @param array $member_types member type names or objects array.
     *
     * @return mixed
     */
    function buddydev_reorder_member_types( $member_types ) {
    
    	if ( empty( $member_types ) ) {
    		return $member_types;
    	}
    
    	// sort it.
    	uasort( $member_types, 'buddydev_member_type_comparator' );
    
    	return $member_types;
    }
    
    add_filter( 'bp_get_member_types', 'buddydev_reorder_member_types' );
    

    In the above example, I am ordering alphabetically by key.

    In order to order by label, you can uncomment and comment the line as mentioned in the comparator function.

    Hope this helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Bo,
    I will share my thoughts too.

    1. Individual or Organisation account type :- Yes, easily doable with member types.
    2.

    Also having this option available i wanted to ask if there was a way that esist to have a filter order where users can filter membership types in the member url

    I am not sure I understand the question.

    1. If you want the member type to be part of the individual user’s url like (http://example.com/%5Bmembers%5D/member_type_name/username

    Then sorry, at the moment, BuddyPress will not allow that. Whether it is company or the user, the both will have the directory slug in their url.

    A way to handle this(I will not recommend on multisite) is using BP_ENABLE_ROOT_PROFILES where the single user url becomes like sitename.com/username

    If you are thinking about collection of users, then yes, we do have different directory urls for each member type

    3. Distributing questions based on member type:- Using the conditional profile field plugin can do the trick. I will still suggest that you keep it to the minimum. Also, At the moment, the conditional profile field plugin works with our member types plugin only if you have enabled the select view for the field(select dropdown and not checkbox/radio)

    4.

    As the reason also is I want this membership types to be what will also give options to varieties of of custom namings that would be displayed front end in the managed sub sites.

    I am sorry, but I am unable to understand this part. If you are asking whether member tyeps can be used on the network or not then the answer depends on your BuddyPress setup.

    If BuddyPress is network active and member types pro is network active, you can have it on all sites.

    Also, about member type being the first step, I believe you will need to custom code the registration.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Thank you Ravi.

    In future, I am adding the option in the field settings to ask the admins if they want to show the month or not. That way, It will be much simpler.

    Bets regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: message privacy plugin #15456

    Hi David,
    Thank you for asking.

    It has very limited control from admin side currently. Also, It can not determine a premium user, do we need to do that based on role?

    Since BuddyPress 3.0 Nouveau template broke this plugin(only if you are using Nouveau template pack) and after the report, BuddyPress team has fixed the issue, the plugin will work with Nouveau template in next release of the BuddyPress.

    We are also planning a release to coincide, so we will be happy to have this feature.

    Thank you
    Brajesh