Well, that was easy. I just try and clarify things and it gets hunted down by Andy. I could get used to this.
Found the problem, if you update to the latest it’s fixed.
In this first version it’s not possible to re-arrange, but it’s a high priority feature once 1.0 is out.
I chose a certain set of profile fields a while ago when I first installed bp, and I’ve had a number of users fill out their profile.
Now I realize that I would like to add/rearrange/remove profile fields that are more relevant but don’t want to lose all of the data that my users have entered.
Is there any way of doing this?
So far, I feel like the only things I can do are add a profile field to the end of the form and delete a profile field which deletes my users data they entered in that field.
I’ve reset my email domain registration limitations if you want to test on wearesau.net.
If I leave it blank or deselect checkboxes (or any applicable action that means leaving it blank/unused) the information does not disappear from the user profile. The previously active checkboxes still show, the deleted information in the text field still shows, etc.
If you go back to the “edit” screen the checkboxes will still be deselected and the text field will still be empty, and hitting “submit” will give you a success message, but the info will still show on the viewable profile.
I’m way confused as to what you are talking about.
1) You enter info in a profile field. Save the profile.
2) The info shows in the profile field.
3) You change the info in a profile field, leaving it blank. Save the profile.
What happens then?
I’m on trunk 1292 and when I add a value to a profile field and then remove it, the field value doesn’t change. If I change the field value it’ll change.
For example, I established a “Degree” field in the “Education” group. I went to the user profile screen and added the word “Education” to the degree field and hit submit. I viewed the profile to be sure it was there, and then went back to the Education group tab, deleted the value of the textbox, and clicked submit. When I went back to the user profile the field still displayed with the work “Education” as a value. The same goes for a set of checkboxes I have on the “About Me” group. I checked 2 boxes, submitted, unchecked, submitted, but they still show on the user profile. None of these fields are marked as required.
I noticed it this morning on trunk 1290 and upgraded fully to 1292 and retested before reporting. Has this been seen before or is it ticket-worthy?
member/blog listings on the right sidebar on member and blogs page shows all the contents from group1 profile fields. This is causing the list too long. I think it’s better to show excerpts of user profiles, or just the user names.
The theme and the profile back end don’t support this right now but there is a mod you can try.
Change line 11 which reads:
<?php if ( bp_field_has_data()) : ?>
To read:
<?php if ( bp_field_has_data() && bp_field_has_public_data()) : ?>
In /bp-themes/buddypress-member/profile/profile-loop.php
Then you will manually have to use phpmyadmin and go into the table bp_xprofile_fields and change all the profile field records that are parent fields and have \’0\’ in the column \’is_public\’ to \’1\’ for the fields you want to show on the profile and \’0\’ for the fields you don\’t want to show.
Parent fields are the ones that have a \’0\’ in the \’parent_id\’ column.
Any field you create in the profile backend will appear in each user’s profile. Even if it doesn’t have anything in it.
More fields:
if ( 999 == $field_id || 998 == $field_id || 2 == $field_Id)
and if I want more fields not auto-linked? How can I set multiple field ids?
is there a way to associate a image to each profile field so it was like a category icon or whatever. can this be done very easily?
i have profile fields on my site for users to place links to there myspace twitter bebo etc
it would be cool if i could show an icon so these users are more inclined to put there links
thanks
@DJPaul: I tried that. I created one profile and exported the database using phpMyadmin. But the excel sheet looks too confusing. I’ll try this once more time though.
@Burtadsit: Yes, that’s most confusing.
Let’s say, I’ve created following fields in buddypress:
Name:
Email:
Phone
Job:
Occupation:
My old database too; has all this data. How do I go about importing? Is there any better way than excel import?
You can import anything you want into a mysql table. The catch is that tables relate to each other. The profile fields you see are composed of three tables that interrelate. We’ve got profile groups, fields and field data. Groups are composed of Fields and Fields have Data. They are all linked to each other.
What is the source data you are working with?
When will this be fixed officially? Commenting out the add_filter removes all the auto linking functions. I only want one section without auto linking.
Hi,
I’m wondering if I can import data to profile fields in Buddypress. If yes, how should I design the tables in Excel?
User generated profile fields! I’d like if this feature is built in or by a plugin. However at this moment, wpmu admin is the only person who can add/delete profile fields.
Not sure egerrits. Don’t know what the context is. Are you sure that is what is happening there? If those are single quotes in this chunk of code then $meta[‘field_{$custom_field_id}’] = ‘Hello World’; then that won’t work. The resolve as string operation ‘{}’ doesn’t work in single quoted strings. Only double quoted strings.
Can anybody tell me why the following code works for custom profile fields but not the built in FullName field?
$meta[‘field_1’]
‘Hello World’;
$meta[‘xprofile_field_ids’]
“1,”;
$_SESSION[‘xprofile_meta’]=$meta;
wpmu_signup_user($user_data[‘user_login’], $user_data[‘user_email’], apply_filters( “add_signup_meta”, array()) );
This code works though:
$meta[‘field_{$custom_field_id}’]
‘Hello World’;
$meta[‘xprofile_field_ids’]=$custom_field_id.’,’;
$_SESSION[‘xprofile_meta’]=$meta;
wpmu_signup_user($user_data[‘user_login’], $user_data[‘user_email’], apply_filters( “add_signup_meta”, array()) );
this post will probably be locked by a moderator(sorry), but I simply have to ask:
I would like to pay you to customize a script for me… it’s the “Bulk Import Users”
http://manojkumar.org/bulk-import-members-users-plugin-for-buddypress-site
instead of just:
username|firstname lastname|email@email.com
i want to add additional fields/xprofile fields that can be imported
like this:
username|firstname lastname|extra_field|email@email.com
the Extra_field would be an xprofile field
I have also changed the “Full Name” to “First Name” and added an additional field for “Last Name”
so the new import line would look like this:
username|field_1|field_2|field_3|email@email.com
I’ve got $25-$100 for you if you can do this asap
I posted this to original plugin creators website(he deserves the first crack at it)
but i really need this done…deadlines suck…
please email me
enlightenmental(at)gmail(dot)com
Never mind the question about date format. We don\’t get a choice. I need to know if the data is getting saved and not being displayed or just not getting saved. Can you take a look at the bp_xprofile_data table and see if there is anything in there for that date field?
The bp_xprofile_data table looks like this: id, field_id, user_id, value, last_updated. The field_id is basically the sequence you entered the fields in the backend. Starting at 1, you can prob count down the list and guess at the field_id. If you’ve done alot of arranging things with deletes and adds it might not be that simple.
field_id comes from another bp table called bp_xprofile_fields. If you browse that table with phpmyadmin you’ll see your date field. Whatever you called it will be in the ‘name’ column. The field_id you are looking for is the ‘id’ column in that table. Match that up with the field_id in the bp_xprofile_data table and tell me what that row says for that field_id.
You should have a number like: 1210392000 in the ‘value’ column. That’s a linux time number. What’s in that spot for your date field? Matter of fact, try changing and saving the profile data and then go look at the tables. What does phpmyadmin say for that row in the table?
Needed:
filter for the bp-xprofile to hide and disabled profile fields if the profile field name is given? (hide so only level 10/admin can see, disable so it cannot be changed)
i.e.
if xprofile field = referred by, last name
remove filter… add filter…
then I can hide the profile fields on the member page after a user has registered…
(dont want to show the world last names or referred by #)
this probably easy enough for one of you gurus… let me know what you think