![]() |
Online Log Reader
2 Attachment(s)
I was looking at cbk's login message GUI, and saw that it read the contents of a text file and showed it in a GUI text box. I took this idea and decided to make an online log reader so you can check your logs online. It is just a simple script however and I have thought about adding some more features like editing the text file via a GUI and some other stuff, but I need to read up on editing text files first. Anyway, if you guys think I should go ahead and post it in the code gallery, I will, but I want to see if there is anything you guys think I can improve here. You guys are more than welcome to post edited versions, fixes, advice and whatever else :D Thanks!
|
The first thing you need to fix is the terribly inconsistent styling.
Also, you should just use PHP tags for code that's not too long to post. PHP Code:
PHP Code:
|
Thank you very much. It was a previous attempt to add a timeout to the script that I decided not to add, but I seem to type too fast and forget to remove things, thank you for spotting it out though. I have added a command to update the log now by saying /updatelog while the log is open instead of firing the weapon allowing you to make the system a hidden weapon.
PHP Code:
error: unexpected token: = at line 76: temp.ne@ = temp.a@"\n"; error: unexpected token: at line 79: } |
Quote:
I personally avoid using @= and similar except for basic math operations like -, +, /, *. |
Quote:
|
Quote:
I would personally opt to download a log file through the File Browser and use Notepad++ (or different text editor) to read through it with the additional functionality it provides. Code Gallery submissions should be (IMO): 1. Documented and styled consistently. (This is very important) 2. Useful, unique, new and/or innovative. 3. Efficient and Scalable (depending on the purpose of the code). |
Quote:
|
2 Attachment(s)
I am applying the new features as we speak. Might take a while because I am going to add as much detail as I can.
New features: -------------------------------------------------------------------------------------- Filter Text - Choose what text you would like to leave out, or search for specific users. Copy All - Select all the text in the multi line. Find Text - Find specific text. Clear Text - Reset the log file. Editing and Viewing mode - Allows reading and editing of the text file. Selection of Log - Allow the selection of the log to read from the GUI. -------------------------------------------------------------------------------------- I am adding these as I go along and don't yet know if they are all possible, but I will tackle them as I go along. Any help would be greatly appreciated. |
Interesting- does this have lag?
|
Quote:
|
you should have a cap on the current amount of loaded lines - if i used this on any of era's logs it'd probably crash the client from the resulting hang
|
old thread is old
|
Quote:
Quote:
|
Quick question. I see a text-box for the logname but I don't see an option for it to let you type which log's you want to load. So does this only support one log? And if not are there any preventions for abuse, such as loading files that shouldn't be loaded?
Nice work, tho styling does make it easier to read as cbk stated. Curious how you came up with the version number tho? Interesting article on that might be, http://en.wikipedia.org/wiki/Versioning Other then that keep up the work. Interesting to see how the final revision turns out. Also, about Code Gallery, I don't quite think it's up to code gallery quality but I'm sure you could polish it up a little so that it would make a great contribution. |
All times are GMT +2. The time now is 02:38 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.