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
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 (95 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: 25448
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: 8372
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


Who's Online
0 registered (), 25 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
nick1, Begbie, cenk, MATTO, DougMMcts
13362 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks