This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

filtering

Help for those learning Tcl or writing their own scripts.
Post Reply
m
monie089
Halfop
Posts: 76
Joined: Sat Jul 29, 2006 11:13 pm

filtering

Post by monie089 »

Code: Select all

bind pub - !online pub:online

proc pub:online {nick uhost hand chan text} {
  set url "http://site.nintendoxg.com/online.php"
  set token [::http::geturl $url]
  set content [::http::data $token]
  ::http::cleanup $content
regsub -all {<[^>]+>|<} $content { } content
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Nintendo XG [1.0]</TITLE>
<META http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<META http-equiv=EXPIRES content=0>
<META content=DOCUMENT name=RESOURCE-TYPE>
<META content=GLOBAL name=DISTRIBUTION>
<META content="nintendoxg.com name=AUTHOR>
<META content="Copyright (c) Nitnendoxg.com" name=COPYRIGHT>
<META content="Nintendo, Gaming, Nintendo DS, Nintendo Wii, Wii, wii, ds, DS, NDS, NWii, Nintendo Wi-Fi, Wi-Fi, Nintendo Wi-Fi Connection, Friend Codes, Super Smash Brothers Brawl, Smash Brothers, Metroid, Zelda" 
name=KEYWORDS>
<META content="The Nintendo Wi-Fi Community" name=DESCRIPTION>
<META content="INDEX, FOLLOW" name=ROBOTS>
<META content="1 DAYS" name=REVISIT-AFTER>
<META content=GENERAL name=RATING><LINK 
href="icgfiles/style.css" type=text/css rel=StyleSheet></HEAD>
<BODY text=#000000 bgColor=#ffffff topMargin=10>
<TABLE cellSpacing=0 cellPadding=5 width="100%" border=0>
  <TBODY>

  <TR>
    <TD>
       </TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="95%" align=center border=0>
  <TBODY>
  <TR>
    <TD class=lefttd noWrap width=10></TD>
    <TD width="100%">
      <TABLE class=forumline cellSpacing=1 cellPadding=0 width="100%" 
        border=0><TBODY>

        <TR>
          <TD class=row2 align=middle width="20%">
          <IMG alt=Home 
            src="icgfiles/icon_faq.gif" align=absMiddle border=0><BR>
          <a href="http://site.nintendoxg.com/friends.php">My Friends and Rivals</a></TD>
          <TD class=row2 align=middle width="20%">
          <IMG alt=Downloads 
            src="icgfiles/icon_search.gif" align=absMiddle border=0><BR>
          My Ratings</TD>
          <TD class=row2 align=middle width="20%">

          <IMG alt=Forums 
            src="icgfiles/icon_memberlist.gif" align=absMiddle 
            border=0><BR>My Blog</TD>
          <TD class=row2 align=middle width="20%">
          <IMG alt="Your Account" 
            src="icgfiles/icon_profile.gif" align=absMiddle border=0><BR>
          My Stats</TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD vAlign=center width="99%" background=icgfiles/bg.jpg>

          <img border="0" src="icgfiles/banner.jpg"></TD>
          <TD vAlign=center width="1%" 
        background=icgfiles/bg.jpg></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD class=navpic noWrap width=175>
            <DIV align=left>	      <font size = '1'><b><a href='forums/profile.php?mode=viewprofile&u=4'>  Welcome Back, Monie </a></b></font></DIV></TD>

          <TD class=navpic noWrap align=middle width="100%"><b><font size='1'><font color='#000000'><center><a href = 'forums/profile.php?mode=editprofile'><font color='#000000'>Profile</font></a> | <a href = 'forums/privmsg.php?folder=inbox'><font color='#000000'>Private Messages (0)</font></a> | <a href = 'forums/search.php'><font color='#000000'>Search</font></a> | <a href = 'forums/faq.php'><font color='#000000'>FAQ</font></a> | <a href = 'forums/memberlist.php'><font color='#000000'>Memberlist</font></a> | <a href = 'forums/groupcp.php'><font color='#000000'>Usergroups</font></a> | <a href = 'forums/login.php?logout=true&sid=cb55eaa33f1ae02b0208cd6c1ec78408'><font color='#000000'>Log Out [ Monie ]</font></a></center></font></b></TD>

          <TD class=navpic noWrap width=175>
            <DIV align=right><FONT class=content>
            <SCRIPT type=text/javascript>

<!--   // Array ofmonth Names
var monthNames = new Array( "January","February","March","April","May","June","July","August","September","October","November","December");
var now = new Date();
thisYear = now.getYear();
if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem
document.write(monthNames[now.getMonth()] + " " + now.getDate() + ", " + thisYear);
// -->

              </SCRIPT> 
            </FONT></DIV></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
        <TBODY>
        <TR vAlign=top>
          <TD><IMG height=1 alt="" src="icgfiles/7px.gif" width=1 
          border=0></TD></TR></TBODY></TABLE>

      <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
        <TBODY>
        <TR vAlign=top>
          <TD vAlign=top width=1 background=icgfiles/7px.gif>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>
              <TR>
                <TD>
                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0 style="border-right-width: 0">

                    <TBODY>
                    <TR>
                      <TH noWrap width=180 colSpan=2 height=22><FONT 
                        class=block-title><STRONG>.::. </STRONG></FONT><strong>
                      <span style="background-position: 0% 0%">Site Menu </span></strong><FONT 
                        class=block-title><STRONG>.::.</STRONG></FONT></TH></TR>
                    <TR>
                      <TD class=row1 width="100%" style="border-right-style: none; border-right-width: medium"><font face="Verdana" size="1">● <a href="http://site.nintendoxg.com/">Home</a><br>

● <a href="http://site.nintendoxg.com/forums">Forums</a><br>
● Blogs<br>
● <a href="http://site.nintendoxg.com/chat.php">Chat</a><br>
● <a href="http://site.nintendoxg.com/challenges.php">Challenges</a><br>
● <a href="http://site.nintendoxg.com/contactus.php">Contact Us</a><br>
● <a href="http://site.nintendoxg.com/downloads.php">Downloads</a><br>

● <a href="http://site.nintendoxg.com/faq.php">FAQ</a><br>
● <a href="http://site.nintendoxg.com/hubs.php">Hubs</a><br>
● <a href="http://site.nintendoxg.com/leaderboards.php">Leader Boards</a><br>
● <a href="http://site.nintendoxg.com/news.php">News</a><br>
● <a href="http://site.nintendoxg.com/box.php">NXG Live [BETA]</a><br>
● NXG Wiki<br>

● <a href="http://site.nintendoxg.com/partners.php">Partners</a><br>
● <a href="http://site.nintendoxg.com/staff.php">Staff</a><br>
<font face="Verdana" size="1">● <a href="http://site.nintendoxg.com/tourney.php">
Tournaments</a></font><br>
<font face="Verdana" size="1">● <a href="http://site.nintendoxg.com/online.php">
Who's Online</font></a><BR></TD></TR></TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>

                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>
              <TR>
                <TD>
                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0>

                    <TBODY>
                    <TR>
                      <TH noWrap width=180 height=22><FONT 
                        class=block-title><STRONG>.::. Latest News  .::.</STRONG></FONT></TH></TR>
                    <tr>
                                <TD class=row1 align=left width="100%">
                                <p align="center">
                                <a href='news.php?mode=article&id=151'>Templates System And More</a><br>

             		 <br><a href='news.php?mode=article&id=150'>Minor Bugs</a><br>
             		 <br><a href='news.php?mode=article&id=149'>The True Nintendo XG 1.0</a><br>
             		 <br><a href='news.php?mode=article&id=148'>IRC Chat Disabled</a><br>
             		 <br><a href='news.php?mode=article&id=147'>anyone remember uno?</a><br>
             		 <br>
                                </TD>
                    </tr>

                    <tr>
                                <TD class=row1 align=left width="100%">
                                <p align="right"><FONT 
                                class=content>
                                <a href="http://site.nintendoxg.com/news.php">
                                View All</a></FONT></TD>
                    </tr>
                    </TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>

                    <TBODY>
                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>
              <TR>
                <TD>

                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0>
                    <TBODY>
                    <TR>
                      <TH noWrap width=180 colSpan=2 height=22><FONT 
                        class=block-title><STRONG>.::. Affiliates .::.</STRONG></FONT></TH></TR>
                    <TR>
                      <TD class=row1 width="100%"><FONT class=content>
                        There isn't content right now for this 
                        block.</FONT></TD></TR></TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>

                    <TBODY>
                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>
              <TR>
                <TD>

                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0>
                    <TBODY>
                    <TR>
                      <TH noWrap width=180 colSpan=2 height=22><FONT 
                        class=block-title><STRONG>.::. Advertisement .::.</STRONG></FONT></TH></TR>
                    <TR>
                      <TD class=row1 width="100%"><FONT class=content>
                        There isn't content right now for this 
                        block.</FONT><BR></TD></TR></TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>

                    <TBODY>
                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR></TD>
          <TD vAlign=top width="100%">
            <BR>
            <TABLE cellSpacing=0 cellPadding=5 width="100%" border=0 height="50">
              <TBODY>

              <TR>
                <TD height="40">
                  <TABLE class=tbt cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD class=tbtl><IMG height=22 alt="" 
                        src="icgfiles/spacer.gif" width=22></TD>
                      <TD class=tbtbot><span class="gen">
                      <span style="background-position: 0% 0%">
                      <font color="#000000">Who's Online</font></span></span></TD>

                      <TD class=tbtr><IMG height=22 alt="" 
                        src="icgfiles/spacer.gif" 
                  width=124></TD></TR></TBODY></TABLE>
                  <TABLE class=forumline cellSpacing=1 cellPadding=0 
                  width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD class=row1>
                      <p>
	</span>
 <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
                    <tr>

                      <td width="100%" background="bg_bar_marino.gif">
                      <p align="center"><font color="#FFFFFF">Members Who Are 
                      Online:</font></td>
                    </tr>
                    <tr>
                       </tr>
                  </table>
                  <p><br>

 <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
                    <tr>
                      <td width="100%" background="bg_bar_marino.gif">
                      <p align="center"><font color="#FFFFFF">My Friends that 
                      are Online:</font></td>
                    </tr>
                    <tr>
                      <td width="100%">
                      <p align="center"><font size="1">
		      No friends are online		      </font></td>

                    </tr>
                  </table>
                  <p><BR></p>
                      </TD></TR></TBODY></TABLE>
                  <TABLE class=forumline cellSpacing=1 cellPadding=0 
                  width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TH width="100%" colSpan=2 height=22>
                         </TH></TR></TBODY></TABLE>

                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR></TD>
          <TD vAlign=top width=175>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>

              <TR>
                <TD>
                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0>
                    <TBODY>
                    <TR>
                      <TH noWrap width=180 colSpan=2 height=22><FONT 
                        class=block-title><STRONG>.::. User CP .::.</STRONG></FONT></TH></TR>
                    <TR>
                      <TD class=row1 width="100%"><html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>

<body>


<p align="right"><font size="1" face="Verdana"><a href="http://site.nintendoxg.com/forums/profile.php?mode=editprofile">Edit My Profile</a><br>
<a href="http://site.nintendoxg.com/friends.php">Manage My Friends</a><br>

<a href="http://site.nintendoxg.com/friendcode.php">Manage My Friend Codes</a></font></p>


</body>

</html><br><br><a href='adminpanel.php'>Admin Panel</a><BR></TD></TR></TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>

                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>
              <TR>
                <TD>
                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0>
                    <TBODY>
                    <TR>
                      <TH noWrap width=180 height=22><FONT 
                        class=block-title><STRONG>.::. Friends Message Box .::.</STRONG></FONT></TH></TR>

                    <TR>
                      <TD class=row1 width="100%">
		      	<p align="center">
<BR></TD></TR>
                    <TR>
                      <TD class=row1 width="100%">
		      	<p align="right">
                <a href="http://site.nintendoxg.com/friends.php">View All</a></TD></TR></TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>

                    <TBODY>
                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>
              <TR>
                <TD>

                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0>
                    <TBODY>
                    <TR>
                      <TH noWrap width=180 height=22><FONT 
                        class=block-title><STRONG>.::. My Leader Boards Stats 
                      .::.</STRONG></FONT></TH></TR>
                    <TR>
                      <TD class=row1 width="100%"><FONT class=content>
                        </FONT>Coming Soon<BR></TD></TR>
                    <TR>

                      <TD class=row1 width="100%">
                      <p align="right">View All</TD></TR></TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR></TD></TR></TBODY></TABLE>

      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD align=right><a href="#top">
          <IMG 
            src="icgfiles/top.gif" border=0></a></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD>

          <IMG 
            src="icgfiles/bt_left.gif" border=0></TD>
          <TD class=indexbom align=middle width="100%">© 2006
          <a href="http://www.nintendoxg.com/">Nintendo XG</a><br>
          <a href="http://www.friendcodes.com">Friend Codes</a> |
          <a href="http://www.xtremecrash.com">XtremeCrash</a> | Coming Soon</TD>
          <TD>
          <IMG 
            src="icgfiles/bt_right.gif" border=0></TD></TR></TBODY></TABLE></TD>

    <TD class=righttd noWrap width=10></TD></TR></TBODY></TABLE></BODY></HTML>
foreach line [split $content \n] {
    putquick "PRIVMSG $chan :$line"
  }
}
 
