Search Results for 'profile fields'
-
AuthorSearch Results
-
May 18, 2018 at 8:50 pm #273172
In reply to: ERROR: Call to a member function close() on null
ma3ry
ParticipantYes, I think it is the same issue as the one I originally wrote about re XProfile Custom Fields showing an error on my dashboard.
I got the notification on the dashboard first, then I saw that my backups also had problems. I think both are related to the same plugin.
Your solution helped with the dashboard issue. It is no longer showing.
May 18, 2018 at 8:39 pm #273169In reply to: ERROR: Call to a member function close() on null
Venutius
ModeratorI don’t think the changes I’ve made could have caused that, I only updated the version checking which is internal to the plugin and not referenced by other, and I didn’t change any data that was being recorded in the database. If you deactivate xprofile custom fields, does the problem go away?
May 18, 2018 at 8:16 pm #273165In reply to: ERROR: Call to a member function close() on null
ma3ry
ParticipantIs anyone likely to update BuddyPress Xprofile Custom Fields?
May 18, 2018 at 6:22 pm #273158In reply to: ERROR: Call to a member function close() on null
Varun Dubey
ParticipantMay 18, 2018 at 5:03 pm #273153In reply to: Replacement for Xprofile Custom Fields?
Varun Dubey
Participant@ma3ry there is a temp fix for BuddyPress Xprofile Custom Fields Type by @venutius you can check it.
https://wordpress.org/support/topic/warning-breaks-with-bp-3-0/May 17, 2018 at 5:09 am #273084In reply to: Registration not working
Varun Dubey
Participant@mckennapoole checked at your site, You have added custom css to hide mandatory fields
remove it from custom css section
#buddypress .standard-form #profile-details-section { display: none; }After that, it will work
I have registered at your site and it worked
https://drive.google.com/a/wbcomdesigns.com/file/d/1oLVWUD_vFJgHffHu9nXEu2x03MFvsRW5/view?usp=drivesdkMay 16, 2018 at 9:48 am #273044In reply to: members directory
Varun Dubey
ParticipantMay 16, 2018 at 3:14 am #273037In reply to: Adding a ‘label’ to a custom profile page
groston
ParticipantThanks again for the help! This post, https://buddypress.org/support/topic/how-to-customize-the-order-of-fields-of-registration/, led me to the answer: the function bp_get_the_profile_field_name() returns the ‘friendly’ name of the field, i.e., that which is defined in wp-content\plugins\<my-plugin>\include\users\profile.php as the label parameter for the field.
May 14, 2018 at 5:49 am #272976In reply to: Adding a ‘label’ to a custom profile page
Venutius
ModeratorYes that sounds about right, the page is doing a loop printing out the profile fields, so you could add an if statement dependent on the field name.
if ( 'Name' == bp_get_the_profile_field_name() ) { //insert label }May 11, 2018 at 11:13 pm #272940In reply to: Company pages – like Linkedin and FaceBook
RobertL4807
ParticipantHaving this custom build as a post type. Then each posts have hidden fields containing the company info. Custom page theme. Then each post has associated profile IDs. Oh, and then having profile page pull company post info that matches their profile id.
Seems like the only way due to the gap in the current features.May 10, 2018 at 6:54 pm #272905In reply to: Does not show description in the User Profile
Venutius
ModeratorI don’t think I can advise you. BuddyPress does not some built in with a personal description. You can add one, in Dashboard>>Users>>Profile Fields, and it would be displayed during signup and in the users Profile>>View page. However, that’s not the default landing page for a profile, so it looks like your theme is overloading the users profile, and I think your theme developers would be best placed to ask.
May 7, 2018 at 9:42 am #272810In reply to: GDPR compliance
Varun Dubey
Participant@erictracz BuddyPress will also be ready with GDPR compliance in coming updates.
There is an ongoing discussion about it.
https://buddypress.trac.wordpress.org/ticket/7698For 3rd party plugin concern, Site owners are ultimately responsible for the all the plugins they are using at their site, and they also have to understand the functionality of each plugin including their data collection and storage methods before using them.
Regarding 3rd party BuddyPress developers, after BuddyPress GDPR compliance release they can update their plugins to hook all user specific data at BuddyPress option which allow users to delete themselves.
@hdcms You can create a profile fields with terms & condition or take a look at https://wordpress.org/plugins/simple-terms-and-conditions-for-buddypress/ plugin.May 6, 2018 at 3:03 pm #272789In reply to: Age Field two fields
modde
ParticipantThank you, but the problem is, that its displayed like: 24 years, 2 months ago
In German its vor 24 Jahren, 2 Monaten.The birthday should be display like this: 24 years
Or in German: 24 JahreThe solution for me was to install the plugin BuddyPress Xprofile Custom Fields Type.
Its not maintained and got deleted from the plugin site, but it works.Maybe I can add a php code in the custom field of the profile fields?
May 1, 2018 at 11:14 pm #272572Norman Cates
ParticipantThank you.
However, I am using a plugin that sends an email invite to people whoare to become users.
They fill in a simple registration form, then submit it.
And then log in to the website.
At that point, they have access. They haven’t gone through any Buddypress registration forms.
So I can’t hook those actions.
At what point in the user registration process do the xProfile fields get created/populated for a new user. eg. When does the default Name field get populated in the user registration process.
And is there a corresponding action I could hook?
May 1, 2018 at 10:30 pm #272570Norman Cates
ParticipantI’ve tried xprofile_get_field_data using this code:
$args = array( 'field' => 'Nickname' ); $result = xprofile_get_field_data($args); print ("<br><br>"); print ("XProfileData"); print ("<br>"); var_dump($result);But all it does is return “FALSE”
That xprofile field definately exists
Thanks to someone on WPMU dev, I tried this:
$profile_data = BP_XProfile_ProfileData::get_all_for_user( 1 ); echo '<pre>'; print_r($profile_data); echo '</pre>';This returns the Profile fields…
May 1, 2018 at 6:44 am #272551Norman Cates
ParticipantSo I realised looking at this page:
That I have no idea how it’s getting its data.
There’s no arrays or variables being set. There’s these functions:
bp_has_profile()
bp_profile_groups()and so on.
But none of these do any assignments of variables or results.
I suspect my PHP/programming knowledge is way out of date. Because there’s something sophisticated or hidden going on here with those functions that I just don’t understand.
As usual glad to be pointed at background reading…
April 28, 2018 at 10:07 pm #272489In reply to: Alternative to Xprofile
darunia77
ParticipantThanks @venutius.
I’m actually using Paid Memberships Pro plugin for my memberships management and they just recently released a BP integration which takes care of the xprofile fields plugin problem as I was told by one of their tech support. It is better installed when you just create your site as they still have to create syncing issues between their fields and regular old xprofile fields for older members – currently this syncing is not available but will be. So as a result I will have to manually move the data over from the members prior to using their integration (about 200 people but it’s doable) . I’m waiting for the code to be installed on my site by their tech support to do this.
But if anyone is interested, they should check out PMPro for managing bp or other memberships, it really is great and it’s always supported. I am using the Pro version which is expensive per year however you get great tech support and they will go into your site to modify things and help you install various add ons and integrations. This BP integration plugin is available in free version too I believe. If you have a serious memberships site where you do or intent do make money, it’s worth to pay for the yearly fee though for support and access to more add ons.
I’ve tried other membership plugins and just wasn’t working for me.
Hopefully the old xprofile fields plugin can be cloned by someone for those who are not going to use PMpro. It’s odd that there are not many options for this plugin and it’s not supported as it’s very essential.
Here’s PMPro info:
The integration plugin below, you need the above memberships plugin installed though:
April 28, 2018 at 7:23 pm #272481panosa1973
ParticipantYes! bp_get_member_user_id() did the job.
My working code now is://Add fields in the member directory results function add_info_to_members_loop() { global $wpdb; $dateOfBirth = array(); $user_id = bp_get_member_user_id(); $dateOfBirth = $wpdb->get_col("SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 2 AND user_id = $user_id"); $dob = $dateOfBirth[0]; $today = date("Y-m-d"); $diff = date_diff(date_create($dob), date_create($today)); $state = bp_get_member_profile_data( 'field=State' ); echo 'Age '.$diff->format('%y') . ' - In ' . $state; //This will output i.e.: Age 35 - In New York } add_action( 'bp_directory_members_item', 'add_info_to_members_loop' );Thank you @venutius!
April 28, 2018 at 2:01 pm #272467kwavewd
Participantthey don’t help they are so slow. The only requirements are calling the xprofile fields into a template file
April 27, 2018 at 2:13 pm #272446zimou13
Participantadd_action(‘bp_after_profile_edit_content’,’edit_appointment_settings_xprofile’);
// Displays Editable Fields for Appointments+ email and phone
function edit_appointment_settings_xprofile(){
// Only Logged in users can make these edits
$profileuser = wp_get_current_user();?>
<h3><?php _e(“Appointments+ Settings”, ‘appointments’); ?></h3>
<form method=”post” action =” “id=”appointment-edit-form” class=”standard-form”>
<table class=”form-table”>
<tr>
<th><label><?php _e(“My email for A+”, ‘appointments’); ?></label></th>
<td>
<input type=”text” style=”width:25em” name=”app_email” value=”<?php echo get_user_meta( $profileuser->ID, ‘app_email’, true ) ?>” <?php echo $is_readonly ?> />
</td>
</tr>
<tr>
<th><label><?php _e(“My Phone”, ‘appointments’); ?></label></th>
<td>
<input type=”text” style=”width:25em” name=”app_phone” value=”<?php echo get_user_meta( $profileuser->ID, ‘app_phone’, true ) ?>”<?php echo $is_readonly ?> />
</td>
</tr>
<input name=”action” type=”hidden” value=”save_xprofile” />
// Add other fields like location etc .. here if needed</table>
<div class=”submit”>
<input type=”submit” action = “” name=”appointment-edit-form-submit” id=”appointment-edit-form-submit” value=”Save” />
</div>
<?
}April 27, 2018 at 1:12 pm #272443kwavewd
ParticipantSo what you do is create a shortcode similar to what you did for the profile pages but it’s within the appointments+ files. I can adjust the code to create the shortcode USER_PHONEr . Here is an example of custom code for a drop down on profile that was included into email templates
if($r->travel_type==2){
$address=$r->address;
$travel_type=”Photographer Travel to Me”;
} else {
$sql = “SELECT * FROMwppl_friends_locatorwhere member_id=”.$r->worker;$squad=$wpdb->get_results( $sql );
if($squad){
$address=$squad[0]->formatted_address;
}
else{
$address=””;
}
$travel_type=”Travel to Photographer”;
}but instead of all the travel type and address stuff I need to call the xprofile fields database then find id 206 and display that info.
Thank You
April 27, 2018 at 12:18 am #272433kwavewd
ParticipantThank you so much for replying. There is quite a lot of data on the plugin page. I need to display it within a backend email template. I am already able to show xprofile fields on the profile. Any ideas?
April 22, 2018 at 2:35 pm #272333In reply to: 2 quick profile/register questions
Venutius
Moderator1. take a look at this page, it shows the general principles https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/ also you can look at the BP Template Overloader plugin, it’s designed to make this process more accessible.
Basically you create a buddypress directory in your child theme directory and replicate the directory path to the
buddypress/members/register.phpfile.Regarding 2, how did you do that? I’ve not got it as an option, I’m aware there’s plugin that added a TOS checkbox, not seen it done directly from the xProfile fields.
But if you did add it as a xProfile field, BP will by default show it in the profile page if the user has set it to publicly visible.
you might like to check out that plugin, I don’t think it uses xProfile fields: BuddyPress Simple Terms And Conditions
April 22, 2018 at 1:54 pm #272326In reply to: 2 quick profile/register questions
Venutius
Moderator1. One way to achieve this would be to overload the BuddyPress register page and replace the current section that adds the username with code that populates this field from the username field.
2. Not sure about that one, I take it this is being added by a plugin? if it’s creating an xprofile field then by default it will show up in profile, unless set to not be shown by the user. There’s a couple of options I think, either add some code to force this to not be displayed or else overload the profile page and set it up to display the profile fields you want to display.
April 20, 2018 at 9:42 pm #272289In reply to: Creating A Custom Profile Member Page
Jayell12
Participant@vapvarun, I just noticed that when I click on “Settings” it takes me to this page:
http://mobileweb.guru/webdev/crowdwel/members/james/settings/
However, the display is the same as:
http://mobileweb.guru/webdev/crowdwel/members/james
There are no options to edit the profile fields.
-
AuthorSearch Results