<?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/6286" />

	<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>2003-12-02T15:21:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-02T15:21:09-04:00</updated>

		<published>2003-12-02T15:21:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31002#p31002</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31002#p31002"/>
		<title type="html"><![CDATA[need help with adding html code to script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31002#p31002"><![CDATA[
You got all the info you needed regarding your tcl problem I think. Now you're left with html-related problems which is kinda off-topic in this forum.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Dec 02, 2003 3:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bytez]]></name></author>
		<updated>2003-12-02T15:09:05-04:00</updated>

		<published>2003-12-02T15:09:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30998#p30998</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30998#p30998"/>
		<title type="html"><![CDATA[need help with adding html code to script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30998#p30998"><![CDATA[
Hey, a few problems:<br><br>1) The page would only automatically refresh one time then it no longer refreshes again.  I set the script to refresh every 10 seconds, it was working before I changed the code to what you wrote.<br>2)when I manually refreshed the page, the page would no longer automatically refresh by itself. <br>3)if I clicked on the refresh button on my browser, it goes all the way to top instead of the bottom<br><br>What gives?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3647">Bytez</a> — Tue Dec 02, 2003 3:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-02T14:55:16-04:00</updated>

		<published>2003-12-02T14:55:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30996#p30996</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30996#p30996"/>
		<title type="html"><![CDATA[need help with adding html code to script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30996#p30996"><![CDATA[
<a href="http://tcl.tk/man/tcl8.4/TclCmd/Tcl.htm#M15" class="postlink">http://tcl.tk/man/tcl8.4/TclCmd/Tcl.htm#M15</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Dec 02, 2003 2:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bytez]]></name></author>
		<updated>2003-12-02T14:51:11-04:00</updated>

		<published>2003-12-02T14:51:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30994#p30994</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30994#p30994"/>
		<title type="html"><![CDATA[need help with adding html code to script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30994#p30994"><![CDATA[
Thanks so much!!! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  What are the \n and \  on the script for?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3647">Bytez</a> — Tue Dec 02, 2003 2:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-12-02T04:31:11-04:00</updated>

		<published>2003-12-02T04:31:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30962#p30962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30962#p30962"/>
		<title type="html"><![CDATA[Re: need help with adding html code to script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30962#p30962"><![CDATA[
You allready have the refresh in your generated page, so you have a choice:<div class="codebox"><p>Code: </p><pre><code>  set html [open $pxi2h_chan($chan) w]  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;"</code></pre></div>Either you replace <strong class="text-strong">$pxi2h(refresh)</strong> with <em class="text-italics">10;URL=#bottom</em>, either you find the line containing <strong class="text-strong">set pxi2h(refresh)</strong> and you put <em class="text-italics">10;URL=#bottom</em> in <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>And for your bottom, it's false so it won't work...<br>try replacing<div class="codebox"><p>Code: </p><pre><code>#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=\"http://www.egghelp.org/\"&gt;www.egghelp.org&lt;/A&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;/CENTER&gt;\n&lt;/BODY&gt;\n&lt;/HTML&gt;"</code></pre></div> whith:<div class="codebox"><p>Code: </p><pre><code>#puts $html " &lt;/FONT&gt;\n &lt;HR SIZE=\"1\"&gt;\n &lt;CENTER&gt;&lt;FONT SIZE=\"-1\" FACE=\"sans-serif\"&gt;&lt;a name=\"bottom\"&gt;&lt;/a&gt;&lt;I&gt;Powered by &lt;A HREF=\"http://www.egghelp.org/\"&gt;www.egghelp.org&lt;/A&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;/CENTER&gt;\n&lt;/BODY&gt;\n&lt;/HTML&gt;"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Dec 02, 2003 4:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bytez]]></name></author>
		<updated>2003-12-02T01:40:12-04:00</updated>

		<published>2003-12-02T01:40:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30959#p30959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30959#p30959"/>
		<title type="html"><![CDATA[need help with adding html code to script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30959#p30959"><![CDATA[
Hi, I'm using the script called pxi2h that makes a html file of the irc channel and puts it on a specified directory of your choice.  I want to add a couple of lines to the script itself, I don't know what the syntax of the script itself.<br><br>I want to add the following html codes:<br><div class="codebox"><p>Code: </p><pre><code>&lt;META HTTP-EQUIV="REFRESH" CONTENT="10;URL=#bottom"&gt;</code></pre></div> at the top<br><br>and<br><div class="codebox"><p>Code: </p><pre><code>&lt;p id=bottom&gt;</code></pre></div> at the bottom to the following code within the TCL script:<br><br><div class="codebox"><p>Code: </p><pre><code>  set html [open $pxi2h_chan($chan) w]  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;"  puts $html "&lt;BODY TEXT=\"$pxi2h(text)\" BGCOLOR=\"$pxi2h(bgcolor)\" LINK=\"$pxi2h(heading)\" VLINK=\"$pxi2h(heading)\"&gt;"  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;"  puts $html " &lt;FONT SIZE=\"-1\" FACE=\"$pxi2h(font)\"&gt;"  puts $html "  &lt;B&gt;Server.&lt;/B&gt;: [string range $server 0 [expr [string last ":" $server] - 1]]&lt;BR&gt;"  puts $html "  &lt;B&gt;Users..&lt;/B&gt;: [pxi2h:unconvert $nicks]&lt;BR&gt;\n  &lt;HR SIZE=\"1\"&gt;"  close $html  set html [open $pxi2h_chan($chan) a]  if {$pxi2h(status) == "on"} {    for {set i 0} {$i &lt; [llength $pxi2h_history($chan)]} { incr i } {      puts $html "  \[[strftime "%H:%M"]\][pxi2h:unconvert [lindex $pxi2h_history($chan) $i]]&lt;BR&gt;"    }  } else {    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;"  }  #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=\"http://www.egghelp.org/\"&gt;www.egghelp.org&lt;/A&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;/CENTER&gt;\n&lt;/BODY&gt;\n&lt;/HTML&gt;"  close $html</code></pre></div>I tried copying and pasting the html codes to the script but it gives me errors that I can't figure out, the script looks confusing to edit. Basically, all I want to do is when the html page refreshes, I want it to be all the way at the bottom instead of the top since it will show a lot of lines.  I don't want to manually scroll all the way to the bottom.  Thanks a lot for your help. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3647">Bytez</a> — Tue Dec 02, 2003 1:40 am</p><hr />
]]></content>
	</entry>
	</feed>
