Search Results for 'profile fields'
-
Search Results
-
Topic: Buddy press
Displays Editable Fields for Appointments+ email and telephone
work edit_appointment_settings_xprofile(){
/Only Logged in clients can make these alters
$profileuser = wp_get_current_user();
?>
<h3><?php _e(“Appointments+ Settings”, ‘arrangements’); ?></h3>
<form method=”post” activity =” “id=”appointment-alter shape” class=”standard-form”>
<table class=”form-table”>
<tr>
<th><label><?php _e(“My email for A+”, ‘arrangements’); ?></label></th>
<td>
<input type=”text” style=”width:25em” name=”app_email” value=”<?php reverberate get_user_meta( $profileuser->ID, ‘app_email’, genuine ) ?>” <?php resound $is_readonly ?>/>
</td>
</tr>
<tr>
<th><label><?php _e(“My Phone”, ‘arrangements’); ?></label></th>
<td>
<input type=”text” style=”width:25em” name=”app_phone” value=”<?php reverberate get_user_meta( $profileuser->ID, ‘app_phone’, genuine ) ?>”<?php resound $is_readonly ?>/>
</td>
</tr>
<input name=”action” type=”hidden” value=”save_xprofile”/>
/Add different fields like area and so forth .. here if necessary
</table>
<div class=”submit”>
<input type=”submit” activity = “” name=”appointment-alter shape submit” id=”appointment-alter frame submit” value=”Save”/>
</div>
<?
}
Thanks,
Topic: Profile fields
Dear developers, could you add new field type with select2 technologies support? It is modern and useful.
You can learn more from the link:
http://select2.github.io/select2/
Sincerely,
VasilyHi,
is there any way to list all subscriber users with their profile fields?
One user per row. Sth like an excel table.Thanks for any help!
Hi,
I am trying to create a new custom field on a registration page. The field asks for a code from another application and then it checks if the code is registered in a SQL table. The problem is that if that the error message for this field is not formatted the same as for the standard fields.
See this:
https://ibb.co/b2oqkp

