Search Results for 'profile fields'
-
AuthorSearch Results
-
October 10, 2016 at 10:04 pm #259689
In reply to: [Resolved] Allow html in xprofile fields
lesanis
ParticipantHello danbp,
I have tried all the following but no luck…
function value_field_remove_html_filter() { remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_kses', 1 ); } add_action( 'bp_init', 'value_field_remove_html_filter' ); function edit_value_field_remove_html_filter() { remove_filter ( 'bp_get_the_profile_field_edit_value', 'wp_filter_kses', 1 ); } add_action( 'bp_init', 'edit_value_field_remove_html_filter' ); function data_field_remove_html_filter() { remove_filter ( 'xprofile_get_field_data', 'xprofile_filter_kses', 1 ); } add_action( 'bp_init', 'data_field_remove_html_filter' ); function data_value_before_save_remove_html_filter() { remove_filter( 'xprofile_data_value_before_save', 'xprofile_sanitize_data_value_before_save', 1, 4 ); } add_action( 'bp_init', 'data_value_before_save_remove_html_filter' ); function value_2_field_remove_html_filter() { remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_kses', 1 ); } add_action( 'bp_init', 'value_2__field_remove_html_filter' ); function options_before_save_field_remove_html_filter() { remove_filter( 'xprofile_field_options_before_save', 'bp_xprofile_sanitize_field_options' ); } add_action( 'bp_init', 'options_before_save_field_remove_html_filter' ); function default_before_save_field_remove_html_filter() { remove_filter( 'xprofile_field_default_before_save', 'bp_xprofile_sanitize_field_default' ); } add_action( 'bp_init', 'default_before_save_field_remove_html_filter' );I have managed to remove the html filter for Name and Description but I am not able to do the same for Xprofile fields what is that I need. Do you have any suggestions?
October 9, 2016 at 10:10 am #259651In reply to: Bussdypress title and SEO Yoast problem
BGRATED
ParticipantHi guys… I know this is a bit old.
I would LOVE to have it as this.
name – gender – age – city | MyWebsite.comI use the extended profile fields (gender) <- drop down pick only one., (Birthday) as primary and (city) text box.
All are primary and required. I had something like this before (not buddypress) and I found the search results awesome.
Thank you if anyone could help.
The above code works like a charm.October 6, 2016 at 6:51 pm #259547In reply to: [Resolved] Registration Not Saving
October 6, 2016 at 6:39 pm #259546In reply to: [Resolved] Registration Not Saving
metalhead
ParticipantI’ve painfully isolated the issue to Xprofile Custom Fields. After I make changes to the profile fields, the new user registration stops working. (Stops saving new user data – refreshes new user data screen instead of saving.)
October 3, 2016 at 4:09 pm #259367Topic: How to translate xprofile fiels
in forum How-to & Troubleshootingreivilob
ParticipantHi
How can i translate the xprofile fields i add, because the title and default content of my custom fields does not appear in WPML string translation …
OB
October 1, 2016 at 3:49 pm #259312In reply to: Whats new tinymce not showing HTML inline styles
danbp
ParticipantI have nothing to add to what i wrote previously.
Study wp_kses function and see bp_activity_filters.php and try to deactivate the one or other filter.
You may also read through bp-xprofiles-filters.php to see how wp_editor is handled for xprofile fields using rich edit.All this at your own risk, you have to know what you do by removing those filters, as it will open a big security hole in your site.
September 29, 2016 at 5:49 pm #259244In reply to: [Resolved] Account Details Profile Details Merging
metalhead
ParticipantI appreciate your effort, but things like username, email address, and password, are simply not in the profile fields editor; there is no re-arranging them. I wish it was that easy though! That would be nice! This is definitely going to take some php and/or css editing.
September 29, 2016 at 5:21 pm #259239In reply to: [Resolved] Account Details Profile Details Merging
Henry Wright
ModeratorYou should be able to log in to the WordPress admin area > Users > Profile Fields and then drag the Account Profile fields to the Account Details group.
September 27, 2016 at 7:48 am #259142In reply to: Unable To Save Profile Settings
danbp
ParticipantHi @ma3ry,
the issue comes probably from the membership plugin who conflicts with BP registration.
In brief, what ever this plugin does(or not), when BP is activated, you have on registration process the WP login routine (username, email, password) and the little mandatory Name field coming from BP.
That’s all.
What probably happen, is that you don’t have this Name field on Single Membership registering…
Because of this, BP doesn’t know about the user existence and can’t fire the additionnal xprofile fields.That the first diagnostic.
A second one may be more complex, as it is related to the fact you changed the php version and using WP 4.6.xYou certainly made a big DB dump before that change. And also a new WP install – or at least, a WP update. If you made just a WP upgrade, it would be ok to a certain point.
If you started a new install after the php change, the problem can be in the old datas you injected to the new DB. But no panic, it’s only an hypothese at the moment.
So it would be great you give details about this and if possible your server configuration.
September 23, 2016 at 7:56 am #259059danbp
ParticipantHi,
user metas are part of wordpress and stored in wp_usermeta table
xprofile datas are part of BuddyPress and stored in 4 different tables wp_bp_xprofile_ > data, meta, fields, groupsSeptember 18, 2016 at 3:31 pm #258895danbp
ParticipantWhat i want is to show view page content in the landing page of buddypress which is home.php . Is there any way i can achieve that?
bp-templates/bp-legacy/buddypress/members/single/home.php contains dynamic templates and shows by default the member activity template.
If you use the above code, you’ll get Resume as default content. This is the simpliest way to achieve what you want.
FYI: the Resume plugin is 4 years old and no more maintained. In 4 years, many things changed in xprofile component and what you actually can do with these fields is much more evoluted than 4 years ago. IMO, you wouldn’t even have to use it, as you can get a similar result directly with BuddyPress.
September 17, 2016 at 7:08 pm #258872rafiamudasar
ParticipantBasically in the final look I have to remove tabs all together and will have custom links/ buttons here and there to edit profile and cv fields. So I was looking for a hook which will extract cv data onto the landing page. I have copied single directory files into theme child and working on that so basically I want to pull data into home.php file of single directory . hope this explains well
September 11, 2016 at 11:07 am #258626In reply to: BuddyPress Integration with Woocommerce
danbp
ParticipantBest recommendation would be to use this premium plugin
and some additionnal add_on like this one:
https://fr.wordpress.org/plugins/woocommerce-buddypress-integration-xprofile-checkout-manager/Note: BuddyPress doesn’t handle registering, it only shows the wp-login form with some more fields (if xprofile component is activated).
September 10, 2016 at 5:01 pm #258615rafiamudasar
ParticipantSeptember 4, 2016 at 2:17 pm #258363David Cavins
KeymasterHi r083r7-
Within the same site, you could write a short code that would render the profile. Outputting profile data is pretty straightforward: https://codex.buddypress.org/themes/guides/displaying-extended-profile-fields-on-member-profiles/
One another site, I’m less sure. You’d need BP API or similar, which we’re just now writing.
Check our Bowe Codes for some other useful short codes and examples for your own: https://wordpress.org/plugins/bowe-codes/screenshots/
September 3, 2016 at 1:32 pm #258339Topic: These field options are invalid error
in forum How-to & Troubleshootingbradleyrf
ParticipantHey there,
Regarding profile fields (Users>Profile Fields), I have several hundred of one type that’s a drop down select. I moved web hosts two days ago and ever since moving hosts I have been unable to add new options to this one profile field. When I try to add a new option I get an error message at the top that reads “These field options are invalid.”If I change the field type to check box, then it works but then I can not change the field type back to drop box, unless I do so in the database. I contacted the host company and they said it’s not a server-side error.
Any ideas?
I’m using WordPress 4.6, BuddyPress 2.6.2 and it happens with Twenty Sixteen.
September 2, 2016 at 3:17 pm #258313In reply to: How to edit the text in registration page
danbp
ParticipantHi @shughesd,
for clarification, the first topic author mentionned Trying to find where to edit the text above the fields.
Are you looking for the exact same thing ?
Is register.php in the right folder ?/child/buddypress/members/register.php?The only text above the fields when registration is allowed is
Registering for this site is easy. Just fill in the fields below, and we\’ll get a new account set up for you in no time.You have 2 options to edit/modify this string:
– using the language file if you only want to change the text.
– modify it in register.php if you want to change the HTML tag (by default it’s<p>)Other text above fields is the field title.
This can be changed in fields admin. Dashboard > Users > Profile Fields. Edit the field and change the title to your need.And finally, which doesn’t need any alteration of a template or language file, you can use one of the 30 action hooks existing in register.php
You can write a function and hook it to the placeholder of your choice. To do this, you add the below functions to
bp-custom.phpExample
Add a welcome message at the top of the registration page, above Registering for this site.
And another one below it.function my_custom_register_msg_title() { echo '<h2>Welcome on my site !</h2>'; } add_action( 'bp_before_register_page', 'my_custom_register_msg_title' ); function my_custom_register_message() { echo '<p>Thank you for registering.</p>'; } add_action( 'bp_before_account_details_fields', 'my_custom_register_message' );In hope it helps you to understand the principle of operation on templates.
September 1, 2016 at 9:24 pm #258295In reply to: Custom profile fields on registration page
buddycore
ParticipantYou could put all your fields as xProfile and group them in sections.
On top of that you could write some jQuery.
I struggle going into BuddyPress code but I’m sure you could target this with client side validation via jQuery.
It’s not perfect but it could be done.
September 1, 2016 at 8:03 pm #258278In reply to: Terms & Conditions Checkbox
danbp
Participanti can’t replicate your issue. My snippet works as expected and when TOS box is not checked, the registration is aborded.
You can test the error messages appearing for required fields by going to register page. Don’t fill any field and click on regiter. Does this work ?Also do you use any kind of plugin on registration page or for xprofile fileds ? Or other custom code ?
The description field is stripped by default. But you should be able to add an href by using single cotes. But that’s all. If you insert a target to href, it will be removed.
August 31, 2016 at 11:54 pm #258230In reply to: Custom profile fields on registration page
bcanr2d2
ParticipantHave you checked out Buddypress Conditional Profile Fields ?
August 26, 2016 at 4:16 pm #258092danbp
ParticipantAugust 25, 2016 at 12:32 pm #258046danbp
ParticipantThat’s a Firebug question, but not important anyway. Also, there is no need to use all rules, as they are handled by the original CSS. You declare only the part you want to modify for
.labelOpen /child-theme/style.css and add only this: (#xyz123 is the color hex you want to use)
#buddypress table.profile-fields tr td.label,{ background-color: #xyz123!important; color: #xyz123!important; }August 25, 2016 at 8:07 am #258036In reply to: [Resolved] Auto Generated Link in User Profiles
danbp
ParticipantHi,
this feature is currently handled field by field when you’re on the field creation page.
dashboard > Users > Profile Fields
Edit an existing field and see in the right column the box named Autolink. From there you can choose to enable/disable it.For more details about the concerned fields and autolinking, read comments in bp-xprofile/bp-xprofile-filters.php:322
August 24, 2016 at 8:42 pm #258025In reply to: [Resolved] Changing Profile Field LABEL html?
ekko848
ParticipantWell, I was able to do this by going into
wp_bp_xprofile_fieldsin phpmyadmin, finding my Profile Field Label… and changing the value to include the HTML.Also it seems, for some, since there is a 150 character limit, I may have to increase the character limit size to meet my html length.
Thing is, I’m not sure if this is the best way to do something like this?
Editing straight from the database seems a little iffy, I don’t want to potentially break anything.Any comments? Re-assurance?
August 22, 2016 at 5:25 pm #257891 -
AuthorSearch Results