<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/16271" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2008-10-25T17:33:31-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/16271</id>

		<entry>
		<author><name><![CDATA[unb0rn]]></name></author>
		<updated>2008-10-25T17:33:31-04:00</updated>

		<published>2008-10-25T17:33:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85640#p85640</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85640#p85640"/>
		<title type="html"><![CDATA[Help with log to html script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85640#p85640"><![CDATA[
well, i've edited the one that i have posted here, and its working...now i only need to put this separating them by days or something...lol<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10194">unb0rn</a> — Sat Oct 25, 2008 5:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-10-25T04:48:12-04:00</updated>

		<published>2008-10-25T04:48:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85627#p85627</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85627#p85627"/>
		<title type="html"><![CDATA[Help with log to html script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85627#p85627"><![CDATA[
lol none which i can find <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"> usually the it helps to play around with the settings in the config file till you get the right affect <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sat Oct 25, 2008 4:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[unb0rn]]></name></author>
		<updated>2008-10-24T15:19:34-04:00</updated>

		<published>2008-10-24T15:19:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85625#p85625</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85625#p85625"/>
		<title type="html"><![CDATA[Help with log to html script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85625#p85625"><![CDATA[
I've tried that one, and i can't get it to work properly.. ;&lt;<br>maybe i'm doing something wrong...isn't there a page that shows how to configure it, from scratch?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10194">unb0rn</a> — Fri Oct 24, 2008 3:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-10-24T08:27:48-04:00</updated>

		<published>2008-10-24T08:27:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85622#p85622</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85622#p85622"/>
		<title type="html"><![CDATA[Help with log to html script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85622#p85622"><![CDATA[
Eggdrop dosen't log its <strong class="text-strong">*</strong>own<strong class="text-strong">*</strong> messages. And have to looked in to using the module logs2html? if memory servers me correctly this module provides more of the functions you seem to be requesting. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><br>RE: <a href="http://sourceforge.net/projects/logs2html/" class="postlink">Project Page</a><br>RE: <a href="http://egghelp.org/files.htm#modules" class="postlink">Local Link</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Fri Oct 24, 2008 8:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[unb0rn]]></name></author>
		<updated>2008-10-24T07:41:31-04:00</updated>

		<published>2008-10-24T07:41:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85621#p85621</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85621#p85621"/>
		<title type="html"><![CDATA[Help with log to html script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85621#p85621"><![CDATA[
Hello, im using the script "pxi2h" to log the conversations of one channel, to a html file, but i have a few problems with the script:<br><br>- It doesn't log own messages<br>- It ignores the number's<br>- has a limit of lines<br><br>what i need help for is:<br><br>- I want it to separate the pages by day, separate, or create a new html for each day<br>- include the numbers on the log.html and is own messages (the eggdrop i mean)<br>- Have no limit of lines.<br><br>The script:<br><blockquote class="uncited"><div>### Configuration:<br><br>#<br><br><br><br># The channel set to show online:<br><br>set pxi2h_chan(#chan) "/var/www/chan.html"<br><br>#<br><br># The prefix to prevent stuff from being shown on the web:<br><br>set pxi2h(secret) ""<br><br>#<br><br># Maximum number of lines shown on the web:<br><br>set pxi2h(maxlines) 15<br><br>#<br><br># The page is set to refes every X seconds:<br><br>set pxi2h(refresh) 10<br><br>#<br><br># The title of the page:<br><br>set pxi2h(title) "Log page for #chan"<br><br>#<br><br># Text color:<br><br>set pxi2h(text) "#FFFFFF"<br><br>#<br><br># Background color:<br><br>set pxi2h(bgcolor) "#000000"<br><br>#<br><br># Heading color:<br><br>set pxi2h(heading) "#6666EE"<br><br>#<br><br># Font type:<br><br>set pxi2h(font) "monospace"<br><br>#<br><br>### End of config.<br><br>########################################################################<br><br><br><br>proc pxi2h:style {event chan nick host arg} {<br><br>  global pxi2h_history<br><br>  set chan [pxi2h:findchan $chan]<br><br>  if {$chan == ""} { return }<br><br>  switch -- $event {<br><br>    actn { set text "* $nick $arg" }<br><br>    join { set text "*** $nick ($host) has joined $chan" }<br><br>    kick { set text "*** [lindex $arg 0] was kicked by $nick ([lrange $arg 1 end])" }<br><br>    mode { set text "*** $nick sets mode: $arg" }<br><br>    nick { set text "*** $nick is now known as $arg" }<br><br>    part { set text "*** $nick ($host) has left $chan" }<br><br>    pubm { set text "&lt;$nick&gt; $arg" }<br><br>    sign { set text "*** $nick ($host) has quit irc ($arg)" }<br><br>    topc { set text "*** $nick changes topic to '$arg'" }<br><br>  }<br><br>  set pxi2h_history($chan) [lappend pxi2h_history($chan) [pxi2h:control [pxi2h:convert $text]]]<br><br>  utimer 1 "pxi2h:make $chan"<br><br>}<br><br><br><br>proc pxi2h:dcc {hand idx arg} {<br><br>  global pxi2h<br><br>  if {[string tolower [lindex $arg 0]] == "on"} {<br><br>    set pxi2h(status) "on"<br><br>  } elseif {[string tolower [lindex $arg 0]] == "off"} {<br><br>    set pxi2h(status) "off"<br><br>  }<br><br>  putdcc $idx "ProjectX irc2html is $pxi2h(status)"<br><br>  return 1 <br><br>}<br><br><br><br>proc pxi2h:html {text} {<br><br>  return [pxi2h:unconvert [pxi2h:convert $text]]<br><br>}<br><br>proc pxi2h:control {text} {<br><br> set temp $text<br><br> set text ""<br><br> set bold "0"<br><br> set undr "0"<br><br> set color "0"<br><br><br><br> for {set i 0} {$i &lt; [string length $temp]} {incr i} {<br><br>   set c [string index $temp $i]<br><br>   switch -- $c {<br><br>      { if {$bold == "1"} { set text "$text&lt;/B&gt;"; set bold "0" } else { set text "$text&lt;B&gt;"; set bold "1" } }<br><br>      { if {$undr == "1"} { set text "$text&lt;/U&gt;"; set undr "0" } else { set text "$text&lt;U&gt;"; set undr "1" } }<br><br>      { }<br><br>      { }<br><br>     default { set text "$text$c" }<br><br>   }<br><br> }<br><br><br><br> if {$bold == "1"} { set text "$text&lt;/B&gt;" }<br><br> if {$undr == "1"} { set text "$text&lt;/U&gt;" }<br><br> return $text<br><br>}<br><br>proc pxi2h:convert {text} {<br><br>  regsub -all , $text "" text<br><br>  regsub -all 0 $text "" text<br><br>  regsub -all 1 $text "" text<br><br>  regsub -all 2 $text "" text<br><br>  regsub -all 3 $text "" text<br><br>  regsub -all 4 $text "" text<br><br>  regsub -all 5 $text "" text<br><br>  regsub -all 6 $text "" text<br><br>  regsub -all 7 $text "" text<br><br>  regsub -all 8 $text "" text<br><br>  regsub -all 9 $text "" text<br><br>  regsub -all {\]} $text "p!c1" text<br><br>  regsub -all {\[} $text "p!c2" text<br><br>  regsub -all {\}} $text "p!c3" text<br><br>  regsub -all {\{} $text "p!c4" text<br><br>  regsub -all {\$} $text "p!c5" text<br><br>  regsub -all {\"} $text "p!c6" text<br><br>  regsub -all {\;} $text "p!c7" text<br><br>  regsub -all {\\} $text "p!c8" text<br><br>  regsub -all {\/} $text "p!c9" text<br><br>  regsub -all &amp; $text "\\&amp;" text<br><br>  regsub -all &lt; $text "\\&lt;" text<br><br>  regsub -all &gt; $text "\\&gt;" text<br><br>  regsub -all \" $text "\\"" text<br><br>  regsub -all "  " $text "\\  " text<br><br>  return $text<br><br>}<br><br>proc pxi2h:unconvert {text} {<br><br>  regsub -all {p!c1} $text "\]" text<br><br>  regsub -all {p!c2} $text "\[" text<br><br>  regsub -all {p!c3} $text "\}" text<br><br>  regsub -all {p!c4} $text "\{" text<br><br>  regsub -all {p!c5} $text "\$" text<br><br>  regsub -all {p!c6} $text "\"" text<br><br>  regsub -all {p!c7} $text "\;" text<br><br>  regsub -all {p!c8} $text "\\" text<br><br>  regsub -all {p!c9} $text "\/" text<br><br>  return $text<br><br>}<br><br><br><br>proc pxi2h:make {chan} {<br><br>  global pxi2h_history pxi2h pxi2h_chan server<br><br>  if {[llength $pxi2h_history($chan)] &gt; $pxi2h(maxlines)} { set pxi2h_history($chan) [lrange $pxi2h_history($chan) 1 end] }<br><br>  set nicks ""<br><br>  foreach nick [chanlist $chan] { <br><br>    if {[isop $nick $chan]} {<br><br>      set nicks "$nicks @[pxi2h:convert $nick]"<br><br>    } elseif {[isvoice $nick $chan]} {<br><br>      set nicks "$nicks +[pxi2h:convert $nick]"<br><br>    } else {<br><br>      set nicks "$nicks [pxi2h:convert $nick]"<br><br>    } <br><br>  }<br><br>  set nicks [lsort -increasing $nicks]<br><br>  set html [open $pxi2h_chan($chan) w]<br><br>  puts $html "&lt;HTML&gt;\n&lt;HEAD&gt;\n &lt;TITLE&gt;$pxi2h(title)&lt;/TITLE&gt;\n &lt;META HTTP-EQUIV=\"Refresh\" CONTENT=\"$pxi2h(refresh)\"&gt;\n&lt;/HEAD&gt;"<br><br>  puts $html "&lt;BODY TEXT=\"$pxi2h(text)\" BGCOLOR=\"$pxi2h(bgcolor)\" LINK=\"$pxi2h(heading)\" VLINK=\"$pxi2h(heading)\"&gt;"<br><br>  puts $html " &lt;FONT COLOR=\"$pxi2h(heading)\"&gt;&lt;FONT SIZE=\"+1\" FACE=\"sans-serif\"&gt;$chan&lt;/FONT&gt; &lt;FONT SIZE=\"-1\" FACE=\"monospace\"&gt;\[[lindex [getchanmode $chan] 0]\]: '[pxi2h:html [topic $chan]]'&lt;/FONT&gt;&lt;/FONT&gt;&lt;P&gt;"<br><br>  puts $html " &lt;FONT SIZE=\"-1\" FACE=\"$pxi2h(font)\"&gt;"<br><br>  puts $html "  &lt;B&gt;Server.&lt;/B&gt;: [string range $server 0 [expr [string last ":" $server] - 1]]&lt;BR&gt;"<br><br>  puts $html "  &lt;B&gt;Users..&lt;/B&gt;: [pxi2h:unconvert $nicks]&lt;BR&gt;\n  &lt;HR SIZE=\"1\"&gt;"<br><br>  close $html<br><br>  set html [open $pxi2h_chan($chan) a]<br><br>  if {$pxi2h(status) == "on"} {<br><br>    for {set i 0} {$i &lt; [llength $pxi2h_history($chan)]} { incr i } {<br><br>      puts $html "  \[[strftime "%H:%M"]\][pxi2h:unconvert [lindex $pxi2h_history($chan) $i]]&lt;BR&gt;"<br><br>    }<br><br>  } else {<br><br>    puts $html "  &lt;BR&gt;&lt;CENTER&gt;&lt;B&gt;O F F L I N E !&lt;/B&gt;&lt;/CENTER&gt;&lt;P&gt;"<br><br>  }<br><br>  puts $html " &lt;/FONT&gt;\n &lt;HR SIZE=\"1\"&gt;\n &lt;CENTER&gt;&lt;FONT SIZE=\"-1\" FACE=\"sans-serif\"&gt;&lt;I&gt;Powered by &lt;A HREF=\"<a href="http://www.pr0n.no-ip.org/%5C%22%3Ehttp://pr0n.no-ip.org%3C/A%3E%3C/I%3E%3C/FONT%3E%3C/CENTER%3E%5Cn%3C/BODY%3E%5Cn%3C/HTML" class="postlink">http://www.pr0n.no-ip.org/\"&gt;http://pr0 ... Y&gt;\n&lt;/HTML</a>&gt;"<br><br>  close $html<br><br>}<br><br><br><br>proc pxi2h:findchan {chan} {<br><br>  global pxi2h_chan<br><br>  foreach ele [array names pxi2h_chan] {<br><br>    if {[string tolower $ele] == [string tolower $chan]} { return $ele }<br><br>  }<br><br>}<br><br><br><br>proc pxi2h:ctcp {nick host handle dest keyword arg} {<br><br>  if {![string compare $keyword "ACTION"]} { pxi2h:style "actn" $dest $nick $host $arg }<br><br>}<br><br>proc pxi2h:join {nick host handle chan} {<br><br>  pxi2h:style "join" $chan $nick $host ""<br><br>}<br><br>proc pxi2h:kick {nick host handle chan knick arg} {<br><br>  pxi2h:style "kick" $chan $nick $host "$knick $arg"<br><br>}<br><br>proc pxi2h:mode11x {nick host handle chan arg} {<br><br>  if {[lindex $arg 0] == "+k"} { set mode [lindex $arg 0] } else { set mode [lrange $arg 0 end] }<br><br>  pxi2h:style "mode" $chan $nick $host $mode<br><br>}<br><br>proc pxi2h:mode13x {nick host handle chan arg mnick} {<br><br>  if {[lindex $arg 0] == "+k"} { set mode [lindex $arg 0] } else { set mode "[lrange $arg 0 end] $mnick" }<br><br>  pxi2h:style "mode" $chan $nick $host $mode<br><br>}<br><br>proc pxi2h:nick {nick host handle chan newnick} {<br><br>  pxi2h:style "nick" $chan $nick $host $newnick<br><br>}<br><br>proc pxi2h:part {nick host handle chan rest} {<br><br>  pxi2h:style "part" $chan $nick $host ""<br><br>}<br><br>proc pxi2h:pubm {nick host handle chan arg} {<br><br>  global pxi2h<br><br>  if {[string range $arg 0 0] != $pxi2h(secret)} { pxi2h:style "pubm" $chan $nick $host $arg }<br><br>}<br><br>proc pxi2h:sign {nick host handle chan arg} {<br><br>  pxi2h:style "sign" $chan $nick $host $arg<br><br>}<br><br>proc pxi2h:topc {nick host handle chan topic} {<br><br>  if {$nick != "*"} { pxi2h:style "topc" $chan $nick $host $topic }<br><br>}<br><br><br><br>bind dcc +m irc2html pxi2h:dcc<br><br>bind ctcp - ACTION pxi2h:ctcp<br><br>bind join - * pxi2h:join<br><br>bind kick - * pxi2h:kick<br><br>if {[lindex $version 1] &lt; "01030000"} {<br><br>  bind mode - * pxi2h:mode11x<br><br>} else {<br><br>  bind mode - * pxi2h:mode13x<br><br>}<br><br>bind nick - * pxi2h:nick<br><br>bind part - * pxi2h:part<br><br>bind pubm - * pxi2h:pubm<br><br>bind sign - * pxi2h:sign<br><br>bind topc - * pxi2h:topc<br><br><br><br>set pxi2h(ver) "2.00"<br><br>if {![info exists pxi2h(status)]} { set pxi2h(status) "on" }<br><br>foreach ele [array names pxi2h_chan] {<br><br>  if {![info exists pxi2h_history($ele)]} { set pxi2h_history($ele) "" }<br><br>  pxi2h:make $ele<br><br>}<br><br>putlog "\[ProjectX\] irc2html v$pxi2h(ver) loaded."</div></blockquote>Really appreciate the help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10194">unb0rn</a> — Fri Oct 24, 2008 7:41 am</p><hr />
]]></content>
	</entry>
	</feed>