I passed the same error message to the username box for comparison. But as you can see the last field (acctivation code) does not format correct, and is not showing red.
This is the code:add_action( 'bp_account_details_fields', 'mcreg_registration_form' ); function mcreg_registration_form() { $acctivationcode = ! empty( $_POST['signup_acctivation'] ) ? intval( $_POST['signup_acctivation'] ) : ''; ?> <div class="editfield signup_acctivation required-field visibility-public field_type_text" id="acctivation-field"> <label for="signup_acctivation"><?php _e( 'Acctivation code ', 'mcregister' ); ?><?php _e( '(required)', 'buddypress' ); ?><br/> </label> <?php /**https://github.com/buddypress/BuddyPress/blob/42837dd8e6e7fa37b1356f7fca6c3d5cded9c164/src/bp-templates/bp-legacy/buddypress/members/register.php * Fires and displays any member registration acctivation code errors. * value="<?php echo esc_attr( $acctivationcode ); ?>" */ do_action( 'bp_signup_acctivation_errors' ); ?> <input type="text" id="signup_acctivation" name="signup_acctivation" value="<?php echo esc_attr( $acctivationcode ); ?>" required /> </div> <?php } function mcreg_bp_registration_acctivation_validate( $errors ){ global $bp; //$error_message_incorrect = __( 'Please check the Acctivation code. It\'s not correct.', 'buddypress' ); $uuid = null; if(!empty($_POST['signup_acctivation'])){ try { $uuid = accode_to_uuid($_POST['signup_acctivation']); } catch (Exception $e) { //TODO: add database error message. $bp->signup->errors['signup_acctivation'] = __( 'Something went wrong when checking acctivation code', 'mcregister' ); } } if ($uuid==null ) { $bp->signup->errors['signup_acctivation'] = __( 'Please check the Acctivation code. It\'s not correct.', 'mcregister' ); $bp->signup->errors['signup_username'] = __( 'Please check the Acctivation code. It\'s not correct.', 'mcregister' ); //$bp->signup->errors['signup_acctivation'] = $error_message_incorrect; return; } $mcname = uuid_to_username($uuid); if(!$mcname==false){ $_POST['signup_username'] = $mcname; } //TODO: find a way to store UUID //$bp->signup->uuid = $uuid;; return; } //bp_signup_validate add_action( 'bp_signup_pre_validate', 'mcreg_bp_registration_acctivation_validate' );I would also like to store the return code (called UUID) in the user profile if the registration is successful so its great if someone know how I can do this.
Last I would also like to hide the username (brukernavn) field as I will fill that problematically when I am doing the test, I am currently just overwriting it.
Thanks,
Greetings!
I just installed BP version 3.1.0 with WooCommerce StoreFront theme on WP 4.9.8 hosted on WPEngine.
When I go to a users profile and click private message, it takes me to the messages tab, but the compose fields do not show. The URL appears to have the proper query string with the users name. Example: compose?r=julesyoga
Could caching be preventing the page from loading perhaps?
Do you know any reason why the page isn’t loading in compose mode and the name isn’t being populated.
site: https://access.julesmitchell.com/
wp version: 4.9.8Thanks so much!
Hi there,
I am using Buddypress to manage quite a lot of x-profile custom fields, organized in multiple tabs.
I’d like to make it easier for the user to update its profile, by doing one of the following adjustment in my Buddypress:A/ save all changes when the user clicks on an other profile tab (instead of displaying the current alert() popup)
– or –
B/ auto-saving any change on-the-go, like when the focus is out of a field.I guess option B is much more complicated as it might involve Ajax, so I’d be happy with option A.
If you have any hint, I’d be very gld to read it!Hi,
Is it possible somehow to sort messages from som fields from extended profiles ?
Lets say, I have a two extend fields
Field 1: Usergender Radio buttuns = “Man or Woman”
Field 2: User Age. Number field.Than I will have the possibilty to sort messages to only show messages from Woman how is 40-50 years.
Is there a plugin or someone that can help my with that ?
If someone want to register as “Member type X” or change their member type, I dont suppose there is a way to have approval on it?
Here is an answer:
Make a custom form for member type (not linked to the actual field), on submission you get a notification, and manually assign members yourself. Easy.====
I ask because I want to use : Content Visibility With BuddyPress Member Types (https://buddydev.com/docs/buddypress-member-types-pro/controlling-content-visibility-buddypress-member-types/ ) with content for x members only. i am using Member Types Pro.Alternatively I was thinking that I would use conditional field : contributor for ‘private profile fields’
Hello folks! I would like to display extended profile fields in the member profile header area.
Would anyone be able to point me in the right direction?
Thanks
AnnaHello everyone! I have updated the user’s profile fields for registration and for new users there is no problem. The problem is with the already signed up users…
I would like to redirect users to edit profile page if some field is empty, and with a kind of alert,even a banner above the edit form section. Thank youI’m using BuddyPress for a members only section of a website. I’ve created some custom profile fields for each member. I need the Member Number field to be converted to a barcode to display in the profile header of the member profile. I have the JS working to generate the barcode but I have to add an id to the Member Number wrapper to make it work correctly.
This is what BuddyPress renders:
<tr class=”field_52 field_member-number optional-field visibility-public field_type_textbox”>
<td class=”label”>Member Number</td>
<td class=”data”><p>cm12345</p></td>
</tr>This is what I need:
<tr class=”field_52 field_member-number optional-field visibility-public field_type_textbox”>
<td class=”label”>Member Number</td>
<td class=”data”><p id=”MemNum”>cm12345</p></td>
</tr>Anyone know how this might be achieved?
I’ve been trying this script but with no luck, not really competent with JS at all.
<script type=”text/javascript”>
$(document).find(‘.field_52 .data’).attr(‘id’, ‘MemNum’);
</script>Any help or suggestions would be greatly appreciated.