Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Avatar of SGr33n
    SGr33n
    Participant

    @sgr33n

    @djpaul please help me solving this :P I see that you managed some trac tickets about something similar, maybe bp_is_component_front_page is the key?

    Thanks :)

    Avatar of SGr33n
    SGr33n
    Participant

    @sgr33n

    Right paul,

    How can I correct this?
    Wanna look at the code?

    Avatar of SGr33n
    SGr33n
    Participant

    @sgr33n

    42 years, 8 months ago is timestamp 0, maybe the value passed was not an integer or something broke up.

    Avatar of SGr33n
    SGr33n
    Participant

    @sgr33n

    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’);
    }

    Avatar of SGr33n
    SGr33n
    Participant

    @sgr33n

    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.

    Avatar of SGr33n
    SGr33n
    Participant

    @sgr33n

    Sorry if I asked something already answered :P

    Avatar of SGr33n
    SGr33n
    Participant

    @sgr33n

    Same as before but:

    echo $dob->format(‘F, d’);

    Avatar of SGr33n
    SGr33n
    Participant

    @sgr33n

    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.

    Avatar of SGr33n
    SGr33n
    Participant

    @sgr33n

    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 :)

    Avatar of SGr33n
    SGr33n
    Participant

    @sgr33n

    Here they are :P
    These improvements will affect the database structure?

    Thanks :)

Viewing 10 replies - 1 through 10 (of 10 total)