Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: DebuggingInfo1.0

Description: The mod displays the Debugging Info at the bottom of the screen for Admins and Mods Only

Working under: UBB.threads 6.1 (tested under 6.1... but should work fine under 6.0.x)
12/26/02 - Verified instructions under 6.2

Any pre-requisites: none

Author(s): JoshPet www.joshuapettit.com
    for discussions and bugs go to www.ubbdev.com

Date: 9/30/02

Credits: Maze for suggesting it

Files Altered: ubbt.inc.php

Database Altered: No.

New Files: Turn the debugging option on in the config file.... it will only appear for Admins and Mods
Attachments
58057-DebuggingInfo1.0.txt (0 Bytes, 172 downloads)

Sponsored Links
Joined: Oct 1999
Posts: 282
Enthusiast
Enthusiast
Offline
Joined: Oct 1999
Posts: 282
Cool, thanks!

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
yes cool

does anyone know of there's additional server overhead by the printing of the debug info?


- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I don't know... I wasn't sure.

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.

Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
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.


UBB.threads Developer
Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Verified that this works under UBB.Threads 6.2

Joined: Mar 2004
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2004
Posts: 118
There is a little bug in here
At least if you want this to work 6.4.

Change this
[]
if (!$user['U_Status']) {
$userob = new user;
$user = $userob -> authenticate();
$Status = $user['U_Status'];
}
[/]
to this:
[]
if (!$user['U_Status']) {
$userob = new user;
$user = $userob -> authenticate();

}

$Status = $user['U_Status'];
[/]
Since the the next if statement depends on $Status.


Kind regards,
PaNTerSan

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)