Skip to:
Content
Pages
Categories
Search
Top
Bottom

time traveling should not be encouraged

Viewing 7 replies - 1 through 7 (of 7 total)
  • Heh. :p

    is there any way to customize the date selector?
    come on Paul! (heh)

    anyoonnnneeeeee….?

    I’d be interested in a fix for this as well.


    danbpfr
    Participant

    @chouf1

    Hello,

    the values you haveto tweak are hardcoded in bp-xprofile/bp-xprofile-template.php:639
    `for ( $i = 2037; $i > 1901; $i– ) {`
    Change 2037 and 1901 to what you want
    Note: defaut start year is 1901 + 1 year = 1902 in the output.

    You, Sir, are a gentlemen and a scholar.

    it works, thank you!


    Roger Coathup
    Participant

    @rogercoathup

    You’ll lose your amendments as soon as you upgrade BuddyPress – it’s not a good practice to be hacking core files.

    The safest way to address this one, would be to add a filter on: bp_get_the_profile_field_datebox

    In there, you’d have to do a bit of PHP string manipulation – replacing the option value parts for year in the HTML string, with the range that you want.

    It’s not straightforward, but it’ll work through a core upgrade.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘time traveling should not be encouraged’ is closed to new replies.
Skip to toolbar