LF who was here 2
Author:
LukeWCS (3.2 Ext)
Former developers:
[email protected] (3.1 Ext)
nickvergessen (3.0 Mod)
Extension Description:
Shows a visitor statistic of the current day or a freely selectable period. It lists both visitors and bots, as well as numbers on visible members, invisible members, bots and guests. In addition, the extension offers a visitor record and is extensively adjustable.
Until now I published 9 releases for the old 1.x structure (
bb3mobi/washere
) and currently I am working on 2.0 (lukewcs/whowashere
) which is meant as preparation for a CDB validation.Extension Version:
2.0.0-RC2
Requirements:
- phpBB 3.1.11 or higher
- PHP 5.3 or higher
- phpBB 3.1.12 / 3.2.2 - 3.2.9 / 3.3.0-b2 - 3.3.0
- PHP: 5.6 / 7.0 / 7.1 / 7.2 / 7.3 / 7.4
- LF Who was here Module for Board3 Portal 2.1.0 (by Kirk): This adds a module to the Board3 Portal 2.1.0 extension (by Marc) to display LF-WWH.
- Bridge between “LF who was here” and “Stat Block” (by Chris1278): with this Stat Block (by Kirk) can be made compatible to LF-WWH.
LF-WWH harmonizes with a variety of different styles without the need for template adjustments.
For some selected styles, I have created ready-made template adaptations, in which small to large changes were necessary, and all the adaptations are summarized in a separate archive. This archive is offered "as is", after the official release of LF-WWH 2.0.0 there will be no more updates from me.
- AcidTech 3.2.8
- BlackBoard 3.2.8
- Blackfog 3.2.8
- Dark Vision 3.2.8
- Flat Style 3.2.8
- Hexagon Reborn 3.2.8
- Orange_BBEs 3.2.8
- Project Durango 3.2.8
- rain_forest 3.2.4
- Rock'n Roll 3.2.8
- Absolution 3.2.8: On the one hand, all 3 events required by LF-WWH are now in the wrong positions and, on the other hand, all 3 events were placed within IF blocks where they do not belong.
- CleanSilver 3.2.8: The statistics area has been changed a lot and there are no own events to integrate custom templates.
LF-WWH display - Group permissions "Guests" > "Can view statistics" (default) - not logged in
LF-WWH display - Group permissions "Registered users" > "Can view statistics" & "Can view members" (default) - logged in (global moderator)
LF-WWH display -This animation demonstrates the info button for hidden infos (on hover infos) - logged in (administrator)
LF-WWH ACP module (default settings)
LF-WWH permissions - Group "Guests" (default settings)
NV-WWH v1.2.2 ACP module (for reference)
Features / Changes to "Nv who was here (3.1 Ext)" and "LF who was here 1" (3.1/3.2 Ext):
This section is primarily intended for those who have already used NV-WWH or LF-WWH 1. There are other minor changes that are not listed here, all details can be found in the changelog.
New functions and thus new settings in the ACP module:
- By default, the simple rights system of LF-WWH is active, which only controls the display for guests. The options are the same as for the full rights system. If the simple rights system is activated, then guests see by default only the statistics and bots are generally locked out, so they do not see anything from LF-WWH.
- Optionally, the full rights system of phpBB can be used. This makes it possible to define for each user group separately who is allowed to see WWH and to what extent.
- The display of the bots can be limited to users with administrative rights.
- The time display can be set separately for the user list and bot list.
- The position of the display in the statistics area is no longer determined by renaming the event template, but can be conveniently selected.
- The API mode allows the display of WWH to be switched off while the template variables continue to be generated. Thus, e.g. when using "Board3 Portal", WWH is only displayed in the portal.
- When user accounts are deleted, the display of WWH is also immediately cleared. For NV-WWH, deleted users were removed from the display after the expiration of the time period (e.g., after 24 hours). This feature can be disabled if necessary.
- For testing purposes it is possible to display WWH simultaneously on all available positions. Helpful if LF-WWH is to be adapted to a new style, because then no single position needs to be tested individually. Can of course also be used as decision support for the position.
- The update period is no longer fixed to the phpBB "Online display timeout" option, but can optionally be set by entering a number of minutes - within certain limits.
- 2.0.0: Administrator mode overrides all permissions systems and only users with administrative privileges can see WWH. Helpful if WWH should be blocked for all other user groups at short notice.
- 2.0.0: For "Show the user IP:" now the same options apply as for "Show the time of ...".
- 2.0.0: The cache can now be disabled completely. The deactivation of the cache is not recommended for large forums.
- 2.0.0: The generation of the info button and the hidden information can now also be deactivated.
- 2.0.0: The language variable
LFWWH_LAST1
again has the default content "last at" and for the first timeLFWWH_LAST2
also has the default content "o'clock". However, these variables are no longer generally used in the display. Instead, they can now be added directly to the time format using the special placeholders$1
and$2
. Also new is the variableLFWWH_LAST3
("last on"), which can be inserted with$3
. - 2.0.0: The number of visible members can now be switched off in the statistics line, just as it was already possible for invisible users, bots and guests.
- For NV-WWH, options that did not match "yes/no" used both radio buttons and selection list. At LF-WWH there are option fields only for "Yes/No", all other options have been consistently converted to selection list and their texts adapted accordingly.
- The switches (radio buttons) can now also be toggled by clicking on their respective texts ("Yes", "No"), as is common practice.
- An additional button allows you to reset all settings (excluding the visitor record) to the installation standard. This button behaves in a similar way to the default phpBB Reset button. This means that only the settings are reset, the changed page must then be explicitly saved by the administrator.
- Settings that currently have no meaning/effect are dimmed. This makes it easier to understand the dependencies of the settings and focuses on the currently relevant settings. Dimmed settings can still be changed. The dimming function is performed automatically when the ACP module is loaded, when the settings are changed, when the "Standard" button is selected and also when the standard "Reset" button is used. Thus, the status of the dimmed settings is always up to date.
- If the order of the user list is changed, then the display of WWH is updated immediately. In the case of NV-WWH, the display was updated only after the expiration of the refresh interval (default 5 minutes).
- Additional sections and unique headings provide a better overview and structure.
- 2.0.0: If the visitor record is reset, then the reset date will now be displayed after the corresponding "Reset Record:" function. This information has been saved since the original NV-WWH (3.0 Mod), but never displayed.
- 2.0.0: With "Reset visitor record:", the radio button "Yes" displays not only an info window, but a dialog box that can be confirmed with "Ok" or "Cancel". With "Cancel" the switch is reset to "No". In addition, "Yes" no longer responds to multiple clicks.
- 2.0.0: The group rights are now always displayed like the settings and only dimmed if they are currently not relevant, ie if either the extended rights system is deactivated or the administrator mode is activated.
- The forum index template has been completely redesigned and is now better structured and more flexible with new template switches.
- Furthermore, there are now not only one, but three event templates, matching the three possible positions (events) in the statistics area.
- All template variables are now generated uniformly. That is, design-specific elements like
<br />
are no longer part of the variable, but are determined by the template, which gives more control in the design. - The template syntax has been changed to Twig because the old syntax is no longer supported in future versions of phpBB. For most of the conversion kasimi's "Twig Converter" was used.
- 2.0.0: The additional template adjustments were removed from the LF-WWH package and combined in an independent package, which can be downloaded separately.
- With the settings "On hover" there is now additionally a button (info symbol) with which the times or IP's can also be displayed directly. This is helpful for smartphones and tablet PCs. As a result, WWH provides all information available in the context for all device types equally. This button can be freely positioned within the associated language variable.
- The WWH ad will always display "Who's online?" adapted to the current phpBB version, as far as possible.
- 2.0.0: Users who have temporarily or permanently set the feature "Invisible" can now see themselves in the user list, as with "Who is online?" the case is.
- 2.0.0: If all template positions are displayed at the same time for test purposes, it is now additionally shown which template position is concerned. This is particularly helpful for styles where the statistics area has been changed significantly.
- Several changes have been made in the language system, providing increased translation flexibility. Thus, e.g. the terms for "members" and "bots" are no longer fixed to the phpBB language pack, but can be freely defined. This was necessary because NV-WWH has still invariably displayed "user", but in the German version of phpBB it has "members" in "who is online?" is shown. Furthermore, the title of the ACP module can be defined independently of the navigation title. This allows you to change the settings title, e.g. additionally display the display name of the extension.
- Obsolete structures and files have been removed.
- 2.0.0: Automatic data transfer from NV-WWH (any version) and LF-WWH 1 (any version, but the permissions are not applied).
- 2.0.0: When user accounts are deleted, an additional notification from LF-WWH is added to the delete confirmation (by phpBB) informing them that the WWH display has been cleaned up. This notification only appears when a cleanup was actually necessary.
- 2.0.0: The code section responsible for displaying time and IP in the user list and bot list has been completely rewritten to accommodate the new version 2.0.0 settings. This code has also been optimized in terms of speed, which is beneficial for large forums with many visitors.
- All data is now taken into account by the migration, which means there are no leftovers when uninstalling ("Delete data").
- Structure and syntax has been checked by EPV and all errors and warnings of NV-WWH 1.2.2 (2 fatals, 1 error, 66 warnings) have been corrected accordingly. Thus LF-WWH corresponds to the current specifications.
- 2.0.0: The problems with different time zones of PHP and phpBB in combination with the setting "Display of the visitors of ..." -> "Today" and a time change from normal time to summer time or vice versa are fixed.
- 2.0.0: Entries in the visitor table with the exact time 00:00:00 are no longer counted the day before with the setting "Display of the visitors of ..." -> "Today".
GitHub releases: LF who was here 2 - In the "Assets" section, click "Source code (zip)" to download the extension.
Note1: Download LF-WWH 2 from this releases section only, because the releases are meant for an installation on a phpBB board.
Note2: Please don't make PR's on GitHub for new language packs and style templates, I don't accept them. If you made a language pack or a style template you can publish the link to the download here in this topic. However, suggestions for corrections to the standard language packages from LF-WWH 2 are of course always welcome.
Installation of LF-WWH / Upgrade of an old WWH extension
The upgrade is designed to be as easy to perform as a normal update or installation. There is only one thing to keep in mind: the old WWH extension - NV-WWH or LF-WWH 1 - still needs to be installed so that LF-WWH 2 can take over the configuration and visitor tables from the database. If the upgrade was successful, the old WWH extension can be disabled and uninstalled.
Variant 1 - Installation / Update of LF-WWH 2:
- Download and extract the Zip archive of the GitHub release.
- In the extension management disable "LF who was here 2", if already existing.
- Delete the folder
whowashere/
insideext/lukewcs/
from phpBB, if already existing. - Copy the folder
lukewcs/
from the Zip archive including all subfolders and files to ext/ from phpBB (upload). - In the extension management, enable "LF who was here 2".
- The old WWH extension must still be installed and should also be activated. Short-term parallel operation with LF-WWH 2 is therefore technically provided and legitimate.
- Download and extract the Zip archive of the GitHub release.
- Copy the folder
lukewcs/
from the Zip archive including all subfolders and files toext/
from phpBB (upload). - In the extension management, enable "LF who was here 2". This will also automatically perform a data transfer.
- Check and compare in the settings (ACP) and the WWH display (forum index), whether the settings and all data (in particular the visitor record) have been transferred correctly. If the upgrade was successful, the next step can be performed.
- Affects only LF-WWH 1: As the permissions are not transferred during data transfer, they must be adjusted after the upgrade, provided that the phpBB full rights system has been used before. If only the simplified rights system ("Display for guests:") of LF-WWH 1 was used before, this step can be omitted.
- Now the old WWH extension can be disabled and uninstalled ("Delete data").
- nl >> https://github.com/Solidjeuh/whowashere (by </Solidjeuh>)
Note: Most of the text in this posting has been translated using Google Translator. English 1.0 is not one of my favorite programming languages. ^^