Search Results for 'profile fields'
-
Search Results
-
Hey,
there seems to be something not working properly, independent from the theme I am using and with having no plugins activated at all:
When I enter my First and Last Name in the usual User -> Profile Dashboard from WordPress, ervything is fine. Let’s assume I choose a Nickname as well:
First Name: Tom
Last Name: Train
Nickname: TommyIn the Public Name dropdown, I choose ‘Tommy’.
Save it.Now I already have created some additional profile fields, like the gender.
If I change my data there now, from option 1 to option 2, and I save it, and I go back to the first “Profile” tab within the WordPress Dashboard, all my name declarations are gone, except Tommy.Is this a known problem for someone?
Hello guys.
I’m working on creating users based on data from API response and everything is working fine, but I noticed database errors in debug.log, investigated and found it was related to wp_create_user() and bp_core_map_user_registration() conflict. bp_core_map_user_registration() hooked into user_register and is working with xprofile fields and leads to Warning: Undefined property: BP_XProfile_Component::$table_name_data and WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘.
Commenting this action resolved issue.
Any ideas how to fix this? Because 4 WordPress database error for 1 user creation is too much, and one API cycle is creating 100 users on my website..Hi, I need help to find out why “Extended Profile” fields cannot be editted (I think you guys call it “xprofile”).
I can type on the fields normally, but it does not actually save the data after hitting “Update Profile” button.
I’m dealing with this for two days. I already searched online but I cannot find anything useful for this case. I’m afraid I’m out of ideas.
Here’s what I already tried:
The system uses an external mySQL on a VPS server and the WordPress files are hosted in another web server.
I was dealing with lots of “Got an error writing communication packets” found in the error.log of the mysql server. The website seems to work fine despite of that and the lack of extended profile update abillity. This problem seems to be solved after increasing buffer sizes of the mysql server. But I still cannot edit Extended Profile data. It does not work as admin nor as the user.I already disabled every single plugin to check if there is some plugin conflicts.
I already clear the all the caches using LiteSpeed Cache Plugin.
I already increased buffer size on the mysql server and restarted it.The wordpress database seems to be very big and I have a felling that something is wrong with it.
There’s some information on the Chrome Developer Console on the “extended profile” backend:
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks,utils,moxiejs,plupload,jcrop&ver=6.4.1:5 JQMIGRATE: Migrate is installed, version 3.4.1
hello.min.js?ver=2.4.50:1 Uncaught TypeError: Cannot read properties of null (reading ‘classList’)
at HTMLDocument.e (hello.min.js?ver=2.4.50:1:157)
57superpwa-sw.js?2.2.20:80 SuperPWA: Current request is excluded from cache.PS: SuperPWA is already disabled and deleted from this system.
Hi, I have managed to get a xprofile field (checkbox with three options) to be displayed with a count as tabs next to the “all members” tabs. It’s similar to what @danbp hast done and is working in this Post: 2.2 Member Types – Setting user member types during registration (xProfile)
Now I am stuck with the filtering of the members-list according to the Tabs when I click on one of the tabs.
Maybe someone can help me out here.
Here is the code for creating the tabs so far:
Function for getting the child values of my checkbox for each Member
function get_xprofile_child_fields($parent_field_id) { global $wpdb; $child_fields = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}bp_xprofile_fields WHERE parent_id = %d", $parent_field_id ) ); return $child_fields; }
Function to count how many members have the individual options set
function get_xprofile_field_member_count($field_id, $field_value) { global $wpdb; $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = %d AND value LIKE %s", $field_id, '%' . $field_value . '%' ) ); return $count; }
Create the tabs with a counter
function custom_xprofile_child_field_directory_tabs() { $parent_field_id = 28; // Replace with your parent xProfile field ID $child_fields = get_xprofile_child_fields($parent_field_id); $tab_values = array(); // Store unique field values if (!empty($child_fields)) { foreach ($child_fields as $child_field) { $field_id = $child_field->parent_id; $field_value = $child_field->name; // Check if the field value is unique if (!in_array($field_value, $tab_values)) { $tab_values[] = $field_value; $child_count = get_xprofile_field_member_count($field_id, $field_value); // Use a combination of field_id and field_value as the id $tab_id = 'members-' . esc_attr('field_' . sanitize_title($field_value)); ?> <li id="<?php echo $tab_id; ?>"> <a href="<?php echo bp_members_directory_permalink(); ?>"><?php printf( '%s <span>%d</span>', esc_html($field_value), $child_count); ?> </a> </li> <?php } } } } add_action('bp_members_directory_member_types','custom_xprofile_child_field_directory_tabs');
Thanks for any help on this 🙂
Hi there
I have a wordpress v6.3.2 with
> BuddyPress v11.3.2
> ProfileBuilder v3.10.1 (in order to have custom fields during registration)
> Elementor ProI have 2 weird behaviour.
1- Non admin users, can see the admin bar with… MY account when they logged in.
Fortunately, they cannot go in my account.
To avoid that, for the moment i installed a plugin : Hide Admin Bar Based on User Roles2- The non admin accounts go directly in the backoffice when they log in (with the connexion button widget of elementor)
Could you please help me?
Best regards
Topic: View files and pictures
Hello, I would like to know how to consult the files and photos sent by members during their registration which I must approve or not, because in the “registration management” category I see all the profile fields filled except that there are no There are no attached files or images that I can open. How to do ? and where is this stored ?
WP version : 6.3.1
PHP version : 8.0
BP version : 11.3.1
Website : couning.frTopic: xprofile field visibility
I need to access some of the Buddypress custom profile fields for display on another screen. I can get the field data using xprofile_get_field_data but I want to honour the visibility settings.
Is there a Buddypress function which will determine if a user is allowed to see the profile field of the displayed user?
Thanks
Hi,
I created a new custom field in Buddy Press : classement
I would order my list member on this custom field
I understood that I can add a new order type with :function custom_add_members_directory_order_options() { ?> <option value="rang"><?php _e( 'Par rang', 'willy-bp-custom' ); ?></option> <?php } add_action( 'bp_members_directory_order_options', 'custom_add_members_directory_order_options' );
And ordering with this :
add_action( 'bp_pre_user_query', 'custom_pre_user_query', 10, 1 ); function custom_pre_user_query( $user_query = null ) { global $wpdb; $user_query->uid_clauses['orderby'] = 'ORDER BY classement'; // Here is my new fields $user_query->uid_clauses['order'] = 'DESC'; }
But I’m not sur hat the order instruction is correct because the fields’ name isn’t classement is database (cf tables bp_xprofile_date and bp_xprofile_field)
Have you a solution for that please?
Best regardsI’d like to get some of the xprofile fields in the initial WP new user form (for avoidance of doubt that’s this one:
example.com/wp-admin/user-new.php
)The reason is that my admins never complete the new user signup properly, even though they’re redirected to the extended profile page once the new account has been created!
Is it possible?
Thanks
Peter
Topic: Filtering by Xprofile fields
I have a members loop where I am trying to filter by an xprofile field. The codex shows the example that will return members that filled out the xprofile field ‘dogs’ and selected the value ‘poodles’:
<?php if ( bp_has_members( my_custom_ids( 'dogs', 'poodles' ) ) ) : ?>
How would I write something that would give me members that filled out the xprofile field ‘dogs’ and selected ‘poodles’ OR ‘terriers’?
Hello:
When I make modifications in the Profile fields of the Main Panel, the Information entered is not saved immediately, I must wait a few minutes or leave my page (end session) and enter again, just there I see the changes made, this is the same for any information you enter, including photographs. Could someone explain to me what the problem is? I imagine it will be a problem with the Database.Hi,
I have created a file upload type field for the user profile. Please see this screenshot here https://prnt.sc/o6u2KKYNiWxS
But we also need some features as below:-
1. Multi file upload.
2. Max File Upload Size (2 MB)Can we do it with custom code or hook? Or do we need any paid extension?
Thanks
Hi,
I have created a file upload type field for the user profile. Please see this screenshot here https://prnt.sc/o6u2KKYNiWxS
But we also need some features as below:-
1. Multi file upload.
2. Max File Upload Size (2 MB)Can we do it with custom code or hook? Or do we need any paid extension?
Thanks
Topic: vCard
Hi,
Is it possible to allow users to download a vCard of their own and other user’s profiles?
I have seen additional plugins that support this functionality but you can’t have custom fields in them.
Thanks
Hello everyone!!!
I have installed BBPress and BuddyPress.When I only had BBPress, I was able to modify many fields in the BBpress profile, such as.
– First name
– Last name
– Nickname
– Bio
– @username
– Username.Now, I have installed BBPress and BuddyPress, and I can’t find where these fields are to edit them so I can change their values. How can I put these BBPress fields in BuddyPress? Do I need a plugin?
Thanks
The default Account Detail fields on the Registration page are not displaying properly. Any idea on how to fix this so they format the same way as the Profile Details section? You can see the issue on this page: https://staging.shoalmate.life/register/
Hello,
I modified the profile-loop.php file some time ago to hide profile fields that are empty but my code doesn’t work anymore, has any change been done to the code some updates ago ?
Here is what I modified :
<h2 class="screen-heading view-profile-screen"><?php esc_html_e( 'View Profile', 'buddypress' ); ?></h2> <?php bp_nouveau_xprofile_hook( 'before', 'loop_content' ); ?> <?php if ( bp_has_profile('hide_empty_fields=0') ) : ?> <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php if ( bp_profile_group_has_fields() ) : ?> <?php bp_nouveau_xprofile_hook( 'before', 'field_content' ); ?> <div class="bp-widget <?php bp_the_profile_group_slug(); ?>"> <h3 class="screen-heading profile-group-title"> <?php bp_the_profile_group_name(); ?> </h3> <table class="profile-fields bp-tables-user"> <?php while ( bp_profile_fields() ) : bp_the_profile_field('hide_empty_fields=0'); ?> <?php if ( bp_field_has_data() ) : ?> <tr<?php bp_field_css_class(); ?>> <td class="label"><?php bp_the_profile_field_name(); ?></td> <td class="data"><?php bp_the_profile_field_value(); ?></td> </tr> <?php elseif ( !bp_field_has_data() ) : ?> <tr<?php bp_field_css_class(); ?>> <td class="label"><?php bp_the_profile_field_name(); ?></td> <td class="data"><?php bp_the_profile_field_value(); ?></td> </tr> <?php endif; ?> <?php bp_nouveau_xprofile_hook( '', 'field_item' ); ?> <?php endwhile; ?> </table> </div> <?php bp_nouveau_xprofile_hook( 'after', 'field_content' ); ?> <?php endif; ?> <?php endwhile; ?> <?php bp_nouveau_xprofile_hook( '', 'field_buttons' ); ?> <?php endif; ?> <?php bp_nouveau_xprofile_hook( 'after', 'loop_content' );
Can someone help me to hode those fields again please 🙂