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: 25400
    Brajesh Singh on in reply to: Rename Wall Photo Gallery (2) #9883

    Hi Francoise,
    Thank you for asking.

    Do you want to rename for groups only or for all user/groups wall gallery.

    If you want to change it for all user/groups gallery, you can simply put a translation for “Wall %s Gallery”

    If that is not the case, Please do let me know.

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    Marking it as resolved.

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    Hi MargaritaS,
    Thank you. Please allow me a few more days to get back to you with all of the three.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: [Resolved] BP Force Profile Photo #9878

    Thank you too.

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: BuddyPress Message Privacy help #9877

    Hi DW,
    I am sorry but I am a little bit confused here.
    In the plugin we are using user login as the identifier.

    Can you please tell me what are two types of username? Are you referring to the full name field? Or am I missing something here?

    If possible, Please link me a to a screenshot.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    Hi Ryan,
    Have issued the refund.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    Thank you.
    On the directory page, BuddyPress already ads the class like “member-type-{$member_type_name}” e.g member-type-student etc to the list item class.

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    Please put this in your bp-custom.php

    
    
    /**
     * Inject classes to body based on displayed user's member types.
     *
     * @param array $classes array of css classes.
     *
     * @return array
     */
    function buddydev_add_membertype_to_body_class( $classes = array() ) {
    
    	if ( ! bp_is_user() ) {
    		return $classes;
    	}
    
    	$member_types = bp_get_member_type( bp_displayed_user_id(), false );
    
    	if ( ! $member_types ) {
    		return $classes;
    	}
    
    	foreach ( $member_types as $member_type ) {
    		$classes[] = 'member-type-' . $member_type; // member-type-student etc.
    	}
    
    	return $classes;
    }
    
    add_filter( 'bp_get_the_body_class', 'buddydev_add_membertype_to_body_class' );
    
    

    Now the pages for displayed users will have the class “-member-type-student”(Last part is the actual name of the member type) applied to body.

    You can do the color changes etc bade on that.

    PS: I will be including it in next update of member types pro plugin too.

    Hope that helps.
    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    Hi Thorsten,
    Thank you.

    I will keep that in mind when promising any update.

    MediaPress will come this week.

    Going for the update without admin option will take 1 day. going for an update with admin option will need proper planning and I can only commit by the end of next week.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400

    Thank you for the kind words Gary 🙂
    Glad it is working .

    Regards
    Brajesh