Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

choocroot is right on target. Coincidentally, I did download the modules a few days back, and added that patch and few others that prevented them to work correctly with the latest format changes on perlmonks. I did /msg zzamboni about them. If anybody's too impatient to wait for the true official version, these is the diff file I came up with:

*** Fri Jun 07 15:11:41 2002 --- Mon Jun 10 16:08:03 2002 *************** *** 61,67 **** my $class=shift; my $self={}; $self->{ua}=new LWP::UserAgent; - $self->{ua}->env_proxy(); #ALF bless $self, $class; return $self; } --- 61,66 ---- *** Fri Jun 07 15:21:52 2002 --- Sat Oct 28 00:47:22 2000 *************** *** 58,65 **** # Get general chat messages if ($c=$self->getpage(CHAT_URL)) { $c=~s/[\r\n\t]//g; ! #my @msgs=($c=~/message\s+author="([^\"]+)"[^>]+>\s*(.*?)\s*<\/m +essage>/g); ! my @msgs=($c=~/message(?:\s+user_id=\"\d+\")\s+author="([^\"]+)" +[^>]+>\s*(.*?)\s*<\/message>/gx); #ALF if (@msgs) { while (@msgs) { my ($author, $msg)=(shift(@msgs),shift(@msgs)); --- 58,64 ---- # Get general chat messages if ($c=$self->getpage(CHAT_URL)) { $c=~s/[\r\n\t]//g; ! my @msgs=($c=~/message\s+author="([^\"]+)"[^>]+>\s*(.*?)\s*<\/me +ssage>/g); if (@msgs) { while (@msgs) { my ($author, $msg)=(shift(@msgs),shift(@msgs)); *** Mon Jun 10 14:51:24 2002 --- Mon Sep 04 22:44:10 2000 *************** *** 63,74 **** my $self=shift; if ( (time() - $self->{cache_users_ts}) > USERS_REFRESH) { if (my $c=$self->getpage(USERS_URL)) { ! #my %users=($c=~/user\s+username="([^\"]+)"\s+user_id="(\d+)"/ +g); ! my %users; ! my @uids=($c=~/user\s+.*user_id="(\d+)"/g); ! my @unames=($c=~/user\s+.*username="([^\"]+)"/g); ! my $count=0; ! %users=map {($_,$uids[$count++])} @unames; $self->{cache_users}=\%users; $self->{cache_users_ts}=time(); } --- 63,69 ---- my $self=shift; if ( (time() - $self->{cache_users_ts}) > USERS_REFRESH) { if (my $c=$self->getpage(USERS_URL)) { ! my %users=($c=~/user\s+username="([^\"]+)"\s+user_id="(\d+)"/g +); $self->{cache_users}=\%users; $self->{cache_users_ts}=time(); }

You can't have everything: where would you put it?

In reply to Re: PerlMonksChat module via proxy by alien_life_form
in thread PerlMonksChat module via proxy by Courage

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chilling in the Monastery: (6)
    As of 2021-01-28 00:12 GMT
    Find Nodes?
      Voting Booth?