Search Results for 'profile fields'
-
AuthorSearch Results
-
March 2, 2016 at 3:56 am #250447
In reply to: How does the search function?
modemlooper
ModeratorBuddyPress search is not 100% accurate. Member search searches usernames and profile fields. Think of it more like a filter than search.
February 28, 2016 at 12:35 pm #250338miguelcortereal
ParticipantIssue solved.
It was a function at child theme filtering one of the xprofile fields.
Thanks a lot for your concern.
February 25, 2016 at 5:45 pm #250283In reply to: Create user field visible to user and admin only
shanebp
Moderatorafaik, 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.February 16, 2016 at 5:26 pm #249918In reply to: Multi option for selecting
shanebp
ModeratorThere are several multi-select fields available when you create a profile field.
https://codex.buddypress.org/administrator-guide/extended-profiles/February 16, 2016 at 2:43 am #249905In reply to: How to show field-froups on Registration form?
johnywhy
ParticipantFebruary 16, 2016 at 2:39 am #249904In reply to: How to show field-froups on Registration form?
johnywhy
ParticipantFebruary 13, 2016 at 7:33 pm #249838shanebp
ModeratorI’ve added a group in BuddyPress profile panel…
If you add / move that group into the
Base (Primary)field group inwp-admin > Users > Profile Fields, then it will appear on the registration screen.February 11, 2016 at 4:33 am #249742In reply to: Request: Add multi-line, plaintext field
johnywhy
Participantthe 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-typethx!
February 10, 2016 at 11:44 pm #249741In reply to: How To Get Plaintext Multiline Field?
johnywhy
Participantthank 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-8009134thx!
February 10, 2016 at 3:24 am #249701In reply to: How To Get Plaintext Multiline Field?
johnywhy
Participantnote, 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=0i 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
}’February 10, 2016 at 2:38 am #249700In reply to: How To Get Plaintext Multiline Field?
johnywhy
Participanthmm, 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>
….
February 9, 2016 at 10:29 pm #249696In reply to: How To Get Plaintext Multiline Field?
johnywhy
Participantthx 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-
and also searching the buddypress install for ‘multiselectbox’– just to see how that one gets handled 🙂
thx!
February 9, 2016 at 8:42 pm #249689In reply to: How To Get Plaintext Multiline Field?
calvin
ParticipantAfter 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.February 9, 2016 at 6:33 pm #249668In reply to: How To Get Plaintext Multiline Field?
johnywhy
Participanthi, 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!
February 9, 2016 at 2:15 pm #249651SuitePlugins
ParticipantGreetings 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_unserializeto unserialize the data to an array then create an update/insert function to store the information to BP Profile.February 9, 2016 at 5:55 am #249648In reply to: Where’s Conditionals?
johnywhy
ParticipantSolved.
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/February 6, 2016 at 12:13 pm #249532In reply to: Display profile fields on members page
skunkgrunt
ParticipantWhy 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.
February 6, 2016 at 12:04 pm #249530In reply to: Buddypress Profile Look
skunkgrunt
ParticipantI’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.
February 1, 2016 at 11:30 pm #249367shanebp
ModeratorYou 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/February 1, 2016 at 10:29 pm #249364In reply to: Trying to get property of non-object
shanebp
ModeratorMy guess is that another plugin or some custom code or your theme is trying to apply a filter to
bp_get_the_profile_field_idbut the$fieldis 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.
January 28, 2016 at 1:12 am #249218In reply to: Multiple Registration Forms?
Turker YILDIRIM
ParticipantI 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.
January 26, 2016 at 1:39 am #249114In reply to: Setting up activated users with stored metadata
Xtremefaith
ParticipantStill 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 useadd_user_meta()to capture thefirst_name&last_namevalues at that point in time. Thankfully it makes an entry in the usermeta table with the expected value fromget_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_userthe 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.January 24, 2016 at 4:11 pm #249065In reply to: Getting user_ids from database error
shanebp
Moderator‘WordPress database error: [Unknown column ‘user_id’ in ‘field list’]’
There is no
user_idfield inbp_xprofile_fields.
The correct table isbp_xprofile_data.valueis a text field, so you need quotes:AND value = '45'";Instead of
AND value !empty";tryAND value != ''";$wpdb->get_varreturns 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.
January 23, 2016 at 2:00 pm #249034In reply to: Hide or delete tab Profile ( Base)
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' ); ?>January 22, 2016 at 10:38 pm #249016In reply to: Hide or delete tab Profile ( Base)
Slava Abakumov
Moderator“Tab Base”
To delete
Baseand 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 (withh4).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.phpfile.You should understand, that this will break ability to filter results on members directory page.
-
AuthorSearch Results