Search Results for 'profile fields'
-
Search Results
-
Hello everyone, I hope you are well.
I come to you because I have a problem with a sql query.To put you in context, I’m trying to make a custom members loop based on the values of the extended profile fields of the members.
For that I used the codex and in this one they show how to create a function “my_custom_ids” which allows to recover the ids of all the users who put the same value in ONE field.
I decided to modify this function to be able to retrieve the ids of the users having SEVERAL values of fields in common.
Here is the SQL query present in the basic function “my_custom_ids” :
$query = “SELECT user_id FROM ” . $wpdb->prefix . “bp_xprofile_data WHERE field_id = ” . $field_id;
$query .= ” AND value = ‘” . $field_value . “‘”;Here is my SQL query in my custom “my_custom_ids” function :
$query = ‘SELECT user_id FROM ‘ . $wpdb->prefix . ‘bp_xprofile_data WHERE (field_id = ‘ . $users_gender_form_id. ‘ AND value = “Female”) AND (field_id = ‘ . $users_hair_color_form_id. ‘ AND value = “Blonde”)’;I do not know if it’s clear but I’m trying to retrieve the ids of users who select the “female” value in the extended profile field “gender” and the value “blonde” in the extended prodile field “hair color “.
But of course it does not work ! haha
When I separate my sql query in two:
$query = ‘SELECT user_id FROM ‘ . $wpdb->prefix . ‘bp_xprofile_data WHERE (field_id = ‘ . $users_gender_form_id. ‘ AND value = “Female”)’;or :
$query = ‘SELECT user_id FROM ‘ . $wpdb->prefix . ‘bp_xprofile_data WHERE (field_id = ‘ . $users_hair_color_form_id. ‘ AND value = “Blonde”)’;
it works. I do not know why when I combine the two it does not work… If you have any leads to give me I would be greatly grateful !
Thank you very much, have a good day !
(I use WordPress 5.2.2 and Buddypress 4.4.0)
Some time ago I updated the buddypress component, and now the member profile pages come out wrong.
The information I earlier had in this pages is listed as a separate column under the cryptic heading “View Base”, while a number of entries have been added on the left hand side “Profile, Groups, Docs”
I want to remove all of this except the personal data fields. How do I do this?
I want to remove “View Base” and “Profile, Groups 3, Docs” in all profiles like this: http://gamephilosophy.org/members/margarita/
Hope someone can give me a tip..
Hey Guys,
Im trying to disable kses —
Im the only one that will have access to adding profiles so Im pretty safe.Hi i want some help that i want to make profile fields city dropdown which is that at the time of registration as a buddypress member when user select a country from country dropdown then against that country cities want to appear in city dropdown to select please help Thank You !
Topic: Sucuri and admin-ajax.php
I have an issue where I have https://sucuri.net locking down the wp-admin interface for security purposes to specific IP addresses.
The BuddyPress plugin profile and cover image upload fields, on the profile page, appear to be using the wp-admin/admin-ajax.php file to upload images to the site. I also have users who log into the site, but only on the front-end of the site. They do not have access to the admin section. These users are not able to upload images since the admin section is locked down.
One thinking I noticed was that if I disable javascript in my browser for the profile photo upload screen the UI falls back to a PHP based upload mechanism. Is there a way to make the PHP method the default for all forms in BuddyPress so that I don’t have to unlock my admin interface?
Thank you for any help.
Hey Guys,
Im in the PROFILE FIELDS section and there are a few profile fields that cant be deleted.. strangely.. my other nearly identical BP/WP install do not have this problem.
Im trying to delete.. “LAST NAME” text profile field — I didnt add that profile field.
Any ideas?
Thanks in advanceTopic: Security and privacy issue
I got a client who has a site with BuddyPress installed, it has about 2500 users registered, and who made the website created a field with sensible information with “Profile fields” and left its visibility as “Public”, now everyone has access to those informations. Is there a way to change every registered user’s visibility in that field? I will consider even SQL queries, or any database info about it. Thanks a lot!
Topic: How to remove fields
Hello,
I want to remove fields such as visibilty settings tab and under profile “view profile” tab
How can i do this?
Thank you for your time !
Topic: Pre populate Profile fields
Hi, I have Bbpress X profile fields in my site. I want to prepopulate some of the fields such as Email, First name, Last name from the users data. How can I achieve that?
Thank you.Can you help-me with this problem, please?
This is in portuguese
This is the link to the print
https://photos.app.goo.gl/7g6kLiWrC9kdy28bA“There was an error saving the group. Try again.”
“You have no groups.”I’m trying to create profile field, and I do not have any profile fields
Hi all!
I’m creating a site with profile fields which can have up to 40000 options. I already loaded the options into the db via csv file. Now, the site loads very slowly and is basically unusable. Once loaded, everything works fine, including the profile search. How can I prevend Buddypress from loading all options for this field by default?
I’m using select2 multiselect fields, which can load small chunks of data via AJAX/PHP. I now just need to prevend loading the field when the site loads. I’m grateful for any hint!
Hello! Thank you!! Now I am working with another server and now if I see the registration page without problems
What I want to do is the following: I want on my page that the moment a new user registers, it is entered in the fields that in the simple selection questions: A and B (which are profile field of Buddypress), if the person has more than 50% of questions A or questions B, this user will be of a specific type or group (for example: Group A or Group B)
I was checking online and I think there is little content regarding this
Thank you!!