Welcome to My iptv forum

  • Everyone is invited! My iptv forum is for everyone, new and advanced user alike!
  • Searching is key! Before you post a question, use the forum search feature to determine whether your topic has already been covered.
  • Do not start flame wars! If someone has engaged in behavior that is detrimental to the discussion -- spamming, harassment, etc -- report the post and we'll take a look.
  • Resource icon

    xF2 Add-on User Date/Time Format Settings 1.1.1 1.1.1

    xF2 Add-on
    < Previous | Next >
    d7bcf450ec133.png

    My first addon, targeted at my own annoyance for being dependent on the Language options for date and time formats.

    Allows users to override the language-level date and time format settings.
    Adds two new User Custom Fields:
    1. Preferred Date Format
      • All (non-custom) formats from the admin panel
      • Full-year m/d/y and d/m/y formats
      • ISO 8601 YYYY-MM-DD format
    2. Preferred Time Format
      • 12 and 24 hour formats
    They are both optional and apply individually. A user who does not select an option will get the setting defined in their selected language for that field.

    If you do not wish to allow selection of both options then the relevant custom field can be disabled or removed. In addition, specific options can be removed from the user fields as well without causing problems.

    To add new options, the code of the extension will need to be edited as the list of potential format strings is hardcoded. This is due to how multiselect options function, the format string can't be the option value directly and thus needs an option to format string mapping.

    Both fields default to on for user registration, as Date/Time formats can be very important to users. This can be safely toggled off in the custom user field settings if that isn't desired.

    Latest updates

    1. User Date/Time Format Settings 1.1.1

      php 8.4+ compatibility fixes
    2. User Date/Time Format Settings 1.1.0

      Require php 7.2+ Require Xenforo 2.2+ Streamline code to use php 7.2+ features, and rework installer

    Similar resources

    0.00 star(s) 0 ratings
    Views
    380
    Downloads
    0
    Updated
    0.00 star(s) 0 ratings
    Views
    641
    Downloads
    0
    Updated
    0.00 star(s) 0 ratings
    Views
    145
    Downloads
    0
    Updated
    0.00 star(s) 0 ratings
    Views
    526
    Downloads
    0
    Updated
    18,400Threads
    64,526Messages
    63,134Members
    amineelhaibaLatest member
    Top