π Modern Statistics v1.1.0 Release Notes
π
Release Date: 2026-01-20
π€ Author: Illusion
π§· Compatibility: phpBB 3.2.0+
β¨ New Features
π« Group Exclusion for Most Active User
- Exclude specific user groups from the "Most Active User" (Top Poster) statistic
- Perfect for excluding Administrators, Moderators, or Bot accounts
- Multi-select interface in ACP settings
- Hold Ctrl to select multiple groups
π¨ Theme Selection
- Choose between Light and Dark themes
- Configurable from ACP β Extensions β Modern Statistics β Settings
- Improved text readability in Light theme
β‘ Performance Improvements
π Optimized Database Queries
Reduced 5 database queries by using phpBB's built-in config values:
| Before (Custom Query) | After (phpBB Config) |
|---|---|
COUNT(*) FROM users |
$config['num_users'] |
COUNT(*) FROM topics |
$config['num_topics'] |
COUNT(*) FROM posts |
$config['num_posts'] |
SELECT username ORDER BY regdate |
$config['newest_username'] |
MIN(post_time) FROM posts |
$config['board_startdate'] |
Result: ~50-75ms faster page load
π Bug Fixes
- Fixed: Blue bar remaining visible when all features are disabled
S_MODERNSTATS_ENABLEDnow properly checks if any feature is enabled
- Fixed: PHP warnings "Trying to access array offset on bool" when no top poster exists
- Added null checks for
$top_posterand$newest_user
- Added null checks for
- Fixed: Avatar display issues
- Now using phpBB's native
phpbb_get_avatar()function with proper key mapping
- Now using phpBB's native
- Fixed: Undefined constant errors in namespaced code
- Using global namespace prefix (
\) for all phpBB constants
- Using global namespace prefix (
π Code Quality (phpBB Validation Compliance)
- β
Removed unused
listener.phpfile - β Removed custom phpBB constant redefinitions (USERS_TABLE, etc.)
- β
Moved
phpbb_get_user_avatar()function to class methodget_user_avatar() - β Fixed HTML formatting in templates (no more multi-line tag attributes)
- β
Using
{L_COLON}instead of hardcoded:colons - β Following phpBB coding guidelines (tabs for indentation, brackets on new lines)
π Upgrade Instructions
- Disable the extension in ACP β Customise β Manage extensions
- Replace the files in
ext/illusion/modernstats/with the new version - Enable the extension again
- The new migration will run automatically
- Configure the new settings:
- Theme: ACP β Extensions β Modern Statistics β Theme
- Exclude Groups: ACP β Extensions β Modern Statistics β Exclude groups from Most Active User
π Changed Files
event/main_listener.php - Major refactoring, optimizations, bug fixes
event/listener.php - DELETED (unused)
acp/main_module.php - Added group exclusion functionality
acp/main_info.php - Code formatting
adm/style/acp_modernstats_body.html - Added group selection, {L_COLON} usage
styles/all/template/modern_stats.html - HTML formatting fixes
styles/all/template/event/overall_header_head_append.html - HTML formatting
styles/all/theme/modernstats.css - Improved light theme text colors
language/en/mods/modernstats_acp.php - Added new language keys
language/bg/mods/modernstats_acp.php - Added new language keys
migrations/add_excluded_groups.php - NEW: Migration for group exclusion
π οΈ Support
Discord illusion034 for bugs / issues / suggestions.
πΌοΈ Screenshots
