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

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

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

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

    You are welcome 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

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

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

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

  • Keymaster
    (BuddyDev Team)
    Posts: 25472
    Brajesh Singh on in reply to: Site Title Not Shown in Community Builder #15455

    Hi Ethan,
    Thank you for using Community Builder.

    The site name/tagline are not only for visual options they have other significance(being used in site title etc).

    In case of Community Builder, we use the sitename as a fallback when the logo is not available. When the site logo is available, we do not need the site name.

    As of tagline, We do not use it at all in the theme. This is by design. If you keep the tagline, SEO plugin can accommodate it in your site title.

    If you do want the tagline to be visible, point me whre you would like and I can easily help with that.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472
    Brajesh Singh on in reply to: [Resolved] Remove All Members Option #15450

    Thank you Sujee.