Skip to content

LF who was here 2.0.0 Beta 2

Pre-release
Pre-release
Compare
Choose a tag to compare
@LukeWCS LukeWCS released this 28 Apr 20:21
· 92 commits to master since this release

2.0.0 Beta 2 (2019-04-28)

Important: if you want to update an existing installation of "LF who was here 2" Pre-Release, please read the following instructions: Updating a developer version (dev, beta, RC) of "LF who was here 2"

  • When displaying the time of users and bots, the contents of the language variables LFWWH_LAST1 and LFWWH_LAST2 can now be dynamically inserted in the time format using the placeholders $1 and $2. In addition to increased flexibility, this also has the advantage that the setting for the display of "last at" is stored regularly in the configuration and no longer has to be controlled via the language file by setting/clearing the variable.
    • In addition, there is the language variable LFWWH_LAST3 for "last on" which can be addressed with $3.
    • In the ACP module, the placeholders $1, $2 and $3 are indicated accordingly in the explanation text of "Time format:".
      • The explanatory text in the language file is designed so that the current contents of the placeholders are inserted dynamically from the language file.
    • With "Time format:" the placeholder $1 is now entered during a new installation, whereby by default also "last at" is displayed again. This also applies to the "Defaults" button in the ACP module.
  • Language files:
    • From this version the language variable LFWWH_LAST1 has the original standard content again. For the first time LFWWH_LAST2 has a standard content. These changes occurred because these variables are no longer generally used when displaying the user time from this version, but can be inserted via placeholders if required.
    • In who_was_here.php renamed the variable LFWWH_RECORD to LFWWH_RECORD_DAY, otherwise there would be an overlap with info_acp_who_was_here.php, where this variable was also used.
    • Minor corrections.
    • Renaming of some variables.
  • ACP module:
    • The setting "Date format for the visitor record:" now has its own explanation text. This was previously obtained from "time format:", but its content is no longer valid for both settings.
      • Correspondingly added 1 new variable in the language files.
  • It is now possible to switch off the number of visible members in the statistics line, just as it was possible for invisible users, bots and guests. Thus, now every part except the total sum can be switched off. (Wish of stefan-franz)
    • Added a new setting in the ACP module, by default the switch is activated. The statistics line will be displayed as usual.
    • In the language files for "Show visible users (number):" added 2 new variables.
    • Changed the headings of the other settings (invisible users, bots and guests) accordingly, so that it is immediately obvious whether it is only about the number or number plus names.
    • In order for the statistics line to be able to adapt dynamically to any conceivable setting combination of the 4 said switches, the separator "::" has been moved to a separate language variable so that this separator can be controlled in a targeted manner.
  • The function that generates the HTML for the info buttons (Users and Bots) has been completely redesigned. (based on a suggestion by Kirk)
    • No button will be created anymore, just a <span> container that reacts to the mouse event onclick. This also eliminated the previous nesting of a button container and a label container.
    • This also eliminates special style adjustments for <button>, which were previously necessary. Accordingly, the previous class CSS for the button removed.
    • Added a new class CSS to prevent the adjacent text of the "button" from being marked with a quick multiple click.
    • Javascript adapted to these changes.
  • Javascript:
    • Info button: Global variables and function grouped together in an object and set directive use strict.
    • ACP module: Functions summarized in one object and set directive use strict.
  • Template changes: No
  • Language file changes: Yes

The additional archive lf-who-was-here-2_style_templates_for_phpBB-3-2.zip contains templates for the following styles:

  • Absolution
  • AcidTech
  • BlackBoard
  • Blackfog
  • CleanSilver
  • Dark Vision
  • Flat Style
  • HexagonReborn
  • Orange_BBEs
  • Project Durango
  • rain_forest
  • Rock'n Roll