Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Private messages without chatterbox

by dfaure (Chaplain)
on Oct 11, 2004 at 20:13 UTC ( [id://398280] : note . print w/replies, xml ) Need Help??


in reply to Re: Private messages without chatterbox
in thread Private messages without chatterbox

This ++trick should definitely be documented somewhere (and now this is done thanks to you!).

Anyway, the FAQ should have a perlmonks' tips & tricks section to link this kind of stuff...

____
HTH, Dominique
My two favorites:
If the only tool you have is a hammer, you will see every problem as a nail. --Abraham Maslow
Bien faire, et le faire savoir...

  • Comment on Re^2: Private messages without chatterbox

Replies are listed 'Best First'.
Re^3: Private messages without chatterbox
by ikegami (Patriarch) on Oct 17, 2004 at 20:01 UTC

    A variation:

    Replace the node id at <------ with the node id of the page on which the form is located, the node id of the full page chat (3184), the node id of inbox (48824), or whatever. This is where you'll be redirected when the message is sent.

    <form method="POST"> <input type="hidden" name="op" value="message"> <input type="hidden" name="node_id" value="3184"> <------ <table> <tr><td>To:</td><td><input type="text" name="recipient"></td></tr> <tr><td>Private Msg:</td><td><input type="text" name="text" width="100 +"></td></tr> </table> <input type="hidden" name="message" value=""> <input type="button" value="Send" onclick=" this.form.message = "/msg [" + this.form.recipient + "] " + this.fo +rm.text; this.form.submit(); "> </form>

    Requires JavaScript. Untested. Doesn't check the length. It has the side offect of preventing messages from being sent to the CB