Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • altargratiae
    Participant

    @altargratiae

    Something more… (sorry, previous post was too old to edit??)

    Editing \wp-content\plugins\buddypress\bp-xprofile\bp-xprofile-classes.php to output

    <option value="February">Febbraio</option>

    gets the date correctly saved into the database. However the month still won’t be selected when re-editing the profile, and month name is still displayed in English in the profile page. I can’t seem to be able to find the right files to edit. Any suggestions?

    By the way, here’s how i changed bp-xprofile-classes.php. Edit from line 555 onward

    $months = array( __( 'January', 'buddypress' ), __( 'February', 'buddypress' ), __( 'March', 'buddypress' ),
    __( 'April', 'buddypress' ), __( 'May', 'buddypress' ), __( 'June', 'buddypress' ),
    __( 'July', 'buddypress' ), __( 'August', 'buddypress' ), __( 'September', 'buddypress' ),
    __( 'October', 'buddypress' ), __( 'November', 'buddypress' ), __( 'December', 'buddypress' )
    );

    $html .= '
    <select name="field_' . $this->id . '_month" id="field_' . $this->id . '_month">';
    $html .= '<option value=""' . attribute_escape( $default_select ) . '>
    </option>';

    for ( $i = 0; $i < 12; $i++ ) {
    if ( $month == $months[$i] ) {
    $selected = ' selected = "selected"';
    } else {
    $selected = '';
    }

    $html .= '<option value="' . $months[$i] . '"' . $selected . '>' . $months[$i] . '</option>';


    altargratiae
    Participant

    @altargratiae

    I have the same problem as Bento, and I guess this has something to do with localization, considering everything works when I set language back to English in WPMU General Preferences.

    So please, could someone look into this and suggest what to do, ’cause I really have no clue.

    More info on the erratic behavior (again, if WPMU language is English everything works fine):

    WPMU 2.7.1 – Buddypress 1.0 – default bphome & bpmember themes – WP_Lang it_IT

    – Dates generally won’t be saved into the DB

    – Some random dates, however, are saved, but off by 1 day (as per original message by Bento)

    – Manually editing the DB shows the date in the Public Profile page

    – When editing the profile after a manual DB edit, a month won’t be selected in the datebox (while day and year are)

    – Months names (F) are translated in the datebox, still in English in the Profile Page

    – Doesn’t matter what date format you set in WPMU preferences (be it F or m for the month)

    (Edit: typos)

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar