Forum Replies Created
-
AuthorPosts
-
March 26, 2024 at 12:05 pm in reply to: How to show BP Xprofile fields in user results – Part 2 #47585
Triner
ParticipantAlright, thank you.
March 26, 2024 at 11:49 am in reply to: How to show BP Xprofile fields in user results – Part 2 #47583Triner
ParticipantHmm, 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; }March 22, 2024 at 8:15 am in reply to: How to show BP Xprofile fields in user results – Part 2 #47530Triner
ParticipantHi 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.
March 20, 2024 at 3:35 pm in reply to: How to show BP Xprofile fields in user results – Part 2 #47488Triner
ParticipantYou cannot access this content.
Triner
ParticipantYou cannot access this content.
Triner
ParticipantYou cannot access this content.
Triner
ParticipantGreat! Made my day! 😉
Triner
ParticipantYou cannot access this content.
Triner
ParticipantYou cannot access this content.
Triner
ParticipantYep, that snippet in place prevents the error message and the search can display the results again. However, they are now displayed in the original language.
I looked at the XHR response via the browser console. As you said, Weglot translates them and in doing so, it seems to misplace an apostrophe in my case. A corrective translation rule in Weglot seems to me to be the most promising solution too, however I cannot find this XHR response in the translation table in my Weglot dashboard. I will contact Weglot support with this information.
Thank you very much for your support.
Triner
ParticipantThanks for your feedback, Ernest.
It is true that Weglot translates “on the fly” and the translations are not stored locally but on Weglot’s servers.
Actually, I have not enabled the translation of the search queries. Could possibly the approach described here, excluding Ajax actions for translation, help? If so, do you have any idea what I would need to specify as the value of the $ajax_action[] array?
Triner
ParticipantYou cannot access this content.
Triner
ParticipantYou cannot access this content.
-
AuthorPosts