Additional Info
Type
Package ID
Yoshi2889:DevCenter
First Created
October 15, 2012, 06:16:09 PM
Last Updated
March 09, 2017, 10:12:06 AM

DevCenter v0.4.1

Adds a couple of settings useful for developers.
Compatible With 2.0.2, 2.0.3, 2.0.4, 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.0.13
Latest version v0.4.1
Downloads 1,247
Reviews 0
Rating 0/5
Subscribers 9
License (View License)
Author(s)
DevCenter
If you need to report a bug, please do so on GitHub!

This modification adds a couple of settings to the admin panel that might be useful when developing a modification. Along with that it also is able to monitor the server load. It is able to:

  • Show the amount of error log entries, right in the Admin menu button;
  • Show debugging information without having to edit your Settings.php;
  • Trigger phpinfo() by going to index.php?action=phpinfo
  • Monitor server load in the footer.

Languages:
- English

Installation:
Install through the package manager.

Files modified:
- Sources/ManageErrors.php
- Themes/default/index.template.php
- Sources/Subs.php

Changelog
v0.4.1
! Fixed bug with the Admin error log counter (thanks phantomm!)

v0.4
+ Add server load indicator (for Windows only, thanks Gryzor for the suggestion & testing!)
+ Add Spanish translation (thanks davidhs!)
- Removed Dutch translation (will get to that at a later time)

v0.3.2
- Removed server load checking since it's built in to SMF itself
! Code cleanup

v0.3.1
! Fixed undefined index upon install (thanks phantomm for reporting and thanks Arantor for bringing me on the right track)

v0.3
! Rewrote the counting mechanism of the error log entries (thanks Arantor!)
! Bug fixes

v0.2
+ Added Dutch translation

v0.1
- Initial release

License:
This mod is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported license.

Tips and tricks

  • Show the time taken to execute a query in bold:
QuoteIn Sources/Subs.php, find:
if (isset($qq['s'], $qq['t']) && isset($txt['debug_query_which_took_at']))
echo sprintf($txt['debug_query_which_took_at'], round($qq['t'], 8), round($qq['s'], 8)) . '<br />';
elseif (isset($qq['t']))
echo sprintf($txt['debug_query_which_took'], round($qq['t'], 8)) . '<br />';


Replace with:
if (isset($qq['s'], $qq['t']) && isset($txt['debug_query_which_took_at']))
echo '<strong>' . sprintf($txt['debug_query_which_took_at'], round($qq['t'], 8), round($qq['s'], 8)) . '</strong><br />';
elseif (isset($qq['t']))
echo '<strong>' . sprintf($txt['debug_query_which_took'], round($qq['t'], 8)) . '</strong><br />';
dc0.4.1.tar.gz
3.87 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: