Support » Plugin: BP Xtra Signup » [Plugin: BP Xtra Signup] Plugin translation breaks bpxs_get_month_number function

Viewing 1 replies (of 1 total)
  • I added

    $d = substr('00'.$d, -2);
    $m = substr('00'.$m, -2);

    in function bpxs_check_dob before

    $age = ( date( "md" ) < $m . $d ) ? date( "Y" ) - $y - 1 : date( "Y" ) - $y;

    Otherwise there were errors in month+date comparison (the ones coming from user selection can be 1+1 digit while date( “md” ) is always 2+2).

    Guess there’s something wrong with what I did…but I just used the BP date field…

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: BP Xtra Signup] Plugin translation breaks bpxs_get_month_number function’ is closed to new replies.