Years of Service

by Mipher 4 Stars 766 Downloads

Show in the postbit, member profile, member list, the time of user service based on their registration date.

Change Log for Years of Service

Version 2.0.1 stable Build #3

  • Fix of an ambiguos error reported where user regdate is NULL for some reason and datetime comes out with a fatal error:
    PHP Fatal error:  Uncaught Exception: DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character in ________/inc/plugins/yearsofservice.php:339
    Stack trace:
    #0 ________/inc/plugins/yearsofservice.php(339): DateTime->__construct('@')
    #1 ________/inc/plugins/yearsofservice.php(229): getServiceByRegistrationUnixTime(NULL)
    #2 ________/inc/class_plugins.php(142): yearsofservice_postbit(Array)
    #3 ________/inc/functions_post.php(853): pluginSystem->run_hooks(Array, Array)
    #4 ________/showthread.php(1126): build_postbit(Array)
    #5 {main}

Version 2.0 stable Build #2

(last major version)

  • Plugin settings rearranged.
  • Added new template (global): yearsofservice.
  • Added new spot: member list.
  • Added new types of service: weeks, days, hours, minutes.

NB! For upgrading from 1.0 to 2.0:
  1. remove plugin parts that have been added in version 1.0 in postbit and member_profile templates (<div class="user-service...);
  2. uninstall the plugin (in the ACP);
  3. upload new plugin files;
  4. install the plugin (in the ACP);
  5. (facoltative) update CSS too or if you customized it check the new sample.

Version 1.0 stable Build #1

The first build has no changes.