I use buddypress in French but i’ve a problem with the date format!
dates don’t appear in French but in English 
I edited bp-core-template-tags.php and I changed the line 826 from:
// Current date (January 1, 2010)
$date = date( ‘F j, Y ‘, $time_offset );
to
// Current date (1 January 2010)
$date = date( ‘j F Y’, $time_offset );
The format is correct but months are always in English! any solution?
Thank you.
Thanks Paul – that works great.
You mean on all fields? I don’t think it would hurt anything…
@djpaul
That did the trick of adding rel=”me” – but now none of the other profile fields show.
See: http://housingstorm.com/gregfielding/profile/
Hi,
thanks for your reply! I installed that plugin and found it quite confusing. So it did’nt work immediately; I’ll have to spent some time with it this evening.
I hate to bump, but…any ideas?
@gregfielding are you not wanting to use dropdown select for any reason? instead of using checkboxes/radio? Can you have more than one role? If you only need one role per user, why not use dropdown xprofile field and make it required at sign up?
As a work-around, I wonder if I could use this plugin https://wordpress.org/extend/plugins/buddypress-xprofiles-acl/ to assign roles based on the profile field answer.
Then I could more easily show different sidebars depending on roles.
Not the cleanest way to do it. Has anyone else had trouble with checkboxes?
Howdy all,
I am trying to create a website where there are TWO Profile TYPES.
1. Normal User (let’s say soccer players)
2. Client User (coaches and/or teams)
At registration the person chooses the TYPE of USER they are; once they choose Player or Coach, the registration form changes to incorporate the fields for that TYPE of PROFILE. Thus the PROFILE TEMPLATE is different for the PLAYER and COACH.
I am having the hardest time doing this. I can’t even find an example of an outside company who has already done this work in wordpress/buddypress. So even if I want to hire an outside company who has done this; I can’t.
Does anyone know if this is possible?
@pcwriter @johnjamesjacoby
Yup. Bug is definitely still there. Nice find!
@gregfielding
Just tested the snippet by @nuhammadrid above with a dropdown select and it works perfectly.
I found this old trac ticket (pre 1.2.6) but maybe checkboxes/radio buttons are stilla bit buggy with xprofile_get_field_data
Looks much cleaner, but still isn’t working. I tried using a radio button and that didn’t work either.
What I’m trying to do should be simple 
If you are a professional, you get one sidebar. If you are a civilian, you get another. And I’ve got a checkbox on the registration form.
Thanks for all of your help so far you guys…
yet another way to do it, i think…
`<?php
global $bp;
$user_id = $bp->loggedin_user->id;
$type_member = xprofile_get_field_data( ‘Real Estate Industry Professional’, $user_id );?>
<?php if($type_member == 'Yes')
>
Yes Sidebar
<?php elseif($type_member == 'No')
>
Another Sidebar for this option
Sidebar for everyone else
`
yea there’s prolly an easier way to go about it. I’ve just copied/pasted/refreshed different combinations til something worked.
I look forward to seeing something simple to use for stuff like this. hehe
‘if($type_member == ‘Yes’)…`
Either way, even if I create a second function, It isn’t recognizing the profile field.
This seems fishy to me. Is $type_member really the way to call a profile field entry? Or could it be a checkbox issue?
don’t know what I just did but this seems to work…
`loggedin_user->id) == ‘Yes’) : ?>
Red Sidebar
<?php elseif(is_user_logged_in())
>
Another sidebar
`
and you want this to look like this
`//CHECK IF THE ACCT IS CERTAIN ACCT TYPE
function My_Function ($user_id) {
global $bp;
$type_member = xprofile_get_field_data( ‘Real Estate Industry Professional’, $user_id );
if($type_member == ‘Yes’) {
return true;
}
}`
I couldn’t figure out how to display something else…
I guess you could create different functions for each type of field
`loggedin_user->id)) : ?>
Red Sidebar
loggedin_user->id)) : ?>
Blue Sidebar
`
I wish I knew enough about what all is happening in that piece of code. So that I could make it work the way i proposed. otherwise, there will be a blank sidebar for non logged in users and users who don’t have a xprofile field selected corresponding with those requirements.
@pcwriter – replacing “Yes” with “1” didn’t work – was that what you meant?
@nahummadrid – yes, that works.
`loggedin_user->id)) : ?>
Red Sidebar
`
This works though right.
@gregfielding
Try using boolean values instead. If you want “Some other sidebar” to display if the box is checked, then the value should be “1”. Worth a try…
Hey there. I’m using s2Member in conjunction with BuddyPress, and I’ve been having trouble figuring out my registration page.
Mainly, I’m not sure how to make some fields private, and others public. I might just be missing something, but I’ve been looking at so many plugins and features lately, it’s gotten confusing.
Say I want to collect the user’s phone number and street address for billing, but I don’t want it showing up on their profile. How would I go about this?
Any help would be greatly appreciated!
Thanks @nahummadrid
I think it’s closer but still not working right. It only shows “Some other Sidebar”.
Here’s my code:
`//CHECK IF THE ACCT IS CERTAIN ACCT TYPE
function My_Function ($user_id) {
global $bp;
$type_member = xprofile_get_field_data( ‘Real Estate Industry Professional’, $user_id );
if($type_member == ‘Yes’) {
return true;
} else {
return false;
}
}`
I wonder if the issue is that I’m using a checkbox, with the option of “Yes”…
in the function, where color = your main field heading, I’ve used a dropdown. and Red is one of the drop down items to select from.
I don’t know if it works the same if the field was just a text field. I imagine so.