Advertisement:

Navigation

SMF Mod Site

Mod Name:
DevCenter
Created By:
NanoSector
Type:
New Feature
First Created:
October 15, 2012, 06:16:09 PM
Last Modified:
March 09, 2017, 10:12:06 AM
Latest Version:
0.4.1
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
Total Downloads:
1197

Download this mod

dc0.4.1.tar.gz (4kB) [874]
Manual Install Instructions for SMF


Below are some preview images of what the mod looks like when being used

Description:

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:
Quote
In Sources/Subs.php, find:
Code: [Select]
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:
Code: [Select]
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 />';