Skip to:
Content
Pages
Categories
Search
Top
Bottom

Date Selector Field using years past 2009

  • Avatar of Blakicemg
    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)
  • Avatar of Burt Adsit
    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– ) {

    Avatar of Burt Adsit
    Burt Adsit
    Participant

    @burtadsit

    That’s r1350 of the bp trunk

    Avatar of Blakicemg
    blakicemg
    Participant

    @blakicemg

    Thank you very much!

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

You must be logged in to reply to this topic.