Additional Info
Type
Package ID
ahrasis:OnlyAdminSeeLoadTime
First Created
August 15, 2010, 09:42:49 PM
Last Updated
November 02, 2015, 01:10:27 AM

OASLT - Only Admins See Load Time (Fully Hook!) v1.2.0

Only admins see load time so that the query won't be run for each and every user.
Compatible With 1.1.11, 1.1.12, 1.1.14, 1.1.17, 1.1.19, 1.1.20, 1.1.21, 2.0 RC3, 2.0 RC4, 2.0, 2.0.3, 2.0.8, 2.0.9, 2.0.11
Latest version v1.2.0
Downloads 1,843
Reviews 0
Rating 0/5
Subscribers 14
License (View License)
OASLT - Only Admins See Load Time

- For SMF 1.1.x and 2.0.x
- Hook, no file modification for SMF2.0.x

1. Please do your own backup though every installation is backed up automatically.
2. On default, when the load time is enabled, everybody, even non-user can seen the load time.
3. This mod will show the load time only to admin when it is enabled.
4. All you need to do is turn it on or off in Mod Settings Page and save it.
5. You can test it in all lower SMF version too as it should work just fine. ;)


Thank you for using/testing it.


Yours friendly,
Abu Fahim Ismail.

BSD License. Feel free to modify accordingly but keep author's link if it is in there somewhere. ;)

 


Note: I think this can be correctly done in another way using hook in Subs.php i.e. 'integrate_exit', array($do_footer && !WIRELESS)), but I am not so sure about it and have a little time to test it. I think that hook can be used add condition for load time instead of buffering them. I will attempt that later like what I did in SMF 1.1.x so it will be universal and suitable to all themes.


#Change Logs

@Version 1.2.0
- Rewriting the mod to fully use hook for SMF 2.0.x though I think it is not the right one, yet.
- Rewriting the mod to change Subs.php instead of index.template.php in SMF 1.1.x so it is now universal and suitable to all themes.

@Version 1.1.1
- Covers SMF 2.0 final release.

@Version 1.1.0
- Covers both SMF 1.1.x and 2.0 beta / RC.

@Version 1.0.0
- Only Admins See Load Time Initial Release.
OASLT.v.120.zip
3.90 KB
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: