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: 25348
    Brajesh Singh on in reply to: Custom values multiple selection box #26721

    Hi Jennifer,

    No, Not that.

    I was referring to this.

    1. Keep the values in array e.g $val = array(“OPT1”, “OPT2”);
    2. Then serializing it using something like this $serialized = maybe_searialize($val).

    Then you can store that value.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Password reset not sent when using BP Branded Login #26708

    Hi Jon,
    Hope you are doing well.

    I have tested this functionality and it seems to be working fine foe me.

    Can you please link me to the site using private reply. I can quickly check it there.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Custom values multiple selection box #26705

    Hi Jennifer,
    The multi option values are stored as serialized value. Can you please check from your import that the field id has data in serialised form? Also, to be editable(selected on edit page, they will be case sensitive).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: [Resolved] Activity Autoloader – mobile? #26703

    You are welcome.

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: [Resolved] Branded Login 'get new password' issue #26702

    Hi Ralf,
    Thank you. This is fine for now. I believe we need to add better compatibility with Nouveau.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Branded Login mail adjustment #26701

    Hi Ralf,
    Thank you for sharing the details.
    I believe that we should provide a settings for it then(the subject/message) in the admin. That will resolve it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Importing CSV data in to Xprofile Custom Field types #26700

    Hi Scot,

    You will need a plugin that allows importing BuddyPress User Profile data. You do not need anything specific to custom field types plugin.

    I do not see any viable solution available currently, if you have found any importer, please feel free to use.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: BuddyPress Moderation Tools support #26699

    Hi Tosin,
    Thank you. I have been planning to solve this in efficient way and I am implemnting it in next update.

    We will have a filter for the same.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: BuddyPress Moderation Tools support #26692

    Hi Tosin,
    I am sorry for the delayed reply.

    There was abug in the code. In the abov code I was using in_array for checking and doing a strict check(checkes for type and value both).

    The value passed did not match the type an dthat’s why it was not working.

    Here is the update code.

    
    // BuddyPress Moderation Tools: White list specific user's content from moderation.
    add_filter( 'bpmts_is_user_whitelisted', function ( $is, $user_id ) {
    	$white_listed_users = array( 284, 37845, 4578, 2357 );
    	if ( in_array( $user_id, $white_listed_users ) ) {
    		$is = true;
    	}
    
    	return $is;
    }, 10, 2 );
    
    // BuddyPress Moderation Tools: Do not allow white listed user's profile to be reported.
    add_filter( 'bpmts_is_item_reportable', function ( $is, $item_type, $item_id ) {
    	if ( 'user' !== $item_type ) {
    		return $is;
    	}
    
    	$white_listed_users = array( 284, 37845, 4578, 2357 );
    	if ( in_array( $item_id, $white_listed_users ) ) {
    		$is = false;
    	}
    
    	return $is;
    }, 10, 3 );
    
    

    It will work now.

    Regards
    Brajesh