Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 826 through 850 (of 3,608 total)
  • Author
    Search Results
  • #250447
    modemlooper
    Moderator

    BuddyPress search is not 100% accurate. Member search searches usernames and profile fields. Think of it more like a filter than search.

    #250338
    miguelcortereal
    Participant

    Issue solved.

    It was a function at child theme filtering one of the xprofile fields.

    Thanks a lot for your concern.

    #250283
    shanebp
    Moderator

    afaik, by default all profile fields are visible ( and editable ) by site admins.
    So there is no need for Visibility: Admins Only.
    Fields set to Visibility: Only Me will be visible to the member and site admins.

    #249918
    shanebp
    Moderator

    There are several multi-select fields available when you create a profile field.
    https://codex.buddypress.org/administrator-guide/extended-profiles/

    #249905
    johnywhy
    Participant
    #249904
    johnywhy
    Participant
    #249838
    shanebp
    Moderator

    I’ve added a group in BuddyPress profile panel…

    If you add / move that group into the Base (Primary) field group in wp-admin > Users > Profile Fields, then it will appear on the registration screen.

    #249742
    johnywhy
    Participant

    the basic php filter code was share with me, needed for this. Now i’m investigating how to put a ‘Rich Text’ checkbox on the fields editor.

    Feel free to help over here
    https://wordpress.org/support/topic/how-to-add-textarea-field-to-buddypress-xprofile-custom-fields-type

    thx!

    #249741
    johnywhy
    Participant

    thank you very much!

    your solution is slightly different from this other one, which helps me learn.
    https://wordpress.org/support/topic/how-to-add-textarea-field-to-buddypress-xprofile-custom-fields-type?replies=5#post-8009134

    thx!

    #249701
    johnywhy
    Participant

    note, i also edited the .po file, and generated a new .mo from that

    you can download my zip here:
    https://www.dropbox.com/s/nx0ox3weg5khlpi/buddypress-xprofile-custom-fields-type-JW-TEXTAREA.zip?dl=0

    i noticed modernizr.js mentions ‘textarea’. Not sure what it’s doing, but i don’t think this is the cause:
    ‘ var c = a.html5 || {},
    d = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,
    e = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,
    f, g = “_html5shiv”,
    h = 0,
    i = {},
    j;
    (function() {
    try {
    var a = b.createElement(“a”);
    a.innerHTML = “<xyz></xyz>”, f = “hidden” in a, j = a.childNodes.length == 1 || function() {
    b.createElement(“a”);
    var a = b.createDocumentFragment();
    return typeof a.cloneNode == “undefined” || typeof a.createDocumentFragment == “undefined” || typeof a.createElement == “undefined”
    }()
    } catch (c) {
    f = !0, j = !0
    }’

    #249700
    johnywhy
    Participant

    hmm, ok, taking a different approach. i’m inspecting donmik’s files in ‘buddypress-xprofile-custom-fields-type’. Hope that’s ok, donmik!

    i found ‘datepicker’ in:

    bp-xprofile-custom-fields-type.php
    classes\Bxcft_Field_Type_Datepicker.php
    lang\buddypress-xprofile-custom-fields-type.pot
    lang\en_US.mo
    lang\en_US.po

    (ignoring the non-english files for the moment).

    i simply duplicated all the ‘datepicker’ code-chunks in these files, and replaced ‘datepicker’ with ‘textarea’.

    also duplicated the file ‘classes\Bxcft_Field_Type_Datepicker.php’, renamed it ‘Bxcft_Field_Type_Textarea.php’, and removed any date-specific code i found there.

    and so on and so forth.

    then i zipped it, uploaded to wordpress, activate, and added my new Textarea field to a form.

    i actually got no errors, and actually got a text field on my registration form!

    unfortunately, it’s only a one-line textbox, not a multiline textarea.

    hrm. In inspector, the displayed field is:

    <input type="string">

    so something in donmik’s code, or BP, or WP, is causing this to render as an <input> rather than <textarea>

    ….

    #249696
    johnywhy
    Participant

    thx for that! css will be our quick-and-dirty fallback. But not a long-term solution.

    it would be cool to develop a proper control. i’m guessing this is part of the recipe for displaying on the user-profile page:

    bp_profile_field_data()

    but would be awesome if someone can share the full recipe to develop a custom field.

    i’m looking here for clues-

    Profile Fields Loop

    and also searching the buddypress install for ‘multiselectbox’– just to see how that one gets handled 🙂

    thx!

    #249689
    calvin
    Participant

    After adding the fields you want using xprofile, go to your regi page. If you are using google chrome, right click on the multiline box and inspect

    you should find out the the id of the visual/text box something similar this ‘wp-field_664-editor-tools’ (yours should be a bit different cos field number is different)

    you should also find out the id of the mce panel using the same method

    After that you should be able to add the custom css to your theme stylesheet.
    Example (hiding the item using css):
    #wp-field_664-editor-tools {display:none;}

    You may need to double check on the edit profile page. if it still appears there, you can use the same method to hide it.
    Hope this helps.

    #249668
    johnywhy
    Participant

    hi, thx for reply.

    enter in user registration form, and display in user front-end profile.

    want to be able to use it like any other field in “user fields” editor.

    thx!

    #249651
    SuitePlugins
    Participant

    Greetings vendocartoni,

    Cimy User Extra Fields seem to serialize these entries in the database. I do not know of a tool to assist with the import but if you are familiar with coding you can use maybe_unserialize to unserialize the data to an array then create an update/insert function to store the information to BP Profile.

    #249648
    johnywhy
    Participant

    Solved.

    It’s this plugin:

    Introducing Conditional Profile Fields for BuddyPress plugin


    really appreciate the awesome developer who built this!

    not this one. Unfortunately doesn’t work on WP 4.4.2
    https://wordpress.org/plugins/buddypress-conditional-profile-field/

    #249532
    skunkgrunt
    Participant

    Why in the world is it this difficult? This should be in buddypress core. Considering that buddypress is supposed to be a social network out of the box, and member profiles are such an integral part of any social network, very little thought has gone into the profiles page.

    Compare adding fields in buddypress to any other social network platform (elgg, oxwall, jcow, dolphin, etc.) and it’s just not there. Why should I have to dig into code just to add a profile field. There should be a drag and drop profile builder.

    Avatar location, cover photo, customizable sections and profile fields; they should all be drag and drop.

    I wish I was a coder. This is #1 on my priority list of buddypress improvements.

    #249530
    skunkgrunt
    Participant

    I’d love to know more about this as well. I’ve been trying to find anything on modifying and customizing the profile page, but there is a serious lack of info on this subject. It’s like everyone using buddypress is perfectly willing to accept a crappy and mediocre profile page.

    The most frustrating part for me is the simple inability to add custom fields from the backend to the profile page. Why in the hell is this so difficult?

    Anyway, sorry for the mini rant, but at least I know I’m not alone in my quest.

    shanebp
    Moderator

    You can add profile fields via wp-admin > Users > Profile Fields

    You can search those fields with this plugin:
    https://wordpress.org/plugins/bp-profile-search/

    #249364
    shanebp
    Moderator

    My guess is that another plugin or some custom code or your theme is trying to apply a filter to
    bp_get_the_profile_field_id but the $field is not available.

    Try deactivating any plugins that deal with profile fields.

    To confirm that the issue is in your theme, try switching momentarily to a WP theme like 2013.

    #249218
    Turker YILDIRIM
    Participant

    I believe this not an issue because BP only needs an email, username and a password to do a succesfull registration. All other inputs may change for each site.

    You can use a plugin(like “contact form”) to create registration forms and then assign form inputs into custom created xprofile fields.

    #249114
    Xtremefaith
    Participant

    Still working on this, I discovered something while debugging:

        1) If I set my priority to 1​ like so:

        add_action('bp_core_activated_user', array( $this, 'setup_registration_metadata'), 1 );

        then in my setup_registration_metadata() function I use add_user_meta() to capture the first_name & last_name values at that point in time. Thankfully it makes an entry in the usermeta table with the expected value from get_user_meta($user_id, 'first_name', true)

        2) Unfortunately, something else apparently is hooked afterwards (possibly a method from the “Enable BuddyPress to WordPress profile syncing”, which then overrides any value I had set for those fields so that in the end the WordPress fields are now incorrect or wiped.

    It seems apparent to me that the “Enable BuddyPress to WordPress profile syncing” option is the culprit, but would that be a bug that the setting is grabbing the wrong values because even if I don’t hook into bp_core_activated_user the meta values that were successfully stored at registration are then wiped during activation? For example:

    • first_name becomes the username
    • last_name is cleared completely

    Setting the priority to 20 the results show that by that point the originally stored meta_value(s) have already been wiped.

    #249065
    shanebp
    Moderator

    ‘WordPress database error: [Unknown column ‘user_id’ in ‘field list’]’

    There is no user_id field in bp_xprofile_fields.
    The correct table is bp_xprofile_data.

    value is a text field, so you need quotes: AND value = '45'";

    Instead of AND value !empty"; try AND value != ''";

    $wpdb->get_var returns a single value. Try $wpdb->get_col.

    Your issues could have been solved by examining the table structure and reading reference docs like https://codex.wordpress.org/Class_Reference/wpdb.

    #249034
    Hellbounds
    Participant
    <?php do_action( 'bp_before_profile_loop_content' ); ?>
    
    <?php if ( bp_has_profile() ) : ?>
    	<ul class="accordion">
    	<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    
    		<?php if ( bp_profile_group_has_fields() ) : ?>
    
    			<?php do_action( 'bp_before_profile_field_content' ); ?>
    
    				<li>
    				  <h5 class="accordion-title <?php bp_the_profile_group_slug(); ?>"><?php bp_the_profile_group_name(); ?><span class="accordion-icon"></span></h5>
    				  <div class="accordion-content">
    						<dl class="dl-horizontal">
    
    							<?php  while ( bp_profile_fields() ) : bp_the_profile_field(); ?> 
    
    								<?php if ( bp_field_has_data() ) : ?>
    
    									<dt><?php bp_the_profile_field_name(); ?></dt>
    									<dd><?php bp_the_profile_field_value(); ?></dd>
    
    								<?php endif; ?>
    
    								<?php do_action( 'bp_profile_field_item' ); ?>
    
    							<?php endwhile; ?>
    						</dl>
    
    				  </div>
    				</li>
    			<?php do_action( 'bp_after_profile_field_content' ); ?>
    
    		<?php endif; ?>
    
    	<?php endwhile; ?>
    	</ul>
    	<?php do_action( 'bp_profile_field_buttons' ); ?>
    
    <?php endif; ?>
    
    <?php do_action( 'bp_after_profile_loop_content' ); ?>
    #249016
    Slava Abakumov
    Moderator

    “Tab Base”

    To delete Base and all other fields groups names in user profile:
    1. find in your theme file /buddypress/members/single/profile/profile-loop.php
    2. Delete in that file: this line: <h4><?php bp_the_profile_group_name(); ?></h4>

    If you don’t have such file in your theme, than copy this file:
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php
    into your theme here:
    /wp-content/themes/[your-theme]/buddypress/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php
    and remove the line that I wrote above (with h4).

    Members Directory – All Members

    1. find in your theme file /buddypress/members/index.php
    2. Delete in that file the line with this text: id="members-all"

    If you don’t have such file in your theme – do the same thing as written above but for index.php file.

    You should understand, that this will break ability to filter results on members directory page.

Viewing 25 results - 826 through 850 (of 3,608 total)
Skip to toolbar