PDA

View Full Version : Debug Mode In Admincp Only


Logikos
27 Jul 2005, 08:13
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:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Add Under:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Done! Yes a very small hack I know.

Marco van Herwaarden
27 Jul 2005, 12:30
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
27 Jul 2005, 13:08
i have an admin only debug mode hack released for 3.0 which works for 3.5 as well :)

Boofo
27 Jul 2005, 22:20
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
28 Jul 2005, 01:47
thanks for that ....

Xenon
28 Jul 2005, 13:33
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
28 Jul 2005, 13:35
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
28 Jul 2005, 14:04
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
29 Jul 2005, 18:22
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
30 Jul 2005, 02:14
who cares, both good and both work.

Installed Boofo, many thanks

I think you mean LiveWire:p

Satan

Neal-UK
30 Jul 2005, 02:22
I think you mean LiveWire:p

Satan

ooppss...don't tell him, i've just edited it, shhhh

Logikos
30 Jul 2005, 03:56
ooppss...don't tell him, i've just edited it, shhhh

How rude! :surprised:

Chris M
30 Jul 2005, 11:36
How rude! :surprised:

/me pats LiveWire on the back...

There there, I'm sure you'll get over it :p

Satan

Logikos
30 Jul 2005, 12:18
* hellsatan pats LiveWire on the back...


There there, I'm sure you'll get over it :p

Satan

nealparry, Hellsatan told me... :p

amykhar
01 Aug 2005, 06:40
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
01 Aug 2005, 06:54
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
01 Aug 2005, 13:39
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
01 Aug 2005, 14:12
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
01 Aug 2005, 14:20
Ya get out of here! :p

Boofo
01 Aug 2005, 14:22
I'm gone! bi-bi ;)

amykhar
01 Aug 2005, 14:53
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
01 Aug 2005, 16:19
lmao good point. Boofo come back!!!!!!one. :p

Bubble #5
08 Oct 2005, 18:08
Great hack Live Wire! Should be standard feature in vB :)

Zachariah
08 Oct 2005, 20:18
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
09 Oct 2005, 00:19
LMAO @ Zach

Mudvayne
16 Dec 2005, 15:49
is thr any way to enable debugmode in acp just for userid 1? or like tht.. 1,2,3 etc etc

Logikos
16 Dec 2005, 17:58
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Something like that, but I don't think vB will read the $bbuserinfo[] in the config.php file. Worth a shot.

Mudvayne
17 Dec 2005, 04:06
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
17 Dec 2005, 04:16
Did you change the X to the userid of choice?

Mudvayne
17 Dec 2005, 09:40
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
17 Dec 2005, 16:43
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. :)

Psionic Vision
17 Dec 2005, 16:46
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
17 Dec 2005, 18:30
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 :)

Psionic Vision
17 Dec 2005, 18:31
I believe LiveWire can do it on his own :)

Mudvayne
20 Dec 2005, 07:19
I believe LiveWire can do it on his own :)
Waiting for this plugin :)