Logs in HTML.

By Cazz on Sep 23, 2008

It's my simple way of making logs of a channel in HTML.

Change 'Logs/Web/Home.htm' to 'Logs/Web/YOUR_CHANNEL_NAME.htm'
And change on the #Home in the ON's to your channel.

If you want to upload them to a site, you can learn about sock's or use a .bat file (google it).

This is still missing a few things so I'll update it some time.

Suggestions welcome.

on *:TEXT:*:#Home:{
  /write Logs/Web/Home.htm <font color="lime">(</font><font color="gray"> $+ $time(h:nn:ss TT) $+ </font><font color="lime">)</font> <font color="lime">(</font><font color="gray"> $+ $nick $+ </font><font color="lime">)</font><font color="gray"> $1- </font><br>
}

on *:ACT:*:#Home:{
  /write Logs/Web/Home.htm <font color="lime">(<font color="gray"> $+ $time(h:nn:ss TT) $+ <font color="lime">)</font><font color="lightpurple"> * $nick $1- </font><br>
}

on *:JOIN:#Home:{
  /write Logs/Web/Home.htm <font color="lime">(<font color="gray"> $+ $time(h:nn:ss TT) $+ <font color="lime">)</font><font color="lime">(<font color="gray">JOIN</font><font color="lime">) $nick <font color="lime">(</font><font color="gray"> $+ $address($nick,1) $+ </font><font color="lime">)</font><font color="gray"> joined #Home </font><br>
}

on *:PART:#Home:{
  /write Logs/Web/Home.htm <font color="lime">(<font color="gray"> $+ $time(h:nn:ss TT) $+ <font color="lime">)</font><font color="lime">(<font color="gray">PART</font><font color="lime">) $nick <font color="lime">(</font><font color="gray"> $+ $address($nick,1) $+ </font><font color="lime">)</font><font color="gray"> left #Home </font><br>
}

on *:MODE:#Home:{
  /write Logs/Web/Home.htm <font color="lime">(<font color="gray"> $+ $time(h:nn:ss TT) $+ <font color="lime">)</font><font color="lime">(<font color="gray">MODE</font><font color="lime">)</font><font color="gray"> * $nick set mode $1- </font><br>
}

on *:VOICE:#Home:{
  /write Logs/Web/Home.htm <font color="lime">(</font><font color="gray"> $+ $time(h:nn:ss TT) $+ </font><font color="lime">)</font><font color="lime">(</font><font color="gray">MODE</font><font color="lime">)</font><font color="gray"> * $nick set mode $1- </font><br>
}

on *:DEVOICE:#HOME:{
  /write Logs/Web/Home.htm <font color="lime">(<font color="gray"> $+ $time(h:nn:ss TT) $+ <font color="lime">)</font><font color="lime">(<font color="gray">MODE</font><font color="lime">)</font><font color="gray"> * $nick set mode $1- </font><br>
}

on *:HALFOP:#HOME:{
  /write Logs/Web/Home.htm <font color="lime">(<font color="gray"> $+ $time(h:nn:ss TT) $+ <font color="lime">)</font><font color="lime">(<font color="gray">MODE</font><font color="lime">)</font><font color="gray"> * $nick set mode $1- </font><br>
}

on *:DEHALFOP:#Home:{
  /write Logs/Web/Home.htm <font color="lime">(<font color="gray"> $+ $time(h:nn:ss TT) $+ <font color="lime">)</font><font color="lime">(<font color="gray">MODE</font><font color="lime">)</font><font color="gray"> * $nick set mode $1- </font><br>
}

on *:OP:#Home:{
  /write Logs/Web/Home.htm <font color="lime">(<font color="gray"> $+ $time(h:nn:ss TT) $+ <font color="lime">)</font><font color="lime">(<font color="gray">MODE</font><font color="lime">)</font><font color="gray"> * $nick set mode $1- </font><br>
}

on *:DEOP:#Home:{
  /write Logs/Web/Home.htm <font color="lime">(<font color="gray"> $+ $time(h:nn:ss TT) $+ <font color="lime">)</font><font color="lime">(<font color="gray">MODE</font><font color="lime">)</font><font color="gray"> * $nick set mode $1- </font><br>
}

Comments

Sign in to comment.
Cazz   -  May 28, 2011

Yes but I don't know off the top of my head. Sorry. Maybe somebody else can help you.

 Respond  
Skunk   -  May 06, 2011

Hi
is there a way to limit the amount of lines in the file and if that amount is reached it will delete the uppermost line?

 Respond  
Cazz   -  Jul 21, 2009

Exactly! Haha. I took a very long break from the computer world to focus more on school.

I'll be revisiting all of my scripts once I've finished my gaming rig. As of now, I'm on my macbook running Windows 7 with "Parallels" so I'm not really in the mood for making scripts in a small contained box :P

Thanks again for the encouragement on the idea!

And in my recent scripts I have been focusing on user friendliness and working on extra features.

 Respond  
FordLawnmower   -  Jul 21, 2009

It's a really good idea Cazz, but you need to expand on it a little so people have some options etc. > I was lazy at the time.
Laughs It took you 11 months to respond to the comments on this post.
Good Idea though :)

 Respond  
Cazz   -  Jul 21, 2009

Oh, wanted to mention I did put

"This is still missing a few things so I'll update it some time."

But it's been months since I bothered with mIRC lol.

 Respond  
Cazz   -  Jul 21, 2009

Thanks for the suggestions. I wrote this for a bot and then thought I'd share but never bothered to make it ready for people to use.

So yeah, this might be useless but it is a good base to grow an idea on :)

Also, the font tags missing are overtaken by the next font tag. I do admit though, I should have those closed. I was lazy at the time.

Sorry if you didn't like it.

 Respond  
Zmodem   -  Feb 04, 2009

Yes.

 Respond  
PuNkTuReD   -  Jan 31, 2009

ahouldnt it be ACTION
not ACT ?

 Respond  
xplo   -  Jan 31, 2009

1/10 incomplete code, in other words... useless piece of crap.

 Respond  
Jonesy44   -  Sep 25, 2008

This actually is a really good idea fairplay. but it needs to be a lot more user friendly. i'll give it a whirl and do it up when i get some free time..

NIce job, great idea.

 Respond  
Zmodem   -  Sep 25, 2008

I agree with mostly what's been said here. There are way too many repetitive things going on here. You've also got a bunch of events missing. This could stand to be massively improved.

 Respond  
Imrac   -  Sep 25, 2008

Take a look at mine: http://www.hawkee.com/snippet/5017/
You should setup an alias so you don't have to /write Ugly HTML ASDKLASDJLJ ASJD ASD SD JLKASD:L ect in it. my 2 cents.

 Respond  
PuNkTuReD   -  Sep 24, 2008

bans kicks

 Respond  
^Neptune   -  Sep 24, 2008

And yeah, you're missing some pretty important events here. Especially a REALLY important one.. on INPUT! With this script, you won't even be able to see your own text in the logs!

 Respond  
^Neptune   -  Sep 24, 2008

It would be nice if you could set a variable for the channel/logging file because it's annoying for a user to go through and manually change stuff.

 Respond  
Wizjany   -  Sep 23, 2008

Firstly, "ACT" should be action. Also, halfop and dehalfop should be help and dehelp, respectively. You may also want to add a leave or a quit, because not all people use part.

I'm not sure about this, but

<font color="lime">(<font color="gray"> $+ $time(h:nn:ss TT) $+ <font color="lime">)</font><font color="lime">(

is missing several tags. I'm not sure if a new one will simply overwrite it or if it needs to be closed, because you closed it a few times and left it the rest.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.