How to show BP Xprofile fields in user results – Part 2

Home Forums Product Support Forums Ajax Search Pro for WordPress Support How to show BP Xprofile fields in user results – Part 2

This topic contains 9 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 5 months, 1 week ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #47432
    Triner
    Triner
    Participant

    Update for ticket https://wp-dreams.com/forums/topic/how-to-show-bp-xprofile-fields-in-user-results/

    Unfortunately the adjusted snippet did not help. With this snippet and with the plugin version 4.26.7 installed, the contents of the XProfile fields are still not displayed. So, I rolled back to version 4.26.2 again.

    May I ask you to take another look at this?

    #47449
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Can you add temporary FTP and back-end access? I can try to debug it if you want to.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #47488
    Triner
    Triner
    Participant
    You cannot access this content.
    #47515
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #47530
    Triner
    Triner
    Participant

    Hi Ernest

    I just retested the credentials with Cyberduck and FileZilla. It should work. But you have to make sure, that you use port 21 and an unencrypted connection. If you use FileZilla you can force this parameters via the Site Manager.

    • This reply was modified 5 months, 1 week ago by Triner .
    #47557
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Thanks!

    I was using the IP address, that didn’t work, now it’s fine. I managed to find the problem and fixed it. This was a yet unknown issue, so I will make sure to fix it in the upcoming release.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #47583
    Triner
    Triner
    Participant

    Hmm, you’re right, it looks like the IP has changed. Sorry!
    Great news, thank you! Do I still need the custom snippet with the latest version of the plugin? If so, can I leave it as it is at the moment?

    add_filter('asp_user_advanced_field_value', 'asp_xprofile_user_advanced_field_value', 10, 3);
    function asp_xprofile_user_advanced_field_value($value, $field, $user) {
    	
    	if ( empty($value) ) {
            global $bp;
           
            $args = array(
    			'field'   => $field,
    			'user_id' => $user->id
    		);
    		$data = bp_get_profile_field_data($args);
    
    		if ( !empty($data) ) {
    			 var_dump($data);
    			return $data;
    		}
        }
        
        return $value;
    }
    #47584
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Yes – please keep that custom snippet, it should work from now on.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #47585
    Triner
    Triner
    Participant

    Alright, thank you.

    #47586
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    You are welcome.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.