egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

filtering

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
monie089
Halfop


Joined: 29 Jul 2006
Posts: 76

PostPosted: Sun Aug 20, 2006 7:45 pm    Post subject: filtering Reply with quote

Code:

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>
      &nbsp;</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&amp;u=4'>&nbsp; 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&amp;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>&nbsp;
            </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&nbsp; .::.</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>

                   &nbsp;<br><a href='news.php?mode=article&id=150'>Minor Bugs</a><br>
                   &nbsp;<br><a href='news.php?mode=article&id=149'>The True Nintendo XG 1.0</a><br>
                   &nbsp;<br><a href='news.php?mode=article&id=148'>IRC Chat Disabled</a><br>
                   &nbsp;<br><a href='news.php?mode=article&id=147'>anyone remember uno?</a><br>
                   &nbsp;<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>
&nbsp;<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>

&nbsp;<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>
                        &nbsp;</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
Back to top
View user's profile Send private message Send e-mail
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Sun Aug 20, 2006 9:03 pm    Post subject: Reply with quote

Why do you have such a huge chunk of HTML in there?
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
monie089
Halfop


Joined: 29 Jul 2006
Posts: 76

PostPosted: Sun Aug 20, 2006 9:06 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Sun Aug 20, 2006 9:21 pm    Post subject: Reply with quote

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.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Aug 20, 2006 9:28 pm    Post subject: Warning:Moron Threshhold Exceeded Reply with quote

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.
Back to top
View user's profile Send private message
monie089
Halfop


Joined: 29 Jul 2006
Posts: 76

PostPosted: Sun Aug 20, 2006 9:29 pm    Post subject: Reply with quote

set var "html"
foreach line [split $var "\n"]
like that
_________________
New server irc.NintendoXG.com come and visit
Back to top
View user's profile Send private message Send e-mail
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Sun Aug 20, 2006 9:34 pm    Post subject: Reply with quote

Code:
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..
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
monie089
Halfop


Joined: 29 Jul 2006
Posts: 76

PostPosted: Sun Aug 20, 2006 9:38 pm    Post subject: Reply with quote

ok i put this
Code:

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>
      &nbsp;</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&amp;u=4'>&nbsp; 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&amp;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>&nbsp;
            </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&nbsp; .::.</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>

                   &nbsp;<br><a href='news.php?mode=article&id=150'>Minor Bugs</a><br>
                   &nbsp;<br><a href='news.php?mode=article&id=149'>The True Nintendo XG 1.0</a><br>
                   &nbsp;<br><a href='news.php?mode=article&id=148'>IRC Chat Disabled</a><br>
                   &nbsp;<br><a href='news.php?mode=article&id=147'>anyone remember uno?</a><br>
                   &nbsp;<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>
&nbsp;<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>
&nbsp;<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&amp;u=24' style="color:#808000">Noodle8</a>, <a href='forums/profile.php?mode=viewprofile&amp;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>
                        &nbsp;</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
Back to top
View user's profile Send private message Send e-mail
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Sun Aug 20, 2006 10:19 pm    Post subject: Reply with quote

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.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber