Search Results for 'profile fields'
-
AuthorSearch Results
-
July 12, 2010 at 9:22 pm #85322
roelant
ParticipantThe first profile group I expanded with some standard fields like, first name, last name, address, country, date of birth and gender.
Just the basic things about a person I think.Please tell me how and what I should change in the php-file and I will give that a try tomorrow!
July 12, 2010 at 8:48 pm #85313r-a-y
KeymasterDid you create separate profile groups? If so, only the first profile group will be displayed on the registration page.
If you want to add all fields to the registration page, you have to add them all to the first profile group.
July 11, 2010 at 8:00 pm #85165In reply to: Privacy for Users
bryzo
ParticipantSo I’m using the BP Profile Privacy field but its not privacy protecting the activity stream or anything else…just profile fields. How can I prevent anyone but friends from seeing the profile fields, or albums, etc.
July 11, 2010 at 5:26 pm #85146In reply to: How to filter extended profiles fields editings?
contoaberto
Member@mwspr
Thank u very much.@boonebgorges
Would u please help? Thank u in advance.July 11, 2010 at 8:49 am #85125In reply to: How to filter extended profiles fields editings?
mvvspr
ParticipantIts better to notify using @mention feature.So that you will get your reply faster and also the notification goes to the user you intended to ask.Anyways I will do it for you.
@boonebgorges
hi, Boone Gorges,Thank u very much for the info. But I have to confess I’m very much a newbie to understand what I might have done. Would you mind please explain a bit more – maybe in a dummie way?
July 10, 2010 at 1:16 pm #85017In reply to: Make users able to use brackets in their posts
Shine
ParticipantBy brackets I meant inequality signs ><.
When the members try to use them in their status uppdates, forum posts and profile fields, they simply don’t appear. I’m using WP 3.0 and BP 1.2.5.2.July 9, 2010 at 10:27 pm #84978In reply to: Make users able to use brackets in their posts
Boone Gorges
KeymasterWhat do you mean by brackets?
1 ( these )
2 { these }
3 [ these ]
or something else?What’s happening when users try to use them? And in what context are they using them, activity updates or forum posts or profile fields or what?
And what version of BP/WP are you running? https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/when-asking-for-support/
July 7, 2010 at 4:17 am #84551In reply to: Function/Call to access Custom Profile Fields?
Aslam Doctor
MemberI’m also facing same issue.. even I added manually insert query inside code like this (I have stored the values in session)
$sql=”INSERT INTO wp_bp_xprofile_data (field_id, user_id, value) VALUES(1,$curr_id, ‘”.$_SESSION.”‘)”;
result=mysql_query($sql)or die(mysql_error());This is storing the data in database but not retrieving

