View Full Version : Debug Mode In Admincp Only
Logikos
07-26-2005, 10:00 PM
What this does:
This will turn debug mode on in the admincp area only. Sometimes you might want to make a change to the master style, or add a quick vBulletin option but don't want your users seeing any query/template info on the footer of your forums.
I placed this as a hack since you have to hack a file to do it. I was debating if it was more of a how-to or a hack. I'll let the mods decide.
In /includes/config.php Find:
$config['Mysqli']['ini_file'] = '';
Add Under:
if (VB_AREA == 'AdminCP')
{
$config['Misc']['debug'] = true;
}
Done! Yes a very small hack I know.
Marco van Herwaarden
07-27-2005, 11:30 AM
Hmm i think there was once a talk about adding an Admin only debug mode over at vb.com, and it was agreed by jelsoft staff that this could be very usefull. But i like this also.
Xenon
07-27-2005, 12:08 PM
i have an admin only debug mode hack released for 3.0 which works for 3.5 as well :)
Boofo
07-27-2005, 09:20 PM
i have an admin only debug mode hack released for 3.0 which works for 3.5 as well :)
I was going to use that but yours has file edits. :(
Barakat
07-28-2005, 12:47 AM
thanks for that ....
Xenon
07-28-2005, 12:33 PM
as the debug var is one of the most important things, it has to be a file edit ;)
it has to be set in config.php
Chris M
07-28-2005, 12:35 PM
I was going to use that but yours has file edits. :(
Enabling debug mode in config.php doesn't really count as a file edit, as it does not invalidate support ;)
Satan
Boofo
07-28-2005, 01:04 PM
as the debug var is one of the most important things, it has to be a file edit ;)
it has to be set in config.php
True, but if I remember right, yours did file edits in another file, too, right?
Neal-UK
07-29-2005, 05:22 PM
True, but if I remember right, yours did file edits in another file, too, right?
who cares, both good and both work.
Installed LiveWire, many thanks
Chris M
07-30-2005, 01:14 AM
who cares, both good and both work.
Installed Boofo, many thanks
I think you mean LiveWire:p
Satan
Neal-UK
07-30-2005, 01:22 AM
I think you mean LiveWire:p
Satan
ooppss...don't tell him, i've just edited it, shhhh
Logikos
07-30-2005, 02:56 AM
ooppss...don't tell him, i've just edited it, shhhh
How rude! :surprised:
Chris M
07-30-2005, 10:36 AM
How rude! :surprised:
* Chris M pats LiveWire on the back...
There there, I'm sure you'll get over it :p
Satan
Logikos
07-30-2005, 11:18 AM
* hellsatan pats LiveWire on the back...
There there, I'm sure you'll get over it :p
Satan
nealparry, Hellsatan told me... :p
amykhar
08-01-2005, 05:40 AM
I used this in combination with a patched up version of Stefan's hack to turn debug mode on by clicking a link in the admincp. Life is good. :)
Amy
Boofo
08-01-2005, 05:54 AM
I used this in combination with a patched up version of Stefan's hack to turn debug mode on by clicking a link in the admincp. Life is good. :)
Amy
Care to share? ;)
amykhar
08-01-2005, 12:39 PM
No. Sorry. It's Stefan's mod and he gets the priv. of porting it. Besides, I didn't write down what I was doing when I did it.
Amy
Xenon
08-01-2005, 01:12 PM
i will release the ported version when i am back :)
@Bob: the patch of init.php was not nessesary, it was just to enable debugmode when you are logged out as well ;)
but let's stop discussing another hack here, this is Live Wires's hack thread.
Logikos
08-01-2005, 01:20 PM
Ya get out of here! :p
Boofo
08-01-2005, 01:22 PM
I'm gone! bi-bi ;)
amykhar
08-01-2005, 01:53 PM
Livey, my boy, you're looking at this the wrong way :D The more we talk in here - and it doesn't matter about what cause nobody reads it anyway :D - the higher your mod stays in the list. You have a bug-free hack here. Without us yapping, it would sink like a stone in the forum list.
Amy
Logikos
08-01-2005, 03:19 PM
lmao good point. Boofo come back!!!!!!one. :p
Bubble #5
10-08-2005, 05:08 PM
Great hack Live Wire! Should be standard feature in vB :)
Zachariah
10-08-2005, 07:18 PM
Livey, my boy, you're looking at this the wrong way :D The more we talk in here - and it doesn't matter about what cause nobody reads it anyway :D - the higher your mod stays in the list. You have a bug-free hack here. Without us yapping, it would sink like a stone in the forum list.
Amy
Ma'am I read it ...... uncle Boofo make her stop.
@Live Wire - thank you Sir.
Boofo
10-08-2005, 11:19 PM
LMAO @ Zach
Mudvayne
12-16-2005, 02:49 PM
is thr any way to enable debugmode in acp just for userid 1? or like tht.. 1,2,3 etc etc
Logikos
12-16-2005, 04:58 PM
if (VB_AREA == 'AdminCP' and $bbuserinfo[userid] == 'X')
{
$config['Misc']['debug'] = true;
}
Something like that, but I don't think vB will read the $bbuserinfo[] in the config.php file. Worth a shot.
Mudvayne
12-17-2005, 03:06 AM
hehe tried but even it wont start debug option auch.. Kirby.. requesting u to make a solution.. it would be usefull coz not all the admin need the debug option in acp..
/ping Kirby :P
Logikos
12-17-2005, 03:16 AM
Did you change the X to the userid of choice?
Mudvayne
12-17-2005, 08:40 AM
Did you change the X to the userid of choice?
Nahhhhhhh.. wont work.. yah i changed X also try $vbulletin->userinfo[userid] == 'X') & [userid] == X)
nothing work :(
Logikos
12-17-2005, 03:43 PM
Yea, it's because the config.php file is read before those variables take place. I would ask Kirby, he might have an answer for you. :)
akanevsky
12-17-2005, 03:46 PM
How about making this a plugin? ;)
If you do, variables in question might start workin'. ;)
I'd make some turn on/off option in vbulletin options, with a couple of permissions or something. :)
Mudvayne
12-17-2005, 05:30 PM
How about making this a plugin? ;)
If you do, variables in question might start workin'. ;)
I'd make some turn on/off option in vbulletin options, with a couple of permissions or something. :)
Oh man great news.. how many minutes i hav to wait? hehe plz make it quick.. either liviwire or Psionic Vision :)
akanevsky
12-17-2005, 05:31 PM
I believe LiveWire can do it on his own :)
Mudvayne
12-20-2005, 06:19 AM
I believe LiveWire can do it on his own :)
Waiting for this plugin :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.