Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 9 Years, 6 Months, 2 Weeks ago debug code location?
#1
Solved: 9 Years, 6 Months, 2 Weeks ago
This user has been denied support. This user has been denied support.
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.
MyPlugins:1-2-3-4-5
MyTutorials:AddBots
#2
Solved: 9 Years, 6 Months, 2 Weeks ago
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
#3
Solved: 9 Years, 6 Months, 2 Weeks ago
This user has been denied support. This user has been denied support.
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
MyPlugins:1-2-3-4-5
MyTutorials:AddBots
#4
Solved: 9 Years, 6 Months, 2 Weeks ago
Use;

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

This will show debug code to userID 1 only.
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)