@shedmore did u got this fixed up ???July 6, 2010 at 1:36 pm #84435In reply to: profile fields by id
Boone Gorges
KeymasterCool, good luck!
July 6, 2010 at 1:35 pm #84434In reply to: profile fields by id
Horoshiy
Participantok, thank you for help! I’ll do it by grouping, it’ll be better…
July 6, 2010 at 1:21 pm #84442In reply to: profile fields by id
Boone Gorges
KeymasterThat will work. The only problem is that it’s not entirely future-proof. If the structure of the $field object changes in future versions of BP, you’ll have to rewrite the code.
If I were you, I would use a profile loop, as described at https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-profile-data-loop-bp_has_profile/. That way you can use the built-in template tags, which won’t break when BP is upgraded.
The xprofile template tags aren’t as fleshed out as I wish they were, but they should work nicely for your purpose. Put the three fields that you want to appear in column 1 in a profile field group, the next three fields in another group, etc. Then it’ll be easy to create the markup using bp_profile_groups() loop.
July 6, 2010 at 12:55 pm #84433In reply to: profile fields by id
Horoshiy
ParticipantMaybe I should be more concrete. My main task is to get profile fields structured inside the profile page. I need to place fields in 3 columns and in right order. So let’s imagine that we have 9 fields: Login, email, password, First Name, Last Name, Middle Name, Country, City, Address, Place of birth, Date of birth. I need to place Login, E-mail and Password in the first column in the page, First name, Last name and Middle name in the second column and Country, City, Address, Place of birth and Date of birth in the third column.
So i have field id’s which i can place in my profile page.Should i do it like this?
echo '';
$field = new BP_XProfile_Field( '1' );
$field_name = $field->name;
$field_value = $field->value;
echo '' . $field_name . ': ' . $field_value . ' ';
$field = new BP_XProfile_Field( '2' );
$field_name = $field->name;
$field_value = $field->value;
echo '' . $field_name . ': ' . $field_value . ' ';
$field = new BP_XProfile_Field( '3' );
$field_name = $field->name;
$field_value = $field->value;
echo '' . $field_name . ': ' . $field_value . ''; echo '
';
/* and so on */
am I right?
July 6, 2010 at 12:28 pm #84428In reply to: profile fields by id
Boone Gorges
KeymasterI understand your question, and you’re right, there is no such function. But from inside of a profile loop, you can use bp_the_profile_field_name(), and it will get the $field_id implicitly from the loop iteration.
If you don’t want to build a loop, you can get the field name from the $field_id like this:
$field = new BP_XProfile_Field( $field_id );
$field_name = $field->name;
July 6, 2010 at 12:16 pm #84424In reply to: profile fields by id
Horoshiy
Participantno-no-no… I think you didn’t understand me… I need to get field name by id but there is NO function
“xprofile_get_field_NAME( $field_name_or_id [, optional $user_id] )”
such as “xprofile_get_field_DATA( $field_name_or_id [, optional $user_id] )” which exists.
July 6, 2010 at 11:45 am #84420In reply to: profile fields by id
Boone Gorges
KeymasterYes, you can do this with the xprofile template functions, which are located at buddypress/bp-xprofile/bp-xprofile-templatetags.php. Use the profile loops in buddypress/bp-themes/bp-default/members/single/profile/profile-loop.php as a template.
July 5, 2010 at 7:36 am #84268In reply to: profile management functions
hms3542
MemberHi, sorry for not responding earlier. First thing, thanks for your reply.
Then, by “custom code”, do you mean i’ll need to do something trickier than a plugin for example ? My plan was to manage some new fields in the WP usermeta table, i think that will be enough, am i Wrong ?
Thanks again,
hms.July 4, 2010 at 12:40 pm #84202Sami kamal
Participantto make registration page multilingual you need to copy the register.php from buddypress/bp-default/registration folder to your themes folder and make your changes by replacing the loop :
http://buddypress.pastebin.com/wC4fCkbT
hope this works for anyone interested..
Edit: this makes only the registration page multilingual, but unfortunately it doesn’t translate the member’s profile view and edit fields.. instead they show what you saved in the profile setup fields in the backend.
July 2, 2010 at 2:04 am #83882In reply to: How to filter extended profiles fields editings?
contoaberto
Memberhi, Boone Gorges,
Thank u very much for the info. But I have to confess I’m very much a newbie to understand what I might have done. Would you mind please explain a bit more – maybe in a dummie way?
June 30, 2010 at 8:53 pm #83677In reply to: Profile edit problem
Jonathan Carroll
ParticipantInteresting: I jsut noticed that if I go to the user dashboard, there is amuch more detailed profile, with may fields, this updates and is correctly working. the buddypress user profile is the one throwing the error / redirect. It also only has 1 field “Name”
Any thoughts?
June 29, 2010 at 3:53 pm #83410In reply to: How to filter extended profiles fields editings?
lincme.co.uk
Member@peterverkooijen said; “There is also zero privacy/security in Buddypress”. Care to expand upon that Peter? Our site isn’t ‘open for business’ yet, but when it is our members will expect some privacy, ie., profile stuff set to private and private group posts actually being private. Are you saying it can’t/won’t be properly private?
June 29, 2010 at 3:48 pm #83409In reply to: How to filter extended profiles fields editings?
Boone Gorges
KeymasterActually, it is possible to do this kind of verification. There’s just no UI for it.
Look in buddypress/bp-xprofile/bp-xprofile-classes.php, method BP_XProfile_ProfileData::save(). There is an action hook ‘xprofile_data_before_save’ that happens (you guessed it) before the save. You could hook a custom filtering function to this action and validate your data that way.
June 29, 2010 at 3:33 pm #83407In reply to: How to filter extended profiles fields editings?
peterverkooijen
ParticipantNo, they’re not possible. Xprofile is an underdeveloped mess with low priority in the roadmap. There is also zero privacy/security in Buddypress, so storing social security numbers is asking for trouble.
June 29, 2010 at 1:48 pm #83397In reply to: How to filter extended profiles fields editings?
contoaberto
Member#plz!
June 28, 2010 at 8:45 am #83213In reply to: profile management
lorenzo
Memberthey don’t get to the dashboard by default, but the link appears in the adminbar. from there things are really confusing for people because in the profile from the dashboard you have the default WP profile fields. from the ‘my profile’ they get the fields of buddypress.
now the quick and dirty thing to do would be to remove the dashboard link from the admin bar, but depending on the roles (i.e. editors and admins) it is handy to have the link.
the question is on the buddypress side: why if buddypress is installed the standard link to edit user in the admin panel is not redirected? (i’m guessing that this would be the easiest thing to do, but i have no clue how
June 27, 2010 at 5:32 pm #83119In reply to: Creating a General Forms Plugin for WordPress!
peterverkooijen
ParticipantWould mm forms work?
Buddypress profile fields are not standard WordPress though. They’re in complicated database tables called xprofile, so if you want to integrate it with anything else fuggedaboutit. You’ll need custom coding.
-
AuthorSearch Results