mIRC Home    About    Download    Register    News    Help

Print Thread
#138687 05/01/06 12:36 AM
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
Hi there.

Im looking for a script that can convert an mirc log file into an html page, ive searched a bit, but couldnt find anything, maybe I didnt look good enough, but if one of you could help me with this I would be very happy.

#138688 05/01/06 02:00 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
What do you mean by 'convert'? The log files can be displayed as-is, without any modifications. Just make it so that the logs are accessible by a web server (like Apache) and add a link to each log file:

<a href="#channel.log">View #channel log</a>

If you want the links to the log files to be generated dynamically, you can use a language like PHP to do so.

If neither of those options are what you want, explain your request farther.

-genius_at_work

Last edited by genius_at_work; 05/01/06 02:01 AM.
#138689 05/01/06 02:32 AM
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
What I mean is, I want the log files to be convertet into an html file, so that the .log will be an .html hmm hard to explaine for me, but I saw this script in NoName script, it was called Logviewer, and it could make an html page out of the log wich you choose from the log file folder.

#138690 05/01/06 03:21 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
I'm still not sure what you mean by 'convert' to html. A file doesn't need to end in .html to be displayed as a webpage. For example, this page is a .txt file. Here is a sample from one of my log files:
Quote:

[9:38:29a] (WildBoT): Question 6 of 10: Economics: What is the national currency of Samoa?
[9:40:01a] (WildBoT): No winners. Time is up!
[9:40:16a] (WildBoT): Quiz Time! Nobody got this one last time...
[9:40:17a] (WildBoT): Question 7 of 10: Biology: What are the three most common warning colors of a poisonous and harmful insect?
[9:41:51a] (WildBoT): No winners. Time is up!
[9:42:06a] (WildBoT): Quiz Time! This one's never been answered...
[9:42:08a] (WildBoT): Question 8 of 10: Biology: On average, one out of how many men snore?
[9:43:39a] (WildBoT): No winners. Time is up!
[9:43:54a] (WildBoT): Quiz Time! Get ready...
[9:43:56a] (WildBoT): Question 9 of 10: Music: Albums - Who released 'A Day at the Races'?
[9:45:30a] (WildBoT): No winners. Time is up!


I could put that file, exactly as it is now, into the public directory of a webserver and it could be viewed by anyone without any special plugins, etc.

I'm not sure what else you could do to display a log file on a webserver.

-genius_at_work

#138691 05/01/06 04:01 AM
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
Sorry I think I was way to tired, I just had this idea that an html would make it look better and give a better overview, but nevermind, sorry if I made some stupid questions, my bed is calling hehe. thx anyway.

#138692 05/01/06 05:17 AM
Joined: Jan 2005
Posts: 192
Vogon poet
Offline
Vogon poet
Joined: Jan 2005
Posts: 192
Andy's IRC2HTML
This one does good job with converting mirc logs into html page while keeping colors and such.


echo -a $signature
#138693 05/01/06 05:09 PM
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
Thx alot Brax.


Link Copied to Clipboard