Skip to:
Content
Pages
Categories
Search
Top
Bottom

Date Selector Field using years past 2009


  • blakicemg
    Participant

    @blakicemg

    Is there anyway to get years past 2009 using the date selector field? I have looked in the code and the database and cant find the years. I just need 2010 – 2014

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

  • Burt Adsit
    Participant

    @burtadsit

    I can usually recommend some solution that doesn’t require modifying the core. In this case I just can’t. It looks to me like the only way to get years beyond 2009 is to do this:

    /buddypress/bp-xprofile/bp-xprofile-classes.php

    Line # 567 is:

    for ( $i = date( ‘Y’, time() ); $i > 1899; $i– ) {

    Change that to:

    for ( $i = date( ‘Y’, time() ) + 5; $i > 1899; $i– ) {


    Burt Adsit
    Participant

    @burtadsit

    That’s r1350 of the bp trunk


    blakicemg
    Participant

    @blakicemg

    Thank you very much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Date Selector Field using years past 2009’ is closed to new replies.
Skip to toolbar