Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1 through 25 (of 4,330 total)
  • Author
    Search Results
  • Profile photo of sammjv
    sammjv
    Participant

    My coding skills are very less but want exactly what @Flush said I saw the code in bp but I don’t now what exact code to use to modify the above said piece of code.
    Will you guys provide the conditional statement to load two files based on created profile fields.

    I don’t know weather @andy277 also wants same.

    #242620
    Profile photo of tenerifehosting
    tenerifehosting
    Participant

    Hi everyone,

    I would like to know how to have diferent types profile with diferents fields for each profile type, Is this posible?
    In example, I would like to have a profile type Runner with fields like 100 metters and other like Sailor with fields like 10 miles.

    Thanks for help.

    #242601
    Profile photo of djsteveb
    djsteveb
    Participant

    I am interested in finding out what you come up with in regards to this.

    I tried to use something like:

    ‘field’ => 2,
    );

    (some info from https://codex.buddypress.org/themes/guides/displaying-extended-profile-fields-on-member-profiles/ )
    to replace the actual names I was using in a page title template thing, and never got it to work – but I have no idea what I am doing – trying to franken-hack a bit of code provided by one person and replace the field names with field numbers so the code would work with a different site I was playing with – when I tried replacing the name with this field number thing it did not work – but again I don’t understand php nor bp stuff well enough to know if I just missed a character, or something else was needed, or the function isn’t working as it should.

    #242600
    Profile photo of rgrober
    rgrober
    Participant

    I’m adding profile fields to the profile header using this function:

    add_action( ‘bp_before_member_header_meta’, ‘display_user_phone’);
    function display_user_phone() {
    // echo ‘I choose this color: ‘;
    $args = array(
    ‘field’ => ‘AD Roles’,// Field name or ID.
    );

    $args2 = array(
    ‘field’ => ’16’,// Field name or ID.
    );

    echo ‘<h5>';
    echo bp_member_profile_data( $args );
    echo ‘</h5>';
    echo ‘<h5>';
    echo bp_member_profile_data( $args2 );
    echo ‘</h5>';
    }

    However, when I attempt to use the field ID, it doesn’t display the profile information. Using the Field Name works perfectly. I need to access the ID b/c some of the Field Names are long and involve punctuation.

    How do I enter the field ID to make this work?

    Thank you!

    Profile photo of VibrantWeb
    VibrantWeb
    Participant

    Using WordPress V. 4.2.3 and BuddyPress 2.3.2.1
    I am running a multisite on theathleticgrade.com (master) with sub sites being theathleticgrade.com/coaches (and reflecting coaches fields ONLY) and theathleticgrade.com/students(and reflecting students fields ONLY) from the extended fields. Before adding the code to segregate the tables for the X-Profile Fields, both coaches and students fields were showing up on all sub sites. I need coaches to ONLY show up on theathleticgrade.com/coaches, etc.
    I then created a file called bp-custom.php and loaded it with code, then uploaded that directly to the plugins folder. The code was copied and pasted from this link: https://codex.buddypress.org/themes/guides/segregated-x-profile-fields-for-multisite – NO MODIFICATIONS were made.

    2 things happened:

    1. In the back end and on both sub sites – the profile fields groups and their content disappeared. – Which is fine. BUT–when I made the attempt to add a new field group, I kept getting an error message:
    There was an error saving the group. Please try again..
    2. I created a temporary sub site to see how it would react and same thing, along with these error messages referring to the code I just added and uploaded: Segregated X-Profile Fields Error Messages

    My question is..what do I need to do to create the groups in the coaches and students dashboards, so that they can be displayed appropriately on either website?

    Was there something that needed to be manipulated within the code? If so, what is the exact location and where do I pull the information from? Specific instructions are essential, so that there is not any misunderstandings. Is there an example that can be provided on a live test website?

    Profile photo of rgrober
    rgrober
    Participant

    One last question. I appreciate your patience, as I am definitely nascent when it comes to this.

    The profile field I’m trying to display is a series of checkboxes. When I implement your code, the page is displaying “Array” for the field data.

    Can you direct me to a resource or method to allow checkbox fields to be displayed?

    Thank you again!

    Profile photo of rgrober
    rgrober
    Participant

    I’ve copied members-loop.php into my child theme (child theme > buddypress > members > members-loop.php).

    As instructed by the comments in this file, I added bp_member_profile_data( ‘field=Phone’ ); directly under the comments. However, the profile field doesn’t show up on the members directory page.

    Is there a crucial step I’m missing? Am I going about this the wrong way?

    Any help is greatly, greatly appreciated.

    #242561
    Profile photo of danbp
    danbp
    Moderator

    Custom code goes to bp-custom.php or child-theme’s functions.php
    Code on second answer shows an usage example, it’s not the code you have to use.

    As you asked for register details, i thinked you want a resume of the registration with all mandatory xprofile fields information…

    BP on a single install doesn’t sent a welcome email. This happens only on a MS install. But you add that manually. Read here:
    http://buddydev.com/buddypress/send-welcome-email-to-users-when-they-activate-their-account-on-wordpress-buddypress-based-social-network/

    Profile photo of mwb2345
    mwb2345
    Participant

    I don’t want every field to be linkable. How would I go about this?

    I am no code expert.

    WordPress: 4.2.3
    BuddyPress: 2.3.2.1

    I am using News Pro powered by Genesis. The theme and Genesis is created Studiopress.

    Link to profile: http://whateverisonyourmindllc.com/voice/members/wchl23/

    #242504
    Profile photo of danbp
    danbp
    Moderator

    biographical information, fax and maybe even addresses. These are WordPress or theme specific fields which are not visible on frontend profiles. BP doesn’t use them if you use the xtended profile component.
    Anyway…

    Try this snippet, and use it to your need from within your child-theme functions.php

    function remove_user_fields(){
    
    // Print jQuery that removes unneeded elements
      ?>
    
      <script type="text/javascript">
        jQuery(document).ready( function($) {
        // the magic goes here...
          var ids = ['#description', '#comment_shortcuts', '#color-picker']; // Check in page source for other ID's
          for (var i = 0; i < ids.length; i++) {
            $(ids[i]).closest('tr').remove();
          }
        });
      </script>
    
      <?php
    }
    
    add_action( 'admin_footer', 'remove_user_fields' );
    Profile photo of startershut
    startershut
    Participant

    Hi,

    I have noticed there are a few fields on the ‘Your Profile’ on the Users admin section. Is there a way from hiding these fields from the users?

    I don’t require biographical information, fax and maybe even addresses.

    Is it possible to hide these so users don’t even need to fill them out or see them on their profile?

    Thanks

    Profile photo of Adjunkten
    Adjunkten
    Participant

    Hi,

    I would like to add content from 4-5 custom X-profile fields to the ‘new user registered email’ like this

    A new user registered …

    Username: X

    Xprofile 1: Y

    Xprofile 2: Z (….)

    A solution is posted here, but the code isn’t tested and the topic is closed.

    BP: 2.3.2.1
    WP: 4.2.3

    Hi BuddyPress Wizards,
    I’ve imported some users into my site with S2Member Pro’s advanced import tool.
    On the user list at wp-admin/users, I can see the content of users’ extended profile fields.
    But the content does not show in the BP profiles at the front end or in the profile editor, e.g: (http://www.mirandanet.ac.uk/wp-admin/users.php?page=bp-profile-edit&user_id=1007).
    So the content data is in the MYSQL database but not seen by BuddyPress.
    Can you help.
    Wordpress version: 4.2.3
    BuddyPress version: 2.3.2.1
    Website: http://www.mirandanet.ac.uk
    Theme: Good News version: 5.4 by Momizat. Forgive me, but it would take ages to replicate the essentials on Twenty15.

    Best Wishes

    Robert

    #242410
    Profile photo of maelga
    maelga
    Participant

    Hi,

    As I’m looking into customising profile fields/groups/tab based on member type, I am wondering whether there is a way to rename a navigation tab based on member type?

    Usually nav tabs can be simply renamed using poedit, but adding a condition is not something po/mo files can handle.

    Do you guys have any idea whether this is possible?

    Profile photo of mattrea
    mattrea
    Participant

    Hi, I am using extended profile fields on wordpress 4.2.2 and buddypress 2.3.2.1. I will have about 200 members and at the moment and I am concerned that their email addresses will be visible. I am using an obfuscate email program, but would much prefer to have a contact form for each member instead. I have searched for a solution to this, but so far to no avail and I would have thought that it would be something that was requested quite often.

    Here is a link to my members page: http://interfaithfoundation.hyperbole.k-hosting.co.uk/members/hyperbole1966/

    Any ideas or suggestions would be gratefully received.

    #242124
    Profile photo of Whiskyharry
    Whiskyharry
    Participant

    Hi,
    I’m looking for a solution/Plugin that can be integrated into buddypress.
    In the additional fields, I ask the users to enter their country, zip-code and city.

    Is there a way to “combine” this with a google-pap?

    Especially:

    • I would like to show a little map in the user profile to mark his position
    • I would like to make an overview page, showing “all users online” positions and “my friends” positions online, lets say in different pin-colors
    • I would like to show the user-avatars on the map

    Does anybody know a plugin doing that? Or is there an easy way to extend an existing plugin?

    Profile photo of acenteno01
    acenteno01
    Participant

    I want to add profile fields but I’m only being shown to add groups.

    Here’s an image of what I see: http://postimg.org/image/58sm4k5k9/

    How can I fix this?

    I’m running Buddy Press Version 2.3.2.1 and WP Version 4.2.2

    #242094
    Profile photo of Whiskyharry
    Whiskyharry
    Participant

    Hi,
    I have a very strange Problem!
    In the <div id=”item-header-content”> section there Should be a <h2 class=”user-nicename”></h2> entry with @whiskyharry, for example.
    In my installation, I’m missing this since today.

    What did I do?
    I’ve installed two plugins “BP Display Name” and “Buddypress Usernames Only”

    Why did I do that?
    In the registration process, there are some fields to be filled out and they are organized in two columns:
    Username, Emailaddress and Password ( I think these are for WP ) and another Name ( I think this is the nickname for Buddypress )

    I entered the following:
    username “Snowwhite”
    name “Sleeping Beauty”

    In the tables, I found the entries as follows:
    wp_xy_users:
    user_login: Snowwhite
    user_nicename: snowwhite
    display_name: Sleeping Beauty

    wp_xy_usermeta:
    first_name: Sleeping
    last_name: Beauty
    nickname: Sleeping Beauty

    wp_xy_bp_xprofile_data:
    field_id 1: Sleeping Beauty

    Then I log-in:
    URL: snowwhite
    Login-Widget: Sleeping Beauty
    Header: Snowwhite
    Breadcrumb: Snowwhite
    in the Profile Name field: Sleeping Beauty

    Then I Change my Name (expected: I change the nickname) to “Tarzan”
    URL: snowwhite
    Login-Widget: Sleeping Beauty
    Header: Snowwhite
    Breadcrumb: Snowwhite
    in the Profile Name field: Sleeping Beauty

    When I log in and change my Profile-Name to “Tarzan”, I find the following:
    URL: snowwhite
    Login-Widget: Tarzan (that should be the Username?)
    Header: Tarzan
    Breadcrumb: Tarzan
    in the Profile Name field: Tarzan

    wp_xy_users:
    user_login: Snowwhite
    user_nicename: snowwhite
    display_name: Tarzan

    wp_xy_usermeta:
    first_name: Tarzan
    last_name:
    nickname: Tarzan

    wp_xy_bp_xprofile_data:
    field_id 1: Tarzan

    So, with changing the nickname, I changed first_name, last_name, nickname and the LOGIN_NAME

    So I ask me some questions:
    1. Is this the correct behavor?
    2. What do I really change?
    3. Where is my “item-header-content” ?

    Can anybody hep me? I’m very confused :-(

    #242083
    Profile photo of poco06
    poco06
    Participant

    Hello,
    I have a site where members can define their gender (thanks to a specific xprofile field, and depending of that, have a specific xprofile field to define their age.
    ie : member can be male or female or couple. If they define themself as male, the have to fill the xprofile ‘male_age’. If female, then ‘female_age’ and if couple, both ‘male_age’ and ‘female_age’ should be filled.
    The issue there is that I need to make these fields (male_age and female_age) required. If I do this, the 2 fields are required for all members, which is not what I want.
    What could be done to adapt the right situation?
    Wordpress 4.2.2
    Buddypress 2.2.3.1
    Thanks
    Pat

    Profile photo of taz101108
    taz101108
    Participant

    How do you pass xprofile user data to prefill forms? I am using EventOn and tried xprofile_get_field_data(‘Undergraduate College/University’), but it wasn’t working. The function is below. Do I need to somehow let this function know it’s a buddypress call?

    // Prefill form fields
    function prefill($current_user, $field){
        if($current_user){
            switch ($field) {
                case 'email':       echo $current_user->user_email; break;	
                case 'first_name':	echo $current_user->user_firstname; break;	
                case 'last_name':	echo $current_user->user_lastname; break;	
                case 'evors_addf1_1':   echo xprofile_get_field_data( 'Undergraduate College/University' ); break;
            }				
        }else{ return null;}
    }
    Profile photo of maelga
    maelga
    Participant

    Hi,

    Is it possible to hide the whole Base profile field group?
    Neither viewable, nor editable by users.

    I have found a number of topics re this, but answers only cover how to hide individual fields and not the whole group.

    Thank you

    Profile photo of maelga
    maelga
    Participant

    Hi,

    Is it possible to have a xprofile field showing (and being editable) under 2 different field groups?

    The intention is to have this mandatory field on the registration page (as “required” to force new users filling it up), i.e. in the Basic field group, but then being editable under another field group (where the field information is grouped with other related info).

    Ultimately, I have the intention to hide the Basic field group to all users, so those fields cannot be edited from 2 different locations.

    Or may be you have other suggestions to achieve this…

    #241951
    Profile photo of djsteveb
    djsteveb
    Participant

    @baldarab – well you can add some more original text to each of the “groups” and get some “Above the fold” – that may help a bit,
    some other problems..

    your sitemaps (http://www.freakyrivet.com/sitemap_index.xml ) (created by yoast) – are not showing any of your “activities / groups” – however if you create a sitemap with a tool like: https://www.xml-sitemaps.com/download/freakyrivet.15149203/sitemap.html?view=1

    It does show your groups pages in the sitemap created by an actual spider – so add this to another fail with BP and yoast not playing well. I am guessing same for members page since those are “pseudo pages”.

    Looking at how another sitemap maker sees your pages, it obvious that you should add some code to get original page titles and meta descriptions. You have about 70 or so pages with the same page title and description.

    I just tested that code from wpmudev that I posted above with a newer BP install / updated version and it is working for me. SO you could give that a go – although you will likely have to edit the code and change the name of the profile fields to match your site profile fields (for the code to pull and create info on the member’s pages)

    So – your pages are a bit thin on original content, especially above the fold, you have no or duplicate page titles and meta descriptions – and your site is instructing google and others that those pages are not important as they are not in your published sitemap.

    I would tell yoast to not make your sitemap and just upload your own.

    I would also – not sure why your yoast settings are having it makes mpas for categories and tags – I normally put settings to noindex nofollow all tags and category pages and author pages.. well that’s a lot of free advice – anyhow – hope that info makes sense / helps..

    Profile photo of afi13
    afi13
    Participant

    I add custom field in Profile Fields, how can i filter members in loop by this field?
    I use loop like this https://codex.buddypress.org/developer/loops-reference/the-members-loop/

    #241895
    Profile photo of vince.fr
    vince.fr
    Participant

    Hey Pixelguy,

    you raised an issue I had to tackled and thanks to @graylien it works fine.
    As you also mentioned I had the save button repeated each “tab” and I found a solution that seems working so far but I would love real tech guy to confirm it’s not a mistake :)

    at the end of the edit.php file we worked on you can find this :

    	<?php do_action( 'bp_after_profile_field_content' ); ?>
    
    	<div class="submit">
    		<input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?> " />
    	</div>
    
    	<input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
    
    	<?php wp_nonce_field( 'bp_xprofile_edit' ); ?>
    
    </form>
    
    <?php endwhile; endif; ?>
    
    <?php do_action( 'bp_after_profile_edit_content' ); ?>

    what I understand is that it says :
    – after the form you call bp_after_profile_field_content
    – then you show the button and the hidden fields
    – then you close the form
    – and you close the loop by endwhile – endif

    and @graylien gave us a trick to make the loop “looping” for every tab and not only just one so what I did was to take the endwhile -endif closing the loop inside the form and before the button so the button will remain in the form but not repeated as the loop is closed now.

    	<?php do_action( 'bp_after_profile_field_content' ); ?>
    
    	<?php endwhile; endif; ?>
    
    	<div class="submit">
    		<input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?> " />
    	</div>
    
    	<input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
    
    	<?php wp_nonce_field( 'bp_xprofile_edit' ); ?>
    
    </form>

    I hope that my trick is right and that my explanations are clear as I’m neither a developper nor an native english speaker :)

    Please come back to me wether if it works,

    Cheers,
    vincent

Viewing 25 results - 1 through 25 (of 4,330 total)
Skip to toolbar