Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 2,126 through 2,150 (of 5,755 total)
  • Author
    Search Results
  • #184250
    Dhyana
    Participant

    HELP!

    I need to customize the existing REGISTRATION FORM, which now contains only the very basics, and I need to find the other “labels”, php do_action, and the input types, but eve more so, where they are located now, so that I can add and change my current registration form.

    Here’s what I have now:

    				<label for="signup_username"><?php _e( 'Username', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    				<?php do_action( 'bp_signup_username_errors' ); ?>
    				<input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" />
    
    				<label for="signup_email"><?php _e( 'Email Address', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    				<?php do_action( 'bp_signup_email_errors' ); ?>
    				<input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" />
    
    				<label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    				<?php do_action( 'bp_signup_password_errors' ); ?>
    				<input type="password" name="signup_password" id="signup_password" value="" />
    
    				<label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    				<?php do_action( 'bp_signup_password_confirm_errors' ); ?>
    				<input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" />

    and what I will need is the codes for the NAME, for a TEXT field that needs to take a invitation code.

    Can you guys point me in the right direction please?

    #184210
    koendb
    Participant

    Got it 🙂

    All you need is the value of the checkbox.
    <input id="nieuwsbrief" type="checkbox" value="newsletter"
    You can find/set this value in the users –> profile fields page

    Then just set the value of $newsletter to ‘newsletter’ when the box is checked or any other value if it’s not and use:
    $meta_update = xprofile_set_field_data( '<em>name or id of field</em>', $user_id, $newsletter);

    Glad to answer any questions

    #184178
    danbp
    Participant

    @yoshimitsu1234 @dromy,

    1) create your social fields on xprofile
    2) give them a name like Twitter or Facebook
    3) tell the user to enter their social username
    4) install font-awesome or similar to get nice social icons

    This function works as of BP 1.7 and was tested on BP 2.0.1. Add it to bp-custom.php or your (child) theme’s functions.php

    Icons are showed under @username | active since at the right of the user avatar on the profile header.

    Remove the text Test… if you want to use only font-awesome icons or replace it with an image or text of your choice

    function bpfr_socialize_profile () {	
    
    echo '<br>'; // don't remove !
    
    if ( $data = bp_get_profile_field_data( 'field=Twitter ' ) ) : 
    ?>
    
    <a href="http://twitter.com/<?php echo xprofile_get_field_data( 'Twitter', bp_displayed_user_id() );?>/" target="_blank" title="Twitter"><i class="icon-twitter">  </i>Test Twitter</a>&nbsp;
    
    <?php endif;
    
    if ( $data = bp_get_profile_field_data( 'field=Facebook ' ) ) : 
    ?>
    
    <a href="http://facebook.com/<?php echo xprofile_get_field_data( 'Facebook', bp_displayed_user_id() );?>/" target="_blank" title="Facebook"><i class="icon-facebook"></i>Test FB</a>		
    
    <?php		
    endif;
    }
    add_filter( 'bp_before_member_header_meta', 'bpfr_socialize_profile' );
    ariane1001
    Participant

    Hi,
    I am trying to extend the loop with some extra profile fields using this code:

    <?php bp_member_profile_data('field=Present position'); ?><br/>
    <?php bp_member_profile_data('field=Phone number'); ?><br/>
    <?php bp_member_profile_data('field=Email address'); ?> <br/>

    It works but members with empty profile fields get the data from the Previous member.
    Website is behind a login but it looks like this:

    Ariane Gordijn
    06 123 456 78
    ariane@ca-editors.com

    Len ‘t Hoen
    06 123 456 78
    ariane@ca-editors.com

    Tanja Baars
    Marketing & communication employee
    427
    t.baars@airborne.nl

    How can I change the code so the empty fields stay empty?

    Thanks in advance,
    Ariane

    #184168
    dromy
    Participant

    I agree, can you add option to create a field with a custom link not relating to the search?
    like on the wp profile but on the bp edit profile fields selection.

    blu3shad0w
    Participant

    Hi

    Like many people I’m after having nested fields…

    I thought that this might be the solution http://wordpress.org/plugins/fields-framework/

    Since it had a way of putting fields into groups..and well nesting those groups.

    Would it be possible to take the code and integrate it into buddypress or http://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/

    The code in question from what I can work out from the fields-framework plugin is…

    Classes.php

    if(!class_exists(‘FF_Field_Group’)) {
    class FF_Field_Group extends FF_Field {
    protected $fields = array();

    public function set_saved_value($saved_value) {
    $saved_value = parent::set_saved_value($saved_value);

    if($this->repeatable != true) {
    foreach($this->fields as $field) {
    $set_saved_value = !ff_empty($saved_value) && is_array($saved_value) && array_key_exists($field->name, $saved_value) ? $saved_value[$field->name] : null;

    $saved_value[$field->name] = $field->set_saved_value($set_saved_value);
    }
    }
    elseif(!ff_empty($saved_value) && is_array($saved_value)) {
    foreach($saved_value as &$value) {
    foreach($this->fields as $field) {
    $set_saved_value = !ff_empty($value) && is_array($value) && array_key_exists($field->name, $value) ? $value[$field->name] : null;

    if(ff_empty($value) || is_array($value)) {
    $value[$field->name] = $field->set_saved_value($set_saved_value);
    }
    }
    }
    }

    return $saved_value;
    }

    public function html() {
    $field_group_id = $this->id;

    $field_group_name = $this->name;

    foreach($this->fields as $field) {
    $original_field_name = $field->name;

    $original_field_id = $field->id;

    $field->name = “{$field_group_name}[{$original_field_name}]”;

    $field->id = “{$field_group_id}-{$original_field_id}”;

    $value = is_array($this->value) && array_key_exists($original_field_name, $this->value) ? $this->value[$original_field_name] : null;

    $field->set_saved_value($value);

    $field->container();

    $field->name = $original_field_name;

    $field->id = $original_field_id;
    }
    }

    public function add_field($field) {
    $this->fields[] = $field;
    }
    }
    }

    Functions

    if(!function_exists(‘ff_add_field_to_field_group’)) {
    function ff_add_field_to_field_group($field_group_uid, $field_uid) {
    if(empty(FF_Registry::$fields[$field_group_uid])) {
    ff_throw_exception(__(‘Invalid Field Group UID’, ‘fields-framework’));
    }

    if(empty(FF_Registry::$fields[$field_uid])) {
    ff_throw_exception(__(‘Invalid Field UID’, ‘fields-framework’));
    }

    FF_Registry::$fields[$field_group_uid]->add_field(FF_Registry::$fields[$field_uid]);
    }
    }

    It also features in builder but not able to work out the coding….

    Idea of putting fields into groups and then nesting them, might be the way forward..

    If that could then be combined with the conditional fields plugin, might then be onto a winner…

    Sorry, I know zero about php coding, but I hope I might point someone onto the way…..

    #184148
    escudero95
    Participant

    Hi danbp,

    I put the code you posted into functions.php but it didn’t seem to have any effect. I made the visibility of the date of birth field to ‘friends only’ first via the user selection, then via the profile fields settings area and ‘enforced default’. Is there a different way you mean for me to do that?

    Thanks

    #184102
    paton400
    Participant

    No, I need to grant the user role permission to ‘edit users’. But by granting that, I’m granting them access too much access.

    I want only want them to be able to change the information in other users profile fields. I don’t want them to be able to read private messages.

    Is this a question for Buddypress, WordPress or my user role permissions plugin?

    #184092
    aldebaranmirko
    Participant

    hello to all,

    I expose my problem: when you look at the profile of a user (profile – view) there is a table with the field displayed.
    the vertical line that divides the description of the user field moves and also the field move towards the right. in almost all users is displayed differently based on fields that have compiled.

    probably there are “Auto” which are a bit what they want

    I use the theme RTPANEL (RTCAMP)

    how can I fix??
    thanks

    #184071

    In reply to: Help with profiles

    danbp
    Participant

    It’s a field builder plugin, not a filter, so no it wouldn’t help you. BuddyPress already do this (building fields and fields section) for xprofile component, so such a plugin is not to use with BP.

    Conditionnal fields is an old and remaining “must have” thing, but the state of the art is far away i guess.
    https://buddypress.org/support/topic/buddypress-conditional-profile-fields-available-now/

    i would take a try over Gravity Form at your place.

    #184062
    blu3shad0w
    Participant

    Hi

    I’m trying to figure out how to do something with profiles in buddypress and wondered if you would be able to assist.

    I’m a novice with all the buddypress coding btw…..

    I’ve downloaded the buddypress xtended fields plugin.

    What I’m after is the following.
    each of the numbers are different levels…

    1 Select game type
    Options would be MMORPG, FPS, Other.

    If other is selected then subject to admin approval it be added as an extra option.

    2 Select Game name
    So for MMORPG you would have Neverwinter, DDO, Marvel, Other.
    Again if other is selected then subject to admin aprroval it be added as an extra option.

    FPS and the others would have different options.

    3) Account Name 1 + Additional account
    If additional account is selected then it would display Account 2 etc up to say a max of 10.

    4) Number of characters.+ additonal character

    5) Character Name – text field entry.
    Class – Drop down field of say 5 options + other
    Race – Drop down field of 5 options + other
    level – number 1 to 60
    Date last updated.

    there is a plugin about conditional fields, but not sure if this can handle this? Also I shall look at doing a spreadsheet that might show better what im after.

    Cheers

    blue

    #184048
    paton400
    Participant

    Hey guys, me again!

    I’m using a plugin called BuddyPress xProfiles ACL (which is great) to allow certain user roles to edit information in users profile fields (I don’t want the individual users to have access to make these changes).

    This works great, but it also allows these user roles to read through other users private messages, change avatars, settings etc.

    I’d like to make it that my managers can log in (front end) and change their authorised profile fields for other users (NOTHING ELSE).

    I don’t mind admin having access to all, but not anyone else.

    Please can you tell me how to set this up?

    Regards

    paton400
    Participant

    Hey guys,

    I would like to create a field group where the field information is only visible to that particular user, administrator and a custom role (managers).

    As this will contain personal financial information, I don’t want any other site members seeing it. But it’s important that my selected user roles and individual user see it.

    Any ideas?

    Regards

    #183996
    pstidsen
    Participant

    Now the function is runned, but no fields are shown. My code is:

    //Prints xProfile
    function PrintKontaktinformationer() {
    	// we need the user_id first (mandatory outside a loop)
    	$user_id = bp_displayed_user_id();
    	// now we fetch the field data (separate field id's by comma)
    	$my_field = xprofile_get_field_data('10, 9, 1, 11, 12, 13, 14, 15', $user_id);
    	// we built the output
    	echo '<div class="authorinfo">TEST'. $my_field . '</div>';
    }
    // the new hook
    add_action( 'show_PrintKontaktinformationer', 'PrintKontaktinformationer' );
    #183980
    paton400
    Participant

    Hey guys,

    How can I change the link of the ‘Change Avatar’ button so that it directs users to the settings page (where they can change their profile information).

    I am now using the Xprofile fields image upload on registration for the avatars, so original avatar settings are useless.

    Also, I’d like to change wording to ‘Change Photo” rather that ‘Avatar’

    Otherwise if this is too tricky, I’ll just hide/remove the button.

    Cheers guys.

    PS is it just me or has the BP theme changed to purple?

    #183977
    Chris Perryman
    Participant

    Just wanted to follow up…we did come up with a solution for this in case any one else is looking for it.

    Full details are now on my blog at Revelation Concept.

    function rc_buddypress_profile_update( $user_id ) { 
     
         $admin_email = "YOUR-EMAIL@DOMAIN.COM";
         $message = sprintf( __( 'Member: %1$s', 'buddypress' ), bp_core_get_user_displayname( $user_id ) ) . "\r\n\r\n"; 
         $message .= sprintf( __( 'Color: %s' ), bp_get_profile_field_data('field=Color') ). "\r\n\r\n";
         wp_mail( $admin_email, sprintf( __( '[YOUR SITE] Member Profile Update' ), get_option('blogname') ), $message );
     }
     
     add_action( 'xprofile_updated_profile', 'rc_buddypress_profile_update', 10, 5 );
    #183942
    dromy
    Participant

    Thank you for the quick response.

    when adding groups and more fields the groups and fields are displayed on the member page as a table.
    I would like to create a tabs display to the member information (my created fields and group) when each group of (ex.wp-widget base) div\table is displayed on a different tab.

    hope I am clear.
    on the admin or edit cases I do not want to touch for now. This relate only for the view buddypress member profile as a member or as anonymous.

    (and sorry, I meant how on topic and not hot)

    #183939
    danbp
    Participant

    On xprofile component, the default field group is called Name and contains only one field who will contain the username. This group is already tabed on a profile page and is the only group field who appears on the register page.

    Now, on the xprofile admin you can add as many fields and group fields you want, and you can set each field to different visibility.
    These new field can be grouped and each group you create will automatically be tabed on a profile page.

    https://codex.buddypress.org/buddypress-components-and-features/extended-profiles/

    If you mean showing groups on the profile, this also made automatically by BP. On each profile, you have (if exist) the groups the member belongs to.

    If all this is not what you mean, be more explicit 😉

    dromy
    Participant

    I would like to display on a buddypress member profile page the user fileds\data each group on a different tab. tabs display. can you help?

    Thanks in advanced.

    pstidsen
    Participant

    Hey

    I have made some xProfile fields in groups: http://i.gyazo.com/6c8deade080b33848e6475a3ca2c3f11.png

    How do I output these data at the Profile Page. I can see the template is here: /wp-content/themes/bp-mag-child/members/single/home.php. I have made a sidebar where I want to display some of the groups. How do I do that?

    #183918
    domi81
    Participant

    Hey,

    this is freaking me out. I need a plugin, such as “BP profile search” (you can add custom
    profile fields which the member at the front end can search for) with the possibility to add dynamic drop down menus. example:

    drop down menu 1 :
    – main category 1 (selected)
    – main category 2

    drop down menu 2 (child):
    – subcategory 1 for main category 1
    – subcategory 2 for main category 1

    Is there such a plugin somewhere? I need that dynamic drop down to finish my project.
    I tried to add it by myself. But my javascrip skills are too bad.

    I really hope you can help me out!!

    cheers
    domi

    #183913
    CommonEasy
    Participant

    Hi there, i have an additional question… can this be used to hide profile groups from the edit profile group tab ? I tried;

    // commoneasy hide fields
    function commoneasy_hide_some_profile_fields( $retval ) {	
    	if(  bp_is_profile_edit() ) {		
    		$retval['exclude_fields'] = '15';	//multiple field ID's should be separated by comma
    		
    	}	
    	
    	return $retval;
    }
    add_filter( 'bp_after_has_profile_parse_args', 'commoneasy_hide_some_profile_fields' );
    
    // commoneasy hide groups
    function commoneasy_hide_some_profile_groups( $retval ) {	
    	if(  bp_is_profile_edit() ) {		
    		$retval['exclude_groups'] = '4';	//multiple field ID's should be separated by comma
    		
    	}	
    	
    	return $retval;
    }
    add_filter( 'bp_after_has_profile_parse_args', 'commoneasy_hide_some_profile_groups' );

    unfortunatly it didn’t work, i hope somebody can help!

    CommonEasy
    Participant
    tommy1985
    Participant

    Hello,

    Rather than going into the admin area and adding profile fields manually, is there a way to allow the users to add new profile fields?

    Many thanks

    #183889
    godavid33
    Participant

    @henrywright worked like a charm. Now I just need to style it a bit. Thanks!

    And thanks to @johnjamesjacoby for the great plugin. The problem was (is) probably that all my profile fields are xprofile fields.

    Thanks for the example @mercime !

Viewing 25 results - 2,126 through 2,150 (of 5,755 total)
Skip to toolbar