Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,501 through 1,525 (of 5,755 total)
  • Author
    Search Results
  • #245168

    In reply to: Defoult user files

    mrjarbenne
    Participant

    Similar answer to this topic. https://buddypress.org/support/topic/user-fields/

    This plugin mentioned, with a bit of tweaking, can do exactly what you are talking about: https://wordpress.org/plugins/custom-profile-filters-for-buddypress/

    #245109
    Ricsca2
    Participant

    In the user profile of wordpress we can influence to enter some fields as defoult

    Website, facebook etc.

    Is there a way to view them in the profile of BuddyPress?

    Thank you

    #245089

    In reply to: User Fields

    ckchaudhary
    Participant

    Default behaviour is to search through values of all profile fields for the search term.
    So if someone has entered ‘london’ in ‘city’ field and you click on it, the search result doesn’t only contain members who have entered ‘london’ in ‘city’ field. It’ll also return members who have entered ‘london’ in any of profile fields.
    That’s what makes you see the result set as inaccurate i guess.

    #245079
    Ricsca2
    Participant

    He’s creating various fields Profile to customize my BuddyPress. (Admin -> Users -> User Fields)

    When you go to see a profile those fields become links and if you clic above displays the profiles that have that field.

    The problem is that the results are not accurate and are displayed prifoli both with the field that does not.

    Why? It happens to you?

    #245048
    Ricsca2
    Participant

    You can insert custom fields in the profile without using plugins?

    Thank you

    Tafmakura
    Participant

    I am building a custom site (that will be multi site in the future) and currently I want to exclude buddypress Xprofiles fields completely. What are the disadvantages of doing this if any.

    #244926

    In reply to: mySql querry help

    shaunik
    Participant

    @danbp: not sure why not working it comes with error

    MySQL said: Not unique table/alias: 'wp_bp_xprofile_data'
    

    Tried query in phpmyadmin, same error:

    
    SELECT wp_bp_xprofile_data.value,
           wp_users.user_email,
           wp_users.display_name
    FROM wp_users
      LEFT JOIN wp_bp_xprofile_data
         ON wp_bp_xprofile_data.user_id = wp_user.ID
      LEFT JOIN wp_bp_xprofile_data
         ON wp_bp_xprofile_fields.id = wp_bp_xprofile_data.field_id
     LIMIT 0, 30 
    MySQL said: Documentation
    #1066 - Not unique table/alias: 'wp_bp_xprofile_data'

    @shanebp: I wish wpdatatables allow php functions … it does’t

    #244919
    shaunik
    Participant

    Can someone suggest the best sql query to get table with user names, user emails, XProfile field and values. I am trying to create table with these values for user using plugin wpDataTable Constructor

    SELECT wp_bp_xprofile_data.value,
           wp_users.user_email,
           wp_users.display_name
    FROM wp_users
      LEFT JOIN wp_bp_xprofile_data
         ON wp_bp_xprofile_data.user_id = wp_user.ID
      LEFT JOIN wp_bp_xprofile_data
         ON wp_bp_xprofile_fields.id = wp_bp_xprofile_data.field_id
    #244913
    @mcuk
    Participant

    Hi @danbp thanks for reply.

    Tried the code you wrote in the link above and it works fine. But as with the one referenced in my first post it reduces the string length upon display rather than preventing the user typing in a large number of characters in the first place (and the data being stored in database).

    So moved onto looking at the code snippet by @henrywright for the sign up page. Would be suitable if i could convert it to work with profile fields. Got to this stage with a few q’s:

    function my_textarea_validation() {
        $custom_field_id = bp_get_member_profile_data( 'field=Mini Bio' );	
    	//is the use of $_POST['field_' . $custom_field_id] correct to access desired profile field?
    	if ( strlen( $_POST['field_' .$custom_field_id] ) > 5 ) { 
            global $bp;
            //which $bp->... error message to use?
    	$bp->signup->errors['field_'] = __( 'CUSTOM ERROR MESSAGE', 'buddypress' ); 
        }
    }
    //which hook to use? (to affect the textarea on Profile > Edit navigation tab)
    add_action( '???', 'my_textarea_validation' );
    @mcuk
    Participant

    Hi all,

    I am looking to limit the number of words or characters (either is fine) that a user is able to type into a profile field text area (set in WP>Users>Profile Fields as a Multi Line Text Area). Reason for this being that I want to include a small bio but don’t want the user going crazy and writing their life story.

    One of the closest solutions I came across was via the link by Dan in here:
    https://buddypress.org/support/topic/validating-xprofile-fields-limit-length/

    Although a good function, the problem with is that it still allows the user to write their life story and only truncates it when calling and displaying the profile field somewhere else (within the item-header div in my case). The original profile text area still shows and allows the full life story to be input without any boundaries.

    I found this which does exactly what i need:
    http://www.mediacollege.com/internet/javascript/form/limit-characters.html

    So my question is can I link a profile field text area created via the WP dashboard with the function from the above link? Or is there another way of getting the desired result?

    Many thanks!

    WP: 4.3.1
    BP: 2.3.3

    romanzy
    Participant

    I want to use Internal Links (or shortcodes) inside the xProfile Field Description boxes, but all HTML is stripped out.

    I do not want to allow HTML in the xProfile fields itself, but only in the field description boxes so that I can add better user information with, for example, URL-links to help pages that describe the input profile fields.

    Someone able to help me with a snippet for this?

    #244806
    johnkim1968
    Participant

    Hello,

    I’m using the code below to list members xprofile fields in the member directory successfully. However,I would like to replace the City with the User ID in the Members Loop. I’m pretty sure I need to insert “<?php echo bp_member_user_id(); ?>” How would I do that? Anyone have an idea?

    //Members Directory Page Meta Fields
    add_action(‘after_setup_theme’,’kleo_my_member_data’);
    function kleo_my_member_data()
    {
    global $kleo_config;
    //this is the details field, right now it take the “About me” field content
    $kleo_config[‘bp_members_details_field’] = ‘About me’;
    //this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there
    $kleo_config[‘bp_members_loop_meta’] = array(
    ‘Height’,
    ‘City’,
    );

    }

    #244765
    DanielEngelhardt
    Participant

    i did it that way and it worked for me. so i now have all my profile fields in one group and display only one of the fields on the registration-page

    danbp
    Participant

    You can add custom option fields for References and Places Worked:

    Profile → Edit

    Not sure that adding a memberlist as drop down is very clever. What if you get a community of hundreds of members ?

    To get database info, see here: (that’s a common WP task)
    https://codex.wordpress.org/Class_Reference/wpdb

    jokyfoot
    Participant

    I want to add user profile fields such as:

    References: (Where the user can choose from a drop down list of existing buddypress members)
    Places Worked: (Where the user chooses from drop down a list of existing locations in the database)

    Is this possible?

    #244694
    shanebp
    Moderator

    Then create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\register.php

    In that file, prevent the display of certain fields by checking them by using
    bp_get_the_profile_field_id() or bp_get_the_profile_field_input_name()
    in the loop: while ( bp_profile_fields() ) : bp_the_profile_field();

    #244692
    DanielEngelhardt
    Participant

    thanks for your input, @danbp.
    There is, of course, a reason why i want it as requested 🙂
    On my registration form, i only want to show one field to not bother new users with unnecessary fields. this one field is in my base group.
    All other fields are arranged in another group.

    From my point of view, it doesn’t make sense to show two tabs on the profile-edit page, but it does make sense to show as less fields as possible on the registration page. I think UX comes first today. Customers pay our rent, so we should avoid putting spokes in there wheel. I also think buddypress is doing a pretty bad job here regarding UX (Of course this behavior gives structure, but we pay with UX for it). Since we live in 2015 it shouldn’t be a matter of “hacking” to reduce the amount of inputs and clicks for such “trivial” actions (from a users perspective) like editing a profile.

    Is that reason enough? 🙂

    #244689
    danbp
    Participant

    To get all fields on the same tab, you simply add them to the Base tab. Users can then fill in anything from one tab and profile will show only one tab.

    This will spare you a lot of time to tweak the original form.

    First topic mention: So the user can edit and save all fields without clicking through serveral tabs.
    If, as site owner, you create profile field group it is probably because you want some structurized output.

    Now, before hacking, you have to ask yourself about what you want: structure or UX. And IMHO in this case, the user comes in second position.
    Another point of view, if it so “complicated” for user to fill in several tabs, consider your work first and justify why you have so many fields, that your user consider it is a mess to fill them… 😉

    #244685
    Prangesco
    Participant

    Hi @danbp,

    My question may sound obvious so my apologies in advance if that’s the case.

    The issue: I was trying to hide a specific xprofile field group and used the code you provided here https://buddypress.org/support/topic/conditional-exclusion-of-a-xprofile-fields-group-from-editing/ adding it to bpcustom.php.

    It worked as a charm, and the group is currently visible only to logged-in users (both in profile view and profile edit). However I no longer need the group to be publicly hidden, but removing the function and the respective add_filter from bpcustom.php does not seem to work: the group stays visible to logged-in users only.

    Unfortunately I have no idea about how to address this issue, the best clue I could figure out is I might have to remove the filter registered by your bit of code (and yet that’s but a guess as my php knowledge is pretty amateurish). I would really appreciate if you could help me figuring out what’s happened, considering that my only change to your code was using my own group ID number.

    Thanks in advance for you attention.

    johnzhel
    Participant

    How to allow users to create more profile fields? For instance, in the “career” field area, people can add more fields to enter each job he/she had before.

    In other words, the default “Career” field has places to enter the first job info (Company, Years, position, etc.). If the user had more than one job, she/he would be able to create a set of fields (seats) to enter another job’s info.

    Is this do-able? Any plugin can do?

    Thanks!
    John

    3T_MJ
    Participant

    the xprofile fields are driving me crazy.

    I am about to adapt the register page to me needs.

    I do want the text “(required)” getting replaced by “*” and star should be styled in red color.

    Unfortunately the (Required) doesn’t have an own css class. I added a span tag with css class to the basic fields in register.php but I don’t find where to do this for the xprofile fields.

    It also doesn’t work if I try to add the css class in the language file, it gets displayed as plain text then.

    if I style the label not only the “*” but also the label title will turn red. I don’t know what else I could do?

    ICan someone give me a hint where I can add the <span class=”required”>*</span> for the xprofile fields that are mandatory?

    I thought it would be easy to add some simple css but unfortunately it seems to be impossible. Or have I overlooked something?

    #244552
    ourweb
    Participant

    I have some custom profile fields, members can edit them but they are showing on profile

    #244549
    JECPFG
    Participant

    Hi djsteveb, I appreciate that but it’s been several days since I asked on the wpmudev’s support forums and they haven’t replied yet, so I’m anticipating the “you’ll need to ask BuddyPress” response. I figure if I ask in both forums, one side may have an answer.

    And since this is a function of the BuddyPress Profile Fields, I assumed I might have a better chance of getting a response here anyway. I know this isn’t overly complex for someone who knows the answer, I’m just hoping to find someone who does.

    #244526
    danbp
    Participant

    @douglaslovin83

    You’re lucky !
    Download the latest version of the plugin, as it seems that this is now in since 101 minutes:
    Added support for Buddypress custom profile fields

    https://plugins.trac.wordpress.org/browser/wp-auto-affiliate-links/

    DanielEngelhardt
    Participant

    Howdy,

    i would like to add a user role to a new user during registration, depending on a fields value in the registration form.
    example: on my registration form a user can choose between two values via radio buttons. If he choses value A, role A should be added to this user. If he choses B, role B should be added to the user.

    How could i do that? I read this: http://octalforty.com/articles/assigning-role-on-wordpress-registration-profile-page/ but it aims at the wordpress registration form and does not use buddypress extended profile fields.

    Thanks for any help
    Daniel

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