@sgr33n
active 3 weeks, 1 day ago
Forum Replies Created
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
@djpaul please help me solving this
I see that you managed some trac tickets about something similar, maybe bp_is_component_front_page is the key?
Thanks 
Right paul,
How can I correct this?
Wanna look at the code?
42 years, 8 months ago is timestamp 0, maybe the value passed was not an integer or something broke up.
Here it is the full function (untested):
function bpdev_get_birthday_from_dob($dob_field_name,$user_id=false){
if(!$user_id)
$user_id=bp_displayed_user_id ();
$dob_time=xprofile_get_field_data($dob_field_name, $user_id);//get the datetime as myswl datetime
$dob=new DateTime($dob_time);//create a DateTime Object from that
return $dob->format(‘F, d’);
}
Paul, anyway it’s pretty simple to use both methods. We know that default wp_users support first_name, last_name, nickname and description (bio). Maybe you could make possibile to modify each of that from buddypress (i made it in my theme) and make a base group with these fields. Then if administrators want to add more fields and groups you could populate xprofile table. In this way you could have a more deep integration into WordPress.
Sorry if I asked something already answered 
Same as before but:
echo $dob->format(‘F, d’);
Cool
so a more deep integration into the wordpress core… Speaking of This, i’m just wondering why buddypress doesn’t use user_metadata and have a proprietary xprofile table.
Guess that’s for the spam control. So that’s why the DB needed to upgrade, I see it already on the current SVN.
Thanks Paul 
Here they are 
These improvements will affect the database structure?
Thanks 
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS