Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

framechat2

by epoptai (Curate)
on Jul 10, 2001 at 20:16 UTC ( #95346=monkdiscuss: print w/ replies, xml ) Need Help??

I was unable to upload the code for framechat 2.0 because of an apparent 64k limit on the code field in catacomb nodes. So my suggestion is to provide for the submission of larger code via file upload, and to put a "d/l code" link where the code would usually be in display view for code uploaded this way. Meanwhile the framechat node is a lot smaller and has an offsite link to the framechat 2.0 code.

New in framechat 2.0

  • New nodes ticker!
  • Rep change ticker with history!
  • Client login & quit for better security.
  • Create & edit optional external config file.
  • Tools control panel to see & set parameters.
  • /ignore and /unignore and see who's being ignored.
  • /logout and /login implemented.
    • Not in the userlist but still see chat.
    • All links to perlmonks become logged out.
    • History still functions if enabled.
    • Logout disables node title lookup.

    Improved:

  • Faster thanks to less print statements.
  • More robust error handling (esp. xml parsing).
  • XP nodelet now shows xp gain and loss messages (Ack!)
  • inbox/launchpad/newnode frame can remember state.
  • Notes added to update notification.

    Fixed:

  • Bug in link parser that caused italic history after an unclosed i tag.
  • Last $norm should now appear when code updated.
  • Code is less redundant and more readable.

Here's a screenshot

--
Check out my Perlmonks Related Scripts like framechat, reputer, and xNN.

Comment on framechat2
Usability patch
by grinder (Bishop) on Jul 18, 2001 at 17:04 UTC

    I changed the order of the buttons in the bottom talk frame, so that I can type my message, press tab to change the focus to the next button in the form and press space to send off the message. It's really makes a difference if you're a keyboard freak (as opposed to a mouse freak). The tail end of sub talk becomes:

    my$prnt = qq~<html> $bodytag <table align="center" border="0" cellpadding="0" cellspacing="0"><tr> <FORM method="post"><td> <INPUT type=hidden name="op" value="message"> <INPUT TYPE="hidden" NAME="node_id" VALUE="37150"> <INPUT TYPE="hidden" NAME="mode" VALUE="talk"> <textarea name="message" wrap="virtual" cols="50" rows="4">$extra<\/te +xtarea>$nb </td> <td><table align="center" border="0" cellpadding="0" cellspacing="3"> <tr><td><INPUT TYPE="submit" NAME="message_send" VALUE="talk"></td><td + align="right"> $nb <font size="-1"><a href="$uri?n=repinit" target="chat">rep</a> $nb <INPUT TYPE="submit" NAME="n" VALUE="encode"> <input type="reset" value="clear"></font></td></tr> <tr><td><INPUT TYPE="submit" NAME="n" VALUE="tag"></td><td>$nb<select +name="tag">~; my$c = 1; for(@tags){ # cb tag menu my$sel = ''; $_ =~ s/&lt;/</; # fixes the code tag (so i can post the code to p +erlmonks :-) encode_entities($_); if($i{'tag'}){ $sel = ' selected' if $c == $i{'tag'}; } $prnt .= qq~<option value="$c"$sel>$_\n~; $c++ } print $prnt, qq~</select>$nb <br></td></tr> <tr><td><INPUT TYPE="submit" NAME="n" VALUE="ent"></td><td>$nb~, entit +ies_menu(), qq~<br></td></tr></table></td></FORM></tr></table> $eh~; exit }

    Enjoy!

    --
    g r i n d e r
(tye)Re: framechat2
by tye (Cardinal) on Mar 08, 2002 at 19:05 UTC

    With the new chatterbox xml ticker (which generates valid XML), framechat2 needs the following patch (thanks to Zaxo for help and testing). Change the fixxml sub to:

    sub fixxml { # fix the xml nodes so they parse correctly my$xml = shift; my$fix = q{<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE CHATTER SYSTEM "dummy.dtd"[]>}; # mirod to the re +scue! $xml = $fix.$xml unless $xml =~ /^\s*\Q<?xml\E/; $xml =~ s/[\r\n\t]//g; # jcwren $xml =~ y/\x00-\x1f//d; # strip control chrs # Note that you should only need at most one of the above two lines. # The latter does everything the "jcwren" line does but # the extra strippage doesn't appear to be needed. return $xml; # to the xml parser }

            - tye (but my friends call me "Tye")
Re: framechat2
by ysth (Canon) on Feb 07, 2007 at 03:50 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://95346]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-08-20 16:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (118 votes), past polls