MyBB Community Forums

Full Version: debug code location?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello

if we activate the show debug info in acp, we see the debug info at footer for admin group.

line of code in footer
<div id="debug"><debugstuff></div>
now in which template/php file is that debugstuff called from?

usually the debugstuff displays the debug info in 3 lines with advanced details link.
i want them to be displayed in single line side by side.
Go to: ./inc/functions.php file and find; (around line # 72)

$debugstuff = "Generated in $totaltime seconds ($percentphp% PHP / $percentsql% MySQL)<br />SQL Queries: $db->query_count /  Global Parsing Time: $globaltime$memory_usage<br />$other<br />[<a href=\"$debuglink\" target=\"_blank\">advanced details</a>]<br />";

Smile
ahh.. yaldaram Toungue well, can we use it to display to specific user ids instead of usergroup. i just need the if statement for declaring specific user ids
Use;

if ($mybb->user['uid'] == "1")
{
// show debug code here.
}

This will show debug code to userID 1 only.