it doesnt filter that why i tried redoing please tell whats wrong i can wait
New server irc.NintendoXG.com come and visit
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Why do you have such a huge chunk of HTML in there?
m
monie089
Halfop
Posts: 76
Joined: Sat Jul 29, 2006 11:13 pm

Post by monie089 »

thats the info i want to filter out so i can have it show only the things i didnt filter out
New server irc.NintendoXG.com come and visit
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Then you'll have to set that huge chunk into some var, and
foreach line [split $var "\n"] regsub it out..

I don't see how that script even loads (if it does) with that chunk of HTML just sitting in there.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Warning:Moron Threshhold Exceeded

Post by rosc2112 »

There's *hundreds* of tcl scripts for parsing html. Pick one, and learn how it works and then write your own. Stop dumping all this crap and expecting someone else to regurgitate a pre-chewed script for you.
m
monie089
Halfop
Posts: 76
Joined: Sat Jul 29, 2006 11:13 pm

Post by monie089 »

set var "html"
foreach line [split $var "\n"]
like that
New server irc.NintendoXG.com come and visit
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Code: Select all

regsub -all {<[^>]+>|<} $content { } content 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
This is what I mean.. it just begins right after your regsub command.
The HTML you want to filter.. it's not being set to anything..
m
monie089
Halfop
Posts: 76
Joined: Sat Jul 29, 2006 11:13 pm

