2011-04-13, 10:13 AM
2011-04-13, 10:36 AM
You'd need a core file edit to do that.
2011-04-13, 10:43 AM
Open ./inc/functions.php file and find; (around line # 17)
and Change
Like this;
Now all users of your forums will see debug info. (Guests are disabled though!)
function output_page($contents)
{
global $db, $lang, $theme, $plugins, $mybb;
global $debug, $templatecache, $templatelist, $maintimer, $globaltime, $parsetime;
$contents = parse_page($contents);
$totaltime = $maintimer->stop();
if($mybb->usergroup['cancp'] == 1)
{
and Change
$mybb->usergroup['cancp'] == 1
to$mybb->user['uid'] != 0
Like this;
function output_page($contents)
{
global $db, $lang, $theme, $plugins, $mybb;
global $debug, $templatecache, $templatelist, $maintimer, $globaltime, $parsetime;
$contents = parse_page($contents);
$totaltime = $maintimer->stop();
if($mybb->user['uid'] != 0)
{
Now all users of your forums will see debug info. (Guests are disabled though!)
2011-04-13, 10:55 AM
I don't think this is a good idea...
2011-04-13, 11:03 AM
This is a big security risk and you shouldn't do it.
2011-04-13, 11:50 AM
Ty, dont worry, i will disable "Advance view button", i only want to let people know if server is working fast, because server inet is very bad, but internal core procesation is high
2011-04-13, 12:01 PM
How could one allow it for just one or two particular user groups ?
2011-04-13, 12:30 PM
(2011-04-13, 12:01 PM)linguist Wrote: [ -> ]How could one allow it for just one or two particular user groups ?
Change;
function output_page($contents)
{
global $db, $lang, $theme, $plugins, $mybb;
global $debug, $templatecache, $templatelist, $maintimer, $globaltime, $parsetime;
$contents = parse_page($contents);
$totaltime = $maintimer->stop();
if($mybb->usergroup['cancp'] == 1)
{
to;
function output_page($contents)
{
global $db, $lang, $theme, $plugins, $mybb;
global $debug, $templatecache, $templatelist, $maintimer, $globaltime, $parsetime;
$contents = parse_page($contents);
$totaltime = $maintimer->stop();
$group = array(3,4,6,8); // Edit these 3,4,6,8 to the Usergroup IDs you wish to allow them to see debug info.
$groups = explode(",",$group);
if(in_array($mybb->user['usergroup'],$groups))
{