Can anyone tell me how to convert DOB to Age without using the bp xprofile fields plugin.
I have found several snippets to add to functions.php but none work for me.
Thank you.
my Website : http://www.rajyaseva.com
i have registration link in menu which leads to http://www.rajyaseva.com/register/
the page opens very properly but afte user fills up the form and clicks on register butten.
the massage popps up saying there has been critical error on your website.
buddypress version 6.3.0
Note that user gets registered on website but the extendend profile fields that he filled up while registering are not recorded and they apear blank upon login.
It is possible but not recommended. BuddyPress already has member profile fields. You should use that and it is internally supporpted by buddypress, just make sure you enable the “auto-link” in the profile field while editing the profile field.
If you are open on exploring, the WPLMS theme has members directories built on react and they are well connected with BuddyPress profile fields, example : https://demos.wplms.io/members-directory/
Hi this all started when I couldn’t upload a member profile image – the upload link wouldn’t open.
I contacted the 3rd party developer -I’ve deleted a plugin that was no longer supported and replaced it with a Buddy Press replacement: https://wordpress.org/plugins/bp-xprofile-custom-field-types/
This is the error I’m getting and it’s causing an ERROR RENDERING FILE.
Pagely my server have reinstated access to the dashboard and deactivated the plugin.
***here is the error info from them:
—–
“Hey Judy,
The buddypress-xprofile-custom-fields-type plugin was reporting the following php error:
[14-Sep-2020 07:42:15 UTC] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /dom6056/wp-content/plugins/buddypress-xprofile-custom-fields-type/bp-xprofile-custom-fields-type.php:155
Stack trace:
#0 /wordpress-5.5.1/wp-includes/class-wp-hook.php(287): Bxcft_Plugin->admin_init(”)
#1 /wordpress-5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#2 /wordpress-5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /wordpress-5.5.1/wp-admin/admin.php(175): do_action(‘admin_init’)
#4 /wordpress-5.5.1/wp-admin/index.php(10): require_once(‘/wordpress-5.5….’)
#5 {main}
thrown in /dom6056/wp-content/plugins/buddypress-xprofile-custom-fields-type/bp-xprofile-custom-fields-type.php on line 155
I went ahead and commented out line 155 of the plugin file wp-content/plugins/buddypress-xprofile-custom-fields-type/bp-xprofile-custom-fields-type.php
//$notices[] = __(‘BuddyPress Xprofile Custom Fields Type plugin needs <b>BuddyPress 2.5</b>, please install or upgrade BuddyPress.’, ‘bxcft’);
This seems to allow the dashboard to load but you will want to get in touch with the plugin developer for any additional information or consider looking into replacing the plugin.”
——
I’d like to attach a screenshot of the relevant plugins but can’t see how to do that???
Thanks
Judy
Hi,
i’m trying to display the extra profile fields data (i created) in my profile page to my friends profiles overview.
i already displayed it on the members page overview (with a snippet of code from the support forum).
here are two pictures to make it more clear:
Profile data on members page:
https://intranet.cabeje.han-solo.net/all-members-page.jpg
Missing Data on friends members page in my profile:
https://intranet.cabeje.han-solo.net/my-freinds.jpg
This is the code i used for displaying it on members page (stored in bp-custom.php):
function my_directory() {
if ( bp_is_active( ‘xprofile’ ) )
if ( $membertel = xprofile_get_field_data( ‘telefon’, bp_get_member_user_id() ) ) :
echo ‘<div class=”telefon”>’;
echo “Telefon: ” . $membertel;
echo ‘</div>’;
endif;
if ( $membermobil = xprofile_get_field_data( ‘mobil’, bp_get_member_user_id() ) ) :
echo ‘<div class=”mobil”>’;
echo “Mobil: ” . $membertel;
echo ‘</div>’;
endif;
if ( $memberfb = xprofile_get_field_data( ‘fachbereich’, bp_get_member_user_id() ) ) :
echo ‘<div class=”fachbereich”>’;
echo “Fachbereich: ” . $membermobil;
echo ‘</div>’;
endif;
if ( $membereinrichtung = xprofile_get_field_data( ‘einrichtung’, bp_get_member_user_id() ) ) :
echo ‘<div class=”einrichtung”>’;
echo “Einrichtung: ” . $membereinrichtung;
echo ‘</div>’;
endif;
if ( $memberbegleitende_dienste = xprofile_get_field_data( ‘begleitende_dienste’, bp_get_member_user_id() ) ) :
echo ‘<div class=”begleitende_dienste”>’;
echo “Begleitende Dienste: ” . $memberbegleitende_dienste;
echo ‘</div>’;
endif;
}
add_filter ( ‘bp_directory_members_item’, ‘my_directory’ );
Any Help would be great…
Thanks!
Hi!
i’m wondering why there isn’t shown any content of a member profiel on the members page?
https://intranet.cabeje.han-solo.net/member-profile-info.jpg
There is a div with the class .item-extra-content, but it is empty.
I created several individual profile fields (e.g. departments and phone numbers) which i would like to be seen in the overview of the members page.
Is this possible?
Thanks!
I have forgotten where a particular page is in Buddypress. When you first register, you fill out the required and optional profile fields. You also get to choose a visibility to assign to each profile field. Where do I go to edit the visibility choices that were originally made? Thanks.
I’m assuming you’ve tried the basic troubleshooting in https://buddypress.org/support/topic/when-asking-for-support-2/
It really depends how your database skills are, you can have a look in the YOURTABLENAME_bp_xprofile_fields table to see if these fields are duplicated there.
You could then search the YOURTABLENAME_bp_xprofile_data table to find which of these isn’t in use and delete.
You’ll want to backup everything first obviously before making any changes.
Hi,
I have the problem, that somehow user profile fields got dublicated and I am not able to delete them.
Thats how it looks. The marked fields are unnecessary and should be deleted.
Screenshot
https://ibb.co/Bts0V18
How can I manage to do that? Thanks.
In my BuddyPress Members page, under each Member’s name, there is a line like:
active 8 seconds ago
I want to disable it.
Also I want to disable the green tick on the profile picture (which shows the online status)
Also I want to show the profile fields under each name in members page, it is just showing Name by default, I want it ti show other profile fields.
In my Buddypress Profile Fields there is the field “Name”.
It is mandatory and I cannot change the settings of it.
How can I change the privacy settings to “optional” and change the privacy settings like
“visible only to my friends”, “public” or “only for me”?
That doesn’t appear to address the issue. I want to be able to assign them to a particular role (User Role Editor), in this case, I created one called “Community Outreach Coordinator” and I simply want them to have permissions to edit user and extended profile fields.
Kevin
I need to add a default value in some extended profile fields in buddypress registration form so this data is not repeated.
I have seen that I have to use the variable xprofile_set_field_data() but I don’t know exactly in which .php file to implement it and what code to put
In that section, any fields under Base (Primary) will appear on the reg form.
Click Add New Field Group and put your profile fields in that Group and they will not appear on the reg form.
Hello,
I created some fields in the users -> profile fields section, the problem is that all those fields that I created appears in the registration form and I don’ want that, I want that the user fill those fields after the registration directly in his profile page if he wants to.
Is there another option that making those fields optional and disabling their visibilities with the css in the registration form ?
thank you for your help
I want to create a simple Marriage Bureau Site in which people (who want to find partner) will fill a registration form to submit heir profile (the form will have extended fields). These profiles will then will searchable using the filters of the fields in the form. And I want to use more filters to search like Color, Education, Age, City, etc…
Now Please help how can I achieve this in buddypress, which themes? which plugins? etc
I get the errors while enabling/disabling the components, I’m using the Buddypress newest version: 6.1.0
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_activity CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_activity_meta CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_invitations CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_notifications CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_notifications_meta CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_friends CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_groups CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_groups_members CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_groups_groupmeta CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_messages_messages CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_messages_recipients CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_messages_notices CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_messages_meta CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_xprofile_groups CHANGE COLUMN <code>id</code> id bigint(20) unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_xprofile_fields CHANGE COLUMN <code>id</code> id bigint(20) unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_xprofile_data CHANGE COLUMN <code>id</code> id bigint(20) unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_xprofile_meta CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_user_blogs CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
WordPress database error: [Multiple primary key defined]
ALTER TABLE wp_bp_user_blogs_blogmeta CHANGE COLUMN <code>id</code> id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/workspace/wordpress/wp-includes/wp-db.php:1491) in /home/xxx/workspace/wordpress/wp-includes/pluggable.php on line 1281
Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/workspace/wordpress/wp-includes/wp-db.php:1491) in /home/xxx/workspace/wordpress/wp-includes/pluggable.php on line 1284
I see now. From looking at the plugin code it could use some cleaning up, although its still fine to use.
If you’d like to have more control, and you know how to code, you could override the buddypress/members/single/profile/profile-loop.php (in BP Nouveau) and create a loop with tabs instead.
It should be easily doable with js modifications or using pure CSS using radio inputs.
Here’s an example – use the js from something like https://codepen.io/liav80/pen/KzpWzy and alter the loop in profile-loop.php (as an example) to be
<?php if ( bp_has_profile() ) : ?>
<div id="wrapper">
<?php
while ( bp_profile_groups() ) :
bp_the_profile_group();
?>
<?php if ( bp_profile_group_has_fields() ) : ?>
<?php bp_nouveau_xprofile_hook( 'before', 'field_content' ); ?>
<?php
while ( bp_profile_fields() ) :
bp_the_profile_field();
?>
<?php if ( bp_field_has_data() ) : ?>
<div data-tabname="<?php bp_the_profile_field_name(); ?>">
<div class="tabs-inner"><?php bp_the_profile_field_value(); ?></div>
</div>
<?php endif; ?>
<?php bp_nouveau_xprofile_hook( '', 'field_item' ); ?>
<?php endwhile; ?>
<?php bp_nouveau_xprofile_hook( 'after', 'field_content' ); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php bp_nouveau_xprofile_hook( '', 'field_buttons' ); ?>
</div>
<?php endif; ?>
It should give you a start to change things from there.
I have a plugin for LDAP/AD integration on my site that maps to the user’s buddypress profile fields including profile picture. The profile picture shows up on the profile page, directory, forum. It even shows up on the membership list in groups. However, it doesn’t show up for the administrators of the group listed above the group name or on the invite page. We are using the Woffice theme, which buddypress is integrated with. Any suggestions are greatly appreciated.
Could you elaborate? Currently this is an already built in function in Buddypress.
Go to your wordpress dashboard followed by clicking on Users > Profile fields > click on the button called “Add new field group” and you got a new tab you can fill out with profile fields.
I figured it out I had the if required fields go to page checked in Profile Builder Tools checked. But this users required fields were all okay, but it checks all the fields regardless of roll so I can’t use that. Thank you for replying.
Thanks. I’m not using the Friends module, and I’m not finding an issue with the private messaging returning results. It’s just the full range of profile fields being searched, I think, that’s causing the problem with too broad a search result.
I am happy to write some custom code. Has anyone got some pointers on where to start?
Thanks.
Hi all,
Each member’s home page is currently empty at “siteurl/members/namemember” and the fields entered by users appear on their profile page at “siteurl/members/namemember/profile”
I do not understand what this home page member is useful for ? Because currently this members home page does not provide any information, so I try not to display it …
Perhaps other informations or fields should appear on each member’s home page when Buddy Press is used more fully?
Thanks 🙂
Thanks. I have to say, this seems like an oversight considering how unintuitive it was to find the Extended fields and then for tabs to be present on the Extended profile page but not on the primary profile page. I can appreciate the work that would go into this, I am just surprised I’m in the minority bringing this up and a ready made solution isn’t available/built into the core.
Thanks again.
I am relatively new to using BuddyPress but have spent a lot of time trying to find an answer to my question and I am at a total loss.
I have created several xProfile fields under Users > Profile Fields but none of them display on the WP User profile (Admin Dashboard > Users > Edit or user-edit.php) for any given user.
Fields:
Name, Profession, Phone, Email, Address, Date of Birth, Emergency Contact Name, Emergency Contact Phone
Ideally these fields would be displayed on the WP User profile with a header such as Personal Information.