Page 1 of 1
[3.3][CDB] Enable Debug & Display Load Time - phpBB Extension
Posted: 19 Feb 2025, 09:48
by Stoker
Extension Name: Enable Debug & Display Load Time
Author: Stoker
Extension Version:
Requirements:
Extension Description:
Enable Debug & Display Load Time without editing core files.
More explanation here:
viewtopic.php?t=2714
Screenshots:
Extension Download:
Download CDB validated file from phpbb.com
Extension overview page
Re: [EXT] Enable Debug & Display Load Time
Posted: 03 Apr 2025, 03:21
by pxdetroit
oooooh this one looks promising!
Enable Debug & Display Load Time - phpBB Extension
Posted: 26 Apr 2025, 09:48
by flumsi
Hello everyone
As an admin, I really appreciate the footer display. Works perfectly

Thanks for this extension
We speak German, so I've been looking for a way to translate the English text into German and haven't found anything.
The extension doesn't have its own voice output, and our forum is in German. I can't find a way to change the English text.
Time: 0.359s |
Peak Memory Usage: 12.07 MiB
Ladezeit: 0.359s |
Max. Speicherauslastung: 12.07 MiB |
My glasses are cleaned, but my vision seems blurred

Enable Debug & Display Load Time - phpBB Extension
Posted: 26 Apr 2025, 10:15
by Stoker
Unfortunately the language is hardcoded in includes/functions.php
You will find it around line 4232
Code: Select all
// Output page creation time
if ($phpbb_container->getParameter('debug.load_time'))
{
if (isset($GLOBALS['starttime']))
{
$totaltime = microtime(true) - $GLOBALS['starttime'];
$debug_info[] = sprintf('<span title="SQL time: %.3fs / PHP time: %.3fs">Time: %.3fs</span>', $db->get_sql_time(), ($totaltime - $db->get_sql_time()), $totaltime);
}
}
if ($phpbb_container->getParameter('debug.memory'))
{
$memory_usage = memory_get_peak_usage();
if ($memory_usage)
{
$memory_usage = get_formatted_filesize($memory_usage);
$debug_info[] = 'Peak Memory Usage: ' . $memory_usage;
}
$debug_info[] = 'GZIP: ' . (($config['gzip_compress'] && @extension_loaded('zlib')) ? 'On' : 'Off');
if ($user->load)
{
$debug_info[] = 'Load: ' . $user->load;
}
}
if ($phpbb_container->getParameter('debug.sql_explain'))
{
$debug_info[] = sprintf('<span title="Cached: %d">Queries: %d</span>', $db->sql_num_queries(true), $db->sql_num_queries());
if ($auth->acl_get('a_'))
{
$debug_info[] = '<a href="' . build_url() . '&explain=1">SQL Explain</a>';
}
}
Enable Debug & Display Load Time - phpBB Extension
Posted: 26 Apr 2025, 10:43
by flumsi
Why do they do that?
Of course I can't find anything, I would never have thought of that

Anyway, I learned something new

I was able to paraphrase everything into German
Thank you for your help

[3.3][CDB] Enable Debug & Display Load Time - phpBB Extension
Posted: 28 May 2025, 02:45
by Stoker
[3.3][CDB] Enable Debug & Display Load Time - phpBB Extension
Posted: 08 Aug 2025, 10:12
by Stoker
Version 1.0.1 available!
This version comes with two permissions sets:
- Can view extended Debug Info
- Can view default Debug Info
Use the permissions to decide which version you want displayed and who is allowed to see the Debug Info
Screenshots:
Permissions
Extended Debug
Default Debug
Download:
[3.3][CDB] Enable Debug & Display Load Time - phpBB Extension
Posted: 08 Aug 2025, 12:32
by flumsi
Hello everyone
Thanks for the update
I love it
