Releases: illusion035/ModernStats-PHPBB-Extension
Releases Β· illusion035/ModernStats-PHPBB-Extension
ModernStats v1.1.0
π 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

ModernStats v1.0.0
π Modern Statistics Extension for phpBB
π§© Version: 1.0.0
π€ Author: Illusion
π§· Compatibility: phpBB 3.2.0+
π Description
Modern Statistics is a sleek and informative extension for phpBB that adds attractive and modern statistics to your forum.
It displays key forum data in a visually appealing way using a modern Bootstrap-based design and icons.
βοΈ Features
1. π General Statistics:
- π₯ Total Members
- π§΅ Total Topics
- π¬ Total Posts
- π Most Active User
- ποΈ Total Views
- π Newest Member
- π Posts Per Day
- π Active Users % (last 24h)
2. π Latest Posts:
- π¨οΈ Displays recent forum posts
- π€ Includes user avatars
- π·οΈ Shows topic title, forum name, and post time
- π’ Configurable number of posts shown
- π Shows a lock icon for locked topics
3. π§βπ» Latest Registered Users:
- π₯ Shows newly registered users
- πΌοΈ Includes avatars
- π Shows registration date and post count
- π§ Configurable number of users shown
π₯ Installation
- Download and extract the files
- Upload the
illusionfolder to your forum'sext/directory - Go to ACP β Customise β Manage extensions
- Find Modern Statistics and click Enable
π§ Configuration
In ACP β Extensions β Modern Statistics β Settings, you can configure:
- π§ Display location of the statistics block
- β Enable/disable general statistics section
- π¨οΈ Enable/disable latest posts
- π’ Number of latest posts to show (1-50)
- π€ Enable/disable latest users
- π’ Number of latest users to show (1-50)
π Supported Languages
- π¬π§ English (en)
- π§π¬ Bulgarian (bg)
π Requirements
- π§© phpBB 3.2.0 or later
- π PHP 5.4 or later
π οΈ Support
Discord illusion034 for bugs / issues / suggestions.

