php forum
php mysql forum
php mysql smarty
 
Topic Options
#225628 - 09/30/02 09:25 PM [6.1.x / 6.2] Debugging Info to Admins & Mods 1.0
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC

   [6.1.x / 6.2] Debugging Info to Admins & Mods 1.0 to Del.icio.us Add to del.icio.us
  Digg [6.1.x / 6.2] Debugging Info to Admins & Mods 1.0 Digg it
Mod Name / Version: DebuggingInfo1.0 <br /> <br />Description: The mod displays the Debugging Info at the bottom of the screen for Admins and Mods Only <br /> <br />Working under: UBB.threads 6.1 (tested under 6.1... but should work fine under 6.0.x) <br /> 12/26/02 - Verified instructions under 6.2 <br /> <br />Any pre-requisites: none <br /> <br />Author(s): JoshPet www.joshuapettit.com <br />    for discussions and bugs go to www.threadsdev.com <br /> <br />Date: 9/30/02 <br /> <br />Credits: Maze for suggesting it <br /> <br />Files Altered: ubbt.inc.php <br /> <br />Database Altered: No. <br /> <br />New Files: Turn the debugging option on in the config file.... it will only appear for Admins and Mods <br />


Attachments
58057-DebuggingInfo1.0.txt (91 downloads)

_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225629 - 10/01/02 03:00 AM Re: [6.1] Debugging Info to Admins & Mods 1.0 [Re: Daine]
Maze Offline
Enthusiast

Registered: 10/13/99
Posts: 468
Cool, thanks! <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#225630 - 10/06/02 01:33 AM Re: [6.1] Debugging Info to Admins & Mods 1.0 [Re: mcse007]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25411
Loc: Texas
yes cool <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />does anyone know of there's additional server overhead by the printing of the debug info?
_________________________
- Allen wavey
- What Drives You?

Top
#225631 - 10/06/02 01:49 AM Re: [6.1] Debugging Info to Admins & Mods 1.0 [Re: SurfMinister]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I don't know... I wasn't sure.<br /><br />I made the hack only do the calcs if the person was an admin or mod.... (i.e. it doesn't just control the output of it) just in case there was server load to be saved it would save it. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225632 - 10/08/02 04:14 PM Re: [6.1] Debugging Info to Admins & Mods 1.0 [Re: SurfMinister]
Rick Offline
Guru

Registered: 05/11/99
Posts: 8371
Loc: Olympia, WA
No additional overhead comes from printing the debug info. Basically, it does a timestamp before and after the page is finished and increments a counter by one each to do_query is called. So, it does do a couple extra things, but extremely minor.
_________________________
StogieSmokers.com

Top
#225633 - 12/26/02 02:35 AM Re: [6.1 & 6.2] Debugging Info to Admins & Mods 1.0 [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Verified that this works under UBB.Threads 6.2
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225634 - 09/12/04 05:52 AM Re: [6.1.x / 6.2] Debugging Info to Admins & Mods 1.0 [Re: Daine]
PaNTerSan Offline
Journeyman

Registered: 03/19/04
Posts: 122
Loc: EU, Slovenia
There is a little bug in here <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /><br />At least if you want this to work 6.4.<br /><br />Change this<br /> [] <br /> if (!$user['U_Status']) {<br /> $userob = new user;<br /> $user = $userob -> authenticate();<br /> $Status = $user['U_Status'];<br /> }<br />[/] <br />to this:<br /> [] <br /> if (!$user['U_Status']) {<br /> $userob = new user;<br /> $user = $userob -> authenticate();<br /> <br /> }<br /> <br /> $Status = $user['U_Status'];<br />[/] <br />Since the the next if statement depends on $Status.
_________________________
Kind regards,
PaNTerSan

Top


Top Posters Last 30 Days
AllenAyres 12
Gizmo 10
S7ARBVCK 2
Cambridge 1
Murphdog 1
MattUK 1
Kevin H 1
Who's Online
0 Registered (), 41 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
BeyondCompare v3.00
by blaaskaak
Yesterday at 02:46 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks