Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/30/2016 03:17:16 PM (8 years ago)
Author:
boonebgorges
Message:

XProfile: Introduce new settings for Datebox field type.

These new settings are designed to make it easier for site administrators
to decide how date-based data will be collected and displayed.

  • "Date format" allows the admin to select how dates will be displayed on public profiles. A number of default custom date formats are included. Admins may also enter a custom date format, or opt to display time elapsed ("4 years ago", etc).
  • "Range" allows the admin to set the start and end values for the Year dropdown. There are two ways to configure the range. The first is by defining a specific set of start and end years. The second is to define a relative range: *from* a certain number of years ago (or in the future) *to* a certain number of years ago (or in the future).

Props abwebstudio, abweb, sooskriszta, boonebgorges, DJPaul, mercime.

See #5500.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php

    r11035 r11041  
    11041104
    11051105        return true;
     1106    }
     1107
     1108    /**
     1109     * Save miscellaneous settings for this field.
     1110     *
     1111     * Some field types have type-specific settings, which are saved here.
     1112     *
     1113     * @since 2.7.0
     1114     *
     1115     * @param array $settings Array of settings.
     1116     */
     1117    public function admin_save_settings( $settings ) {
     1118        return $this->type_obj->admin_save_settings( $this->id, $settings );
    11061119    }
    11071120
Note: See TracChangeset for help on using the changeset viewer.