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 (87 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: 25366
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 83
Gizmo 29
sirdude 25
Zarzal 22
blaaskaak 13
willing 7
swebs 6
Who's Online
1 Registered (sirdude), 42 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Nice Ajax Chat
by sirdude
22 minutes 15 seconds ago
[7.x] UBB.Post Templates v0.1
by sirdude
Today at 12:48 PM
Team UBBDev Rides Again!
by AllenAyres
Yesterday at 10:56 PM
[7.3.x] ubb.links
by AllenAyres
07/03/08 06:15 PM
Changing currency for subscriptions?
by AllenAyres
07/03/08 01:15 PM
Protect users emails
by AllenAyres
07/03/08 11:36 AM
VPS and Newbies
by Gizmo
07/02/08 09:08 PM
New Mods
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
Newest Members
ryzilla, M4D, Jer, Kanigo2, Bubba
13302 Registered Users

 

 

 
fusionbb message board php hacks