Post by monie089 »

ok i put this

Code: Select all

bind pub - !online pub:online

proc pub:online {nick uhost hand chan text} {
  set url "http://site.nintendoxg.com/online.php"
  set token [::http::geturl $url]
  set content [::http::data $token]
set var " <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Nintendo XG [1.0]</TITLE>
<META http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<META http-equiv=EXPIRES content=0>
<META content=DOCUMENT name=RESOURCE-TYPE>
<META content=GLOBAL name=DISTRIBUTION>
<META content="nintendoxg.com name=AUTHOR>
<META content="Copyright (c) Nitnendoxg.com" 
name=COPYRIGHT>
<META 
content="Nintendo, Gaming, Nintendo DS, Nintendo Wii, Wii, wii, ds, DS, NDS, NWii, Nintendo Wi-Fi, Wi-Fi, Nintendo Wi-Fi Connection, Friend Codes, Super Smash Brothers Brawl, Smash Brothers, Metroid, Zelda" 
name=KEYWORDS>
<META content="The Nintendo Wi-Fi Community" name=DESCRIPTION>
<META content="INDEX, FOLLOW" name=ROBOTS>
<META content="1 DAYS" name=REVISIT-AFTER>
<META content=GENERAL name=RATING><LINK 
href="icgfiles/style.css" type=text/css rel=StyleSheet></HEAD>
<BODY text=#000000 bgColor=#ffffff topMargin=10>
<TABLE cellSpacing=0 cellPadding=5 width="100%" border=0>
  <TBODY>

  <TR>
    <TD>
       </TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="95%" align=center border=0>
  <TBODY>
  <TR>
    <TD class=lefttd noWrap width=10></TD>
    <TD width="100%">
      <TABLE class=forumline cellSpacing=1 cellPadding=0 width="100%" 
        border=0><TBODY>

        <TR>
          <TD class=row2 align=middle width="20%">
          <IMG alt=Home 
            src="icgfiles/icon_faq.gif" align=absMiddle border=0><BR>
          <a href="http://site.nintendoxg.com/friends.php">My Friends and Rivals</a></TD>
          <TD class=row2 align=middle width="20%">
          <IMG alt=Downloads 
            src="icgfiles/icon_search.gif" align=absMiddle border=0><BR>
          My Ratings</TD>
          <TD class=row2 align=middle width="20%">

          <IMG alt=Forums 
            src="icgfiles/icon_memberlist.gif" align=absMiddle 
            border=0><BR>My Blog</TD>
          <TD class=row2 align=middle width="20%">
          <IMG alt="Your Account" 
            src="icgfiles/icon_profile.gif" align=absMiddle border=0><BR>
          My Stats</TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD vAlign=center width="99%" background=icgfiles/bg.jpg>

          <img border="0" src="icgfiles/banner.jpg"></TD>
          <TD vAlign=center width="1%" 
        background=icgfiles/bg.jpg></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD class=navpic noWrap width=175>
            <DIV align=left>	      <font size = '1'><b><a href='forums/profile.php?mode=viewprofile&u=4'>  Welcome Back, Monie </a></b></font></DIV></TD>

          <TD class=navpic noWrap align=middle width="100%"><b><font size='1'><font color='#000000'><center><a href = 'forums/profile.php?mode=editprofile'><font color='#000000'>Profile</font></a> | <a href = 'forums/privmsg.php?folder=inbox'><font color='#000000'>Private Messages (0)</font></a> | <a href = 'forums/search.php'><font color='#000000'>Search</font></a> | <a href = 'forums/faq.php'><font color='#000000'>FAQ</font></a> | <a href = 'forums/memberlist.php'><font color='#000000'>Memberlist</font></a> | <a href = 'forums/groupcp.php'><font color='#000000'>Usergroups</font></a> | <a href = 'forums/login.php?logout=true&sid=cb55eaa33f1ae02b0208cd6c1ec78408'><font color='#000000'>Log Out [ Monie ]</font></a></center></font></b></TD>

          <TD class=navpic noWrap width=175>
            <DIV align=right><FONT class=content>
            <SCRIPT type=text/javascript>

<!--   // Array ofmonth Names
var monthNames = new Array( "January","February","March","April","May","June","July","August","September","October","November","December");
var now = new Date();
thisYear = now.getYear();
if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem
document.write(monthNames[now.getMonth()] + " " + now.getDate() + ", " + thisYear);
// -->

              </SCRIPT> 
            </FONT></DIV></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
        <TBODY>
        <TR vAlign=top>
          <TD><IMG height=1 alt="" src="icgfiles/7px.gif" width=1 
          border=0></TD></TR></TBODY></TABLE>

      <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
        <TBODY>
        <TR vAlign=top>
          <TD vAlign=top width=1 background=icgfiles/7px.gif>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>
              <TR>
                <TD>
                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0 style="border-right-width: 0">

                    <TBODY>
                    <TR>
                      <TH noWrap width=180 colSpan=2 height=22><FONT 
                        class=block-title><STRONG>.::. </STRONG></FONT><strong>
                      <span style="background-position: 0% 0%">Site Menu </span></strong><FONT 
                        class=block-title><STRONG>.::.</STRONG></FONT></TH></TR>
                    <TR>
                      <TD class=row1 width="100%" style="border-right-style: none; border-right-width: medium"><font face="Verdana" size="1">● <a href="http://site.nintendoxg.com/">Home</a><br>

● <a href="http://site.nintendoxg.com/forums">Forums</a><br>
● Blogs<br>
● <a href="http://site.nintendoxg.com/chat.php">Chat</a><br>
● <a href="http://site.nintendoxg.com/challenges.php">Challenges</a><br>
● <a href="http://site.nintendoxg.com/contactus.php">Contact Us</a><br>
● <a href="http://site.nintendoxg.com/downloads.php">Downloads</a><br>

● <a href="http://site.nintendoxg.com/faq.php">FAQ</a><br>
● <a href="http://site.nintendoxg.com/hubs.php">Hubs</a><br>
● <a href="http://site.nintendoxg.com/leaderboards.php">Leader Boards</a><br>
● <a href="http://site.nintendoxg.com/news.php">News</a><br>
● <a href="http://site.nintendoxg.com/box.php">NXG Live [BETA]</a><br>
● NXG Wiki<br>

● <a href="http://site.nintendoxg.com/partners.php">Partners</a><br>
● <a href="http://site.nintendoxg.com/staff.php">Staff</a><br>
<font face="Verdana" size="1">● <a href="http://site.nintendoxg.com/tourney.php">
Tournaments</a></font><br>
<font face="Verdana" size="1">● <a href="http://site.nintendoxg.com/online.php">
Who's Online</font></a><BR></TD></TR></TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>

                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>
              <TR>
                <TD>
                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0>

                    <TBODY>
                    <TR>
                      <TH noWrap width=180 height=22><FONT 
                        class=block-title><STRONG>.::. Latest News  .::.</STRONG></FONT></TH></TR>
                    <tr>
                                <TD class=row1 align=left width="100%">
                                <p align="center">
                                <a href='news.php?mode=article&id=151'>Templates System And More</a><br>

             		 <br><a href='news.php?mode=article&id=150'>Minor Bugs</a><br>
             		 <br><a href='news.php?mode=article&id=149'>The True Nintendo XG 1.0</a><br>
             		 <br><a href='news.php?mode=article&id=148'>IRC Chat Disabled</a><br>
             		 <br><a href='news.php?mode=article&id=147'>anyone remember uno?</a><br>
             		 <br>
                                </TD>
                    </tr>

                    <tr>
                                <TD class=row1 align=left width="100%">
                                <p align="right"><FONT 
                                class=content>
                                <a href="http://site.nintendoxg.com/news.php">
                                View All</a></FONT></TD>
                    </tr>
                    </TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>

                    <TBODY>
                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>
              <TR>
                <TD>

                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0>
                    <TBODY>
                    <TR>
                      <TH noWrap width=180 colSpan=2 height=22><FONT 
                        class=block-title><STRONG>.::. Affiliates .::.</STRONG></FONT></TH></TR>
                    <TR>
                      <TD class=row1 width="100%"><FONT class=content>
                        There isn't content right now for this 
                        block.</FONT></TD></TR></TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>

                    <TBODY>
                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>
              <TR>
                <TD>

                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0>
                    <TBODY>
                    <TR>
                      <TH noWrap width=180 colSpan=2 height=22><FONT 
                        class=block-title><STRONG>.::. Advertisement .::.</STRONG></FONT></TH></TR>
                    <TR>
                      <TD class=row1 width="100%"><FONT class=content>
                        There isn't content right now for this 
                        block.</FONT><BR></TD></TR></TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>

                    <TBODY>
                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR></TD>
          <TD vAlign=top width="100%">
            <BR>
            <TABLE cellSpacing=0 cellPadding=5 width="100%" border=0 height="50">
              <TBODY>

              <TR>
                <TD height="40">
                  <TABLE class=tbt cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD class=tbtl><IMG height=22 alt="" 
                        src="icgfiles/spacer.gif" width=22></TD>
                      <TD class=tbtbot><span class="gen">
                      <span style="background-position: 0% 0%">
                      <font color="#000000">Who's Online</font></span></span></TD>

                      <TD class=tbtr><IMG height=22 alt="" 
                        src="icgfiles/spacer.gif" 
                  width=124></TD></TR></TBODY></TABLE>
                  <TABLE class=forumline cellSpacing=1 cellPadding=0 
                  width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD class=row1>
                      <p>
	</span>
 <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
                    <tr>

                      <td width="100%" background="bg_bar_marino.gif">
                      <p align="center"><font color="#FFFFFF">Members Who Are 
                      Online:</font></td>
                    </tr>
                    <tr></tr>
                  </table>

                  <p><br>
 <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
                    <tr>
                      <td width="100%" background="bg_bar_marino.gif">
                      <p align="center"><font color="#FFFFFF">My Friends that 
                      are Online:</font></td>
                    </tr>
                    <tr>
                      <td width="100%">
                      <p align="center"><font size="1">

		      <a href='forums/profile.php?mode=viewprofile&u=24' style="color:#808000">Noodle8</a>, <a href='forums/profile.php?mode=viewprofile&u=2' style="color:#FFA34F"><b>[XG]Sa-X</b></a>		      </font></td>
                    </tr>
                  </table>
                  <p><BR></p>
                      </TD></TR></TBODY></TABLE>
                  <TABLE class=forumline cellSpacing=1 cellPadding=0 
                  width="100%" border=0>
                    <TBODY>

                    <TR>
                      <TH width="100%" colSpan=2 height=22>
                         </TH></TR></TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR></TD>

          <TD vAlign=top width=175>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>
              <TR>
                <TD>
                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0>
                    <TBODY>
                    <TR>
                      <TH noWrap width=180 colSpan=2 height=22><FONT 
                        class=block-title><STRONG>.::. User CP .::.</STRONG></FONT></TH></TR>

                    <TR>
                      <TD class=row1 width="100%"><html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>

<body>


<p align="right"><font size="1" face="Verdana"><a href="http://site.nintendoxg.com/forums/profile.php?mode=editprofile">Edit My Profile</a><br>
<a href="http://site.nintendoxg.com/friends.php">Manage My Friends</a><br>
<a href="http://site.nintendoxg.com/friendcode.php">Manage My Friend Codes</a></font></p>


</body>

</html><br><br><a href='adminpanel.php'>Admin Panel</a><BR></TD></TR></TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>

                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>
              <TR>
                <TD>
                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0>
                    <TBODY>

                    <TR>
                      <TH noWrap width=180 height=22><FONT 
                        class=block-title><STRONG>.::. Friends Message Box .::.</STRONG></FONT></TH></TR>
                    <TR>
                      <TD class=row1 width="100%">
		      	<p align="center">
			
				  <iframe name="I1" width="174" height="264" border="0" frameborder="0" src="inc/friendsbox.php">
Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>
			
				      </TD></TR>
                    <TR>

                      <TD class=row1 width="100%">
		      	<p align="right">
                <a href="http://site.nintendoxg.com/friends.php">View All</a></TD></TR></TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>

                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
            <TABLE cellSpacing=0 cellPadding=5 width=180 border=0>
              <TBODY>
              <TR>
                <TD>
                  <TABLE class=forumline cellSpacing=1 cellPadding=0 width=180 
                  border=0>
                    <TBODY>
                    <TR>
                      <TH noWrap width=180 height=22><FONT 
                        class=block-title><STRONG>.::. My Leader Boards Stats 
                      .::.</STRONG></FONT></TH></TR>

                    <TR>
                      <TD class=row1 width="100%"><FONT class=content>
                        </FONT>Coming Soon<BR></TD></TR>
                    <TR>
                      <TD class=row1 width="100%">
                      <p align="right">View All</TD></TR></TBODY></TABLE>
                  <TABLE class=tbl cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>

                    <TR>
                      <TD class=tbll><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblbot width="100%"><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" width=8></TD>
                      <TD class=tblr><IMG height=4 alt="" 
                        src="icgfiles/spacer.gif" 
                width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD align=right><a href="#top">
          <IMG 
            src="icgfiles/top.gif" border=0></a></TD></TR></TBODY></TABLE>

      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD>
          <IMG 
            src="icgfiles/bt_left.gif" border=0></TD>
          <TD class=indexbom align=middle width="100%">© 2006
          <a href="http://www.nintendoxg.com/">Nintendo XG</a><br>
          <a href="http://www.friendcodes.com">Friend Codes</a> |
          <a href="http://www.xtremecrash.com">XtremeCrash</a> | Coming Soon</TD>

          <TD>
          <IMG 
            src="icgfiles/bt_right.gif" border=0></TD></TR></TBODY></TABLE></TD>
    <TD class=righttd noWrap width=10></TD></TR></TBODY></TABLE></BODY></HTML>"
  ::http::cleanup $content
foreach line [split $content \n] {
foreach line [split $var "\n"] 
regsub -all {<[^>]+>|<} $content { } content 
    putquick "PRIVMSG $chan :$line"
  }
}
now it saying extra characters after close but i dont see
New server irc.NintendoXG.com come and visit
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

I don't know how else to say it, but you clearly don't know enough about Tcl as it were.

The extra characters are because you have other "'s in the HTML tags of the var.

set var "<a href="blah.com">" .. it will end at <a href= because the " before blah.com.
You would have to escape the quote (\").

set var "<a href=\"blah.com\">", or you can try set var {<a href="blah.com">}

Sorry, I won't be able to respond to this thread any further.
Post Reply