Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,601 through 1,625 (of 5,755 total)
  • Author
    Search Results
  • #242504
    danbp
    Participant

    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' );
    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

    Lars Henriksen
    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
    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?

    #242094
    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
    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

    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;}
    }
    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

    #241951
    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..

    #241895
    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

    #241875
    #241848
    Quinn Goldwin
    Participant

    Thank you @djsteveb

    I just thought of a different way to word what I’m asking for.

    Is there any way to add @ mentions in xprofile fields? I can make an x profile field called A list team and would like users to add “ie. @jonhdoe so users can be directed to the profile.

    Thanks.

    #241844
    maelga
    Participant

    Do you guys have any snippet to display the xprofile fields ID in admin?
    The lesser I go to my db, the happier I am! ๐Ÿ™‚

    #241742

    In reply to: Delete profile fields

    shanebp
    Moderator

    You can get the ids by going to .../wp-admin/users.php?page=bp-profile-setup
    Click or roll-over the Edit links for group or single field.
    And you’ll see group_id & field_id.
    btw – you can delete groups and / or single fields on that wp-admin page.

    #241741

    In reply to: Delete profile fields

    Henry Wright
    Moderator

    You could put it in your functions.php file, or even your bp-custom.php file if you have one. It only needs to be run once so make sure you remove it after visiting your website in a web browser.

    Finding the group ID or the field ID is something you’ll need to do yourself. Take a look in your database and find table bp_xprofile_fields. Then look for the id column and the name column. Say the name of the field you want to delete is ‘Social’. Just look for ‘Social’ in the name column and find the id of that particular row. Then you have your field ID.

    #241698
    mattrichard
    Participant

    Hi !

    I found a lot of topics and articles about how to add fields to a profile, but not how to delete some. When I installed by theme and buddy press, on profiles there are some fields like “quotes”, “media” etc that I want to delete.

    Is there a way to do this ?

    Thanks for your help !!

    Matthias

    #241679
    muskokee
    Participant

    Hi everyone, I want to allow editors and not just admins to edit user xprofile fields. Do you know of a hook that I can use to allow this? I have installed a general roles and capabilities plugin for the site, I can see the xprofile tab as an editor but when I click on it, it says I do not have permission to edit the profile. Through the plugin I can edit the regular wordpress profile fieldsโ€ฆjust not the xprofile!

    TIA
    Sheri

    BTW – crossposted in the miscellaneous category. I think this is the more correct category though!

    #241668
    stegtflesk
    Participant

    Thx for the replay, but its not the value of the field i need, but the array of options i have created in the wp backend.

    Ex.

    I have created a new profile field in the “User->profile fields” page in the wp backend. Calling it eyecolour.

    So i select the field to be a “select, dropdown” (still in the wp backend). I enter an array of eyecolours as options and saves the field and set the default colour as green. I am now able to extract the value of the field as you shown above. But i wanto get the full array of all the options of the field pref. as and array. Then i would be able to create the dropdown, dynamically in the frontend, using the options i allready created.

    psudocode example (i know its the wrong functions, its just to show the logic):

    $selectedOption = get_profile_field(‘eyecolor’);
    $possibleOptions = get_profile_field_options(‘eyecolor’); //this function i need!! ๐Ÿ˜›

    foreach ($possibleOptions as $option) {

    if ($option == $selectedOption) {

    echo ‘<option selected value=”‘.$option.'”>’.$option.'</option>’;

    } else {

    echo ‘<option value=”‘.$option.'”>’.$option.'</option>’;

    }

    hope this makes sense ๐Ÿ˜€

    stegtflesk
    Participant

    Hi, how do i get all the select options from a custom profile fields?
    I made a select field with 3 options. And i want to get these options.

    #241617
    danbp
    Participant

    Hi

    instead using a link field type, use a normal text box and harcode the link to social account in the function. That way, the user has only to enter his account name and the link is build when the data is on front-end.

    profile fields are stripped
    profile datas are made clickable by default for search purpose in BP
    We don’t want this for icons or when linking to a social network.

    Here an usage example which use fontawesome to add the icons. That the general idea, change it to your need.

    function bpfr_socialize_profile () {	
    
    echo '<br>'; 
    
    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><?php echo $data; ?></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><?php echo $data; ?></a>		
    
    <?php		
    endif;
    }
    add_filter( 'bp_before_member_header_meta', 'bpfr_socialize_profile' );
    Quinn Goldwin
    Participant

    Never mind I used this css coding to add line breaks, still not perfect but it looks so much better than it used to!

    #buddypress table.profile-fields p {
    	margin-top: 10px !important;
    	margin-bottom: 10px !important;
    }
    
    Henry Wright
    Moderator

    Right. So it looks as though it could be something the BuddyPress core team might need to look at. Can you open a Trac ticket explaining how the profile fields are displaying in the wrong order? If you could provide as much info as you can that’d be great.

    You can use the same username and password as you use here in the forums.

    Quinn Goldwin
    Participant

    I use Boss theme by buddyboss and it has an option to force mobile versions on desktop, which I like a lot. But I notice that my xprofile fields are ordered wrong. I have the basic profile (name, email, phone, website) but then i created another profile group called Resume (with tons of slots for adding resume details) But when you view profile it shows the resume first and not the basic profile details.

    the only problem is I dont want to add duplicate Name, email, phone to the resume group, I just would like to know how to fix the order. I remember seeing a similar post on the forums but though I’d start a new thread cause sometimes its hard to search for a post you scanned across weeks ago.

    -thanks

    #241481
    whoaloic
    Participant

    Hello,
    actually I mean to merge content of members/single/settings/general.php and members/single/profile/edit.php.
    My idea is to get custom BP profile fields (username) along with the email and password fields in the general settings tab.
    When I copy plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/ to mytheme/buddypress/members/single/, those files don’t override plugin core files.

Viewing 25 results - 1,601 through 1,625 (of 5,755 total)
Skip to toolbar