Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 626 through 650 (of 5,755 total)
  • Author
    Search Results
  • #275954

    Topic: Buddy press

    in group forum Installing BuddyPress
    andru96
    Participant

    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,

    Redbox tv for androidbox.

    Prashant Singh
    Participant

    It will be custom work. You can add this code snippet in your child theme’s functions.php to achieve this:

    add_filter('bp_core_signup_send_validation_email_message','ps_user_data_to_email',10,2);
    function ps_user_data_to_email( $msg, $user_id )
    {
      $user = get_user_by( 'id', $user_id );
      if(!empty($user))
        $data1 =  xprofile_get_field_data('your_first_field_name',$user->ID);
        echo 'Your Profile Field Name'. ' : '.$data1;
        $data2 =  xprofile_get_field_data('your_second_field_name',$user->ID);
        echo 'Your Profile Field Name'. ' : '.$data2;
    }

    You can do this for all the profile fields by just repeating the code to get data3 data4 like I did for data1 data2 and obviously you have to use your profile fields name in place of ‘your_first_field_name’, ‘your_second_field_name’ and ‘Your Profile Field Name’.

    Thanks

    #275917

    In reply to: Profile fields

    Prashant Singh
    Participant

    Please check this plugin https://wordpress.org/plugins/bp-xprofile-custom-field-types/.

    They are already adding profile fields with select2 js support, mentioned in the features as well.

    Thanks

    #275912
    basil-student
    Participant

    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,
    Vasily

    Lars Henriksen
    Participant

    Thanks for answering, but there are no tokens for custom xprofile fields?

    #275803
    Prashant Singh
    Participant

    Hi,

    It’s just a style issue. Please paste the following CSS:

    .profile .profile-fields td.label {
    background: #f5f5f5;
    color: #707070;
    }

    Hopefully, it will fix your problem.

    Thanks

    #275784
    Prashant Singh
    Participant

    Hello,

    Please check with this plugin https://github.com/wbcomdesigns/bp-modify-member-directory-header once if it is working fine for you or not.

    You can follow this thread https://buddypress.org/support/topic/adding-profile-fields-to-members-directory/ as well.

    Thanks

    billysgtr
    Participant

    Hi,

    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!

    #275659
    erik1988
    Participant

    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
    image

    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,

    #275630
    keyadigital
    Participant

    I’m having perhaps a related issue with messages. When I switch to the old theme the messages work fine. Here is my original post:

    _______________________
    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.8

    Thanks so much!

    keyadigital
    Participant

    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.8

    Thanks so much!

    #275481
    roseannec
    Participant

    Thank you @shanebp. I had a look at those examples and think that should be ok. One other question. What is the database table structure for this? Is there a separate database table for groups? I presume that the individual member data is saved in the wp_users table?

    Also I have seen in the documentation that the individual profile pages can be customized by customizing the template files and saving that into the child theme. Is that the same with groups? If I set up a group for each of my small business ‘members’ I’m assuming there would be a group page for each one? And that I could display my new custom fields somehow?

    Thanks,
    Roseanne

    od1fr
    Participant

    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!

    helgipetersen
    Participant

    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 ?

    #275116
    michaelv3
    Participant

    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’

    Venutius
    Moderator

    In Users>>Profile Fields there is the default profile group – Base, any profile field in this group will be on the registration form. If you create another profile group, the fields in their will not be shown on the registration form.

    Henry Wright
    Moderator

    Check out the “Displaying Extended Profile Fields on Member Profiles” article

    Displaying Extended Profile Fields on Member Profiles

    nnyorker
    Participant

    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
    Anna

    #275063
    lbellipanni
    Participant

    Hello 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 you

    #274987
    michaelv3
    Participant

    I am still interested in

    If user = friend + member type {[bpps_profile_field field=”fieldname” tab=”section”]}
    specific tab (or tab fields) are shown to friends only of specific member type

    #274876
    kodrant
    Participant

    I deleted all profile fields, set new profile fields in 2 groups: Base (Primary) and Company.
    Now Company field group is not showing in the Profile page, and Base fields generate the same error when save changes is clicked.
    Plugin disabled: BP Profile Shortcodes Extra (generated many errors including fatal error)
    Plugin active: BuddyPress Xprofile Custom Field Types

    Is there proven tutorial how to successfully add more fields in BP Profile?

    #274858
    Varun Dubey
    Participant

    Ya, It will need to create the script to export data from OSSN and after you will also need to create import script for BuddyPress. For User profile and extended fields, there are some plugins which can populate BuddyPress using CSV.

    #274848
    scomaco
    Participant

    I’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.

    #274835
    Christian Wach
    Participant

    Why not write a plugin? Here’s one, for example, that provides third-party xProfile Fields:

    BuddyPress Xprofile Custom Field Types

    #274828
    Ritu Singh
    Participant

    Hi there,

    I am creating a function for my site in which I want to hide member’s profile pages which have not complete their extended profile fields information.
    Is there any way I can achieve this?

Viewing 25 results - 626 through 650 (of 5,755 total)
Skip to toolbar