Log viewer - Change default options?

nutN2Lewz

Verified User
Joined
Feb 26, 2013
Messages
20
In the Admin 'Log Viewer' the default 'Number of lines from the end' = "50" and the 'Output type' = "TextArea Below". Can I alter these default settings to "200" and "Raw file (faster and more efficient)"?

Thanks, Barry
 
Go to
Code:
/usr/local/directadmin/data/skins/[yourthem eg: Capri]/admin/log_viewer.html
find the following line and change 'value="50"' to 'value="200"'
Code:
<tr><th>|LANG_NUM_LINES|</th><td><input type=text name=lines value="200" class="combot" size=7>
 
Thank you for that info. My log_viewer.html (enhanced skin) is coded a bit differently from yours.

I changed ...
<input type=text name=lines value="|LINES|" size=4>
to ...
<input type=text name=lines value="200" size=4>


And I changed ...

<input type=radio name=type value=textarea checked>
<input type=radio name=type value=raw>
to ...
<input type=radio name=type value=textarea>
<input type=radio name=type value=raw checked>

Thanks, Barry
 
You'd better check this http://help.directadmin.com/item.php?id=295 if you don't want to modify the file every time after you upgrade Directadmin.


I couldn't get that procedure to work properly.

I created files_custom.conf with the same ownership/permissions as the other conf files. That file contains one line ... CMD_LOG_VIEWER=admin/log_viewer_modified.html.

I then 'cp admin/log_viewer.html admin/log_viewer_modified.html'. Same ownership/permissions. I did not modify this file in any way (for example purposes).

This is what I get ...

Without files_custom.conf ... log_viewer.jpg

With files_custom.conf ... log_viewer_modified.jpg

log-viewer_modified.html acts differently from the original even though it is the exact same file - the field descriptions are not pulled from the database.

Thanks, Barry
 
Directadmin when using a HTML template loads a language file with the same name.
So if you changed

Code:
admin/log_viewer.html

to

Code:
admin/log_viewer_modified.html

you need to copy (or create a symlink)

Code:
lang/en/admin/log_viewer.html

to

Code:
lang/en/admin/log_viewer_modified.html

as well


p.s. I guess the guide should be updated to include this information.
 
Back
Top