Search Results for 'profile fields'
-
AuthorSearch Results
-
April 12, 2017 at 10:29 pm #265391
In reply to: How to delete fields from extended profile?
shanebp
ModeratorTry going to
.../wp-admin/users.php?page=bp-profile-setup.
If the fields appear there, you should be able to delete them.April 12, 2017 at 3:10 am #265378Topic: XProfile Fields Limit or Max
in forum How-to & Troubleshootingbradleyrf
ParticipantHey folks,
I’m running into the “are you sure you want to do this?” message when I try to add another value to an xprofile field. Is there some kind of limit or PHP value that value that might need updating? Or maybe a WP memory limit? I can delete a value and add it back but then when I try to add an additional one I get the message again. I have over 500 values for this field currently.I’ve deactivated all plugins, except Buddypress of course, tried the default theme. There are no errors in the errors logs.
Thanks for any and all assistance!
WP 4.7.3 and BP 2.8.2
March 16, 2017 at 12:11 am #264754In reply to: Change “Name” Field to First & Last Name
maccast
ParticipantI was dealing with this problem too. It might not be exactly what you’re looking for, but in my case I just decided to hook into the BP signup, extract the full name, split it at the first space and then update the WordPress ‘first_name’ and ‘last_name’ user metadata fields with the results.
Here is the code you can add to your
functions.phpor custom plug-in:// define the bp_core_signup_user callback function ac_bp_core_signup_user( $user_id ) { // make action magic happen here... $fullname = bp_get_member_profile_data( array( 'field' => 'Name', 'user_id' => $user_id ) ); //split the full name at the first space $name_parts = explode(" ", $fullname, 2); //set the firstname and lastname for WordPress based on the BP name //firstname if( isset($name_parts[0]) ) update_user_meta( $user_id, 'first_name', $name_parts[0] ); //lastname if( isset($name_parts[1]) ) update_user_meta( $user_id, 'last_name', $name_parts[1] ); //not needed for an action, but I always like to return something return $fullname; } // BuddyPress save first name last name to WP profile on signup add_action( 'bp_core_signup_user', 'ac_bp_core_signup_user', 10, 1 );March 14, 2017 at 8:51 pm #264719In reply to: Profiles: How to expand it?
laellou
ParticipantWhen I go in administration menu users, there is no profile fields entry and i dont have a multisite, but the component is activated in the component section what can I do ?
March 12, 2017 at 4:10 am #264676In reply to: Info not saving on edit profile page
mortspud
ParticipantI have managed to fix this and here is the solution in case anyone is interested:
The problem was at the bottom of edit.php:
<input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />Because I manually called certain xprofile fields by their ID, I had to specify which profile fields to write back to.
This:
<input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />Became this:
<input type="hidden" name="field_ids" id="field_ids" value="73, 83, 106, 27" />March 8, 2017 at 9:39 pm #264586In reply to: Profiles: How to expand it?
r-a-y
KeymasterView this guide to create your own profile fields:
March 7, 2017 at 6:59 pm #264557In reply to: Record activity when xprofile field is updated
exentric
Participantok from all the reading I have done , this in buddypress is impossible to do …… any other suggestions , all i need is a field in the profile fields that when is updated will show in the activity stream ?
March 2, 2017 at 3:43 am #264440In reply to: City, State, Country Location Plugin
psnation
ParticipantYes, it works with xProfile fields. You just set it as a text box. You can see it on my registration page. No need to join the site. Just type in the city box and it’ll populate.
March 2, 2017 at 3:38 am #264439In reply to: City, State, Country Location Plugin
Henry Wright
ModeratorThat’s an interesting plugin. Do you know if the location fields are xProfile fields?
February 27, 2017 at 4:26 pm #264218In reply to: [Resolved] List Available option within custom field
Venutius
ModeratorDo you mean you have created additional profile fields? If so BP Profile Search plugin would allow you to do that.
February 26, 2017 at 10:37 pm #264195In reply to: BP profile data added to a custom post type
cbloom1919
ParticipantThank you for the response. I am trying to piece this together and am wondering- on the page that you linked me to, do I use the “Usage” code, paste it in my theme’s function.php file and use it each time I define a profile field that I need to call? If I use user_id = -1, will it just return data for the currently logged in user? Also, once the query returns the profile fields, how do I get it attached to my post? Where do I give it a parameter name?
(I’m new to php, so apologies if my questions are unclear/not using the correct terminology).
Thanks again.
February 26, 2017 at 6:13 am #264183In reply to: BuddyPress Newbie. Help needed on some issues
troy34
ParticipantThanks for your response. How do I get the users to select if they’re doctors or just normal member during registration so that they won’t have access to the extra profile fields meant for the doctors when they log in?
ThanksFebruary 26, 2017 at 1:57 am #264179In reply to: BuddyPress Newbie. Help needed on some issues
psnation
ParticipantI would suggest https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/ to create your profile fields. There also conditional field plugins that would allow you to set up different fields to members and doctors.
February 24, 2017 at 5:08 pm #264133In reply to: Show Active Directory Fields in profile
r-a-y
KeymasterFirst, you need to figure out how to fetch the Active Directory data for a user and how to display it. This isn’t dependent on BuddyPress.
Once, you’ve figured that out, you’ll need to hook into the BuddyPress profile template to add those fields.
If you are a WordPress developer, there are various hooks you could use. View the profile template:
https://buddypress.trac.wordpress.org/browser/tags/2.8.1/src/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.phpAnd hook into any of the
do_action()hooks to display your AD data. To get the current user’s ID on a profile page, usebp_displayed_user_id().February 24, 2017 at 7:49 am #264118In reply to: hide members from search results
djsteveb
Participant@johanna75 – We do need some kind of universal “display public ok” field perhaps?
Some people have fields set to ‘friends only’ – so things in search should only display to them.
Bp has a thing in it when a user is marked as spam, then they are only visible to admins – so I think this kind of functioning is half in there already.
Would be nice for the buddyblock and rtmedia plugins to also consider this visibility thing, and for buddyblock to be able to conditionally affect that as well.
I could see the need for someone to hide certain things from the public and from specific people – what a nightmare it is when things that were assumed secret pop up in search results.. I had this happen with a wp install – pages published but password protected – well either the theme, or the post teaser plugin pulled data from those non public pages and put them smack in the public search results.
Luckily the bp profile search pluing (that I also use – it’s great!) – is under active development – (I see the author has responded to the support forum on wp repo saying it is an issue that is under consideration, but bp does the same thing – so it’s no different in the privacy regard) wonder if we could ping the other bp peeps and rtmedia and buddyblock peeps tp put some heads together on this..
I have a similar problem right now with rtmedia not meshing with buddyblock. When a user blocks and enemy on my site – that enemy can not message them or comment on their activity – but they can harass the sh*t out of them via comments on their media.
February 22, 2017 at 3:21 pm #264049In reply to: hide members from search results
johanna75
ParticipantI use the BP PROFILE SEARCH plugin (mandatory for members search form i think… because if Deactivate it search form deseapered)
and SuitePlugins – Advanced XProfile Fields for BuddyPressFebruary 21, 2017 at 1:29 am #263973In reply to: Can’t display user profile fields
john.horning
ParticipantWe discussed it here: https://buddypress.org/support/topic/dont-hide-fields-when-user-views-his-own-profile/, but I got stuck. Maybe I’ll revisit.
February 21, 2017 at 12:51 am #263971In reply to: Can’t display user profile fields
john.horning
ParticipantYes I have data. I’ve tried switching themes and disabling all other plugins.
A bit frustrating. I have a lot of fields. That couldn’t be an issue could it?This was supposed to be an alternative to the user profile page. I’m merely trying to get all fields to show, regardless of whether there’s data or not. I tried in vain to modify the profile page.
Any more suggestions?
February 18, 2017 at 7:36 pm #263923In reply to: BP 2.8.0 Update Broke Profiles
leewells
ParticipantThanks Shane! I’ll give this a shot when I get back to home this evening and let you guys know how it works out. I’m afraid the little profile I made doesn’t do any sorts of compares, it just lets me know if it is loaded before or after certain other hooks like init, the_content and such.. I’ll have to reopen that and add bp_load and get a better idea of where it loads to buddypress though.
My I make a request, though, developer to developer 😛 This seems to have broken a lot of plugins and I like to say I follow the methods of WordPress to the letter without getting hacky :P. If changes like this are made, can we still preserve a method of backward compatibility? The profile info, for instance shouldn’t matter much when it loads, so long as the BP class is loaded, which means, I guess what I’m saying is I’m drawing a blank to what it would be that would require the xprofile fields to be dropped to such a low load order that it doesn’t initialize with the plugin class init.
February 17, 2017 at 9:01 pm #263892In reply to: BP 2.8.0 Update Broke Profiles
shanebp
ModeratorYou need to pass additional fields – and in the correct order.
http://hookr.io/functions/xprofile_get_field_data/February 17, 2017 at 7:37 pm #263883In reply to: Can’t display user profile fields
john.horning
ParticipantActually – looks like the problem might be with bp_the_profile_field_value(). I’m able to display all the fields with labels, but no values.
February 14, 2017 at 7:23 am #263760In reply to: Need help! After Update the Image URL is Broken
bheyne
ParticipantI’m slowly approaching the solution. If i deactivate the plugin “BuddyPress Xprofile Custom Fields Type”. The Pictures are back. They overwrite the URL i think.
February 6, 2017 at 6:13 am #263534In reply to: How to have some public viewable pages?
djsteveb
Participantwith my default bp installs just about everything IS public.. it’s actually not easy to make the bp pages like activity and groups and such private.
I think most of those things are fine to be public – and people can choose to make groups members only, logged in only, or public viewable.. default is all public I think..
Most profile fields the user can choose similar privacy settings for certain fields if you allow..
Sometimes I make a group non-pulbic viewable as super admin..
I also choose a lot of things to be blocked by the robot search engine spiders – as there is no need for them to go pulling 100 pages of activity feed and such – so even though most of my BP site is publicly viewable, only about half of it is (supposed to be) crawled by the big engines – most follow the robots.txt directive – but not all..
February 2, 2017 at 5:49 pm #263470In reply to: query error from bp_xprofile_field
danbp
ParticipantWhere did you find that code?
Have you tried to replace it by:
SELECT * FROM bp_xprofile_fields WHERE parent_id = 0 AND group_id > 1February 2, 2017 at 7:05 am #263442mpcadm
ParticipantI solved the problem. It’s in “Profile Fields” in Users. Want to delete this.
-
AuthorSearch Results