Suggestions/patch
-
The plugin is very useful, however there are a few formatting items:
1. The table is a little wide in the widget and runs up against the postbox.
2. The item list is ordered so that you have to scroll all the way down to see the latest messages.
3. There’s no title on the table.
I’ve made the following changes to DashboardWidget.php for each:
1. Updated line 60 as follows (added the 95% width style):
'<tr style="width: 95%%;"%s><td style="white-space:nowrap;">%s</td><td>%s</td></tr>',
2. Add the following line after line 45 which inverts the sort order:
$lines = array_reverse( $lines );
3. Replace line 51/52 with the following:
echo '<table class="widefat">'; echo '<thead><tr style="width: 95%%;"%s><th style="white-space:nowrap;">Date/Time</th><th>Message</th></tr></thead>'; $isOddRow = false; echo '<tbody>';
Another suggestion would be to have the PHP error log file name in the widget as a link that would download the log file.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Suggestions/patch’ is closed to new replies.