![]() |
AP Lightweight Performance Statistics
1 Attachment(s)
This is a very lightweight hack that adds basic page performance statistics to each page display.
It only displays for Moderators and Admins, as we don't want the unwashed masses ;) to see this information. Installation: Install the product file from AdminCP Displays as the last line of the page: Quote:
There are 3.x hacks like this that do more, the trade off being this is very low impact. 2.0.1 Removed can_moderate and added AdminCP option that allows you to set the user-groups that can see the statistics 2.0.2 Added uptime (Linux only) 2.0.3 Phrased and fixed to handle no available uptime in Linux 2.0.4 Added options MySQL uptime - optional - requires MySQL 5.1.12 or higher - off by default - adds one query per page if turned on 2.0.7 Minor updates as implemented on my site Enjoy! Kym |
1 Attachment(s)
|
Do you have a demo or pics?
|
I posted a screen shot in post 1 :D
|
Where is it coded to only show to Admin and Moderators?
Never mind I found it, if (can_moderate()) So this code is marked Re - Usable, can I take the code and add it to another mod I have on my forum, to display there instead? |
can_moderate is the condition. ;)
You can take it and change as you need. |
Thank you sir, excellent codding btw.
|
can_moderate adds a query, you do know that, right?
|
Quote:
|
nice mod, tagged
|
All times are GMT. The time now is 01:54 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|