Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Free Nodelet Hack: Quick /msg to current node's author

by jdporter (Paladin)
on May 31, 2006 at 13:22 UTC ( [id://552784]=note: print w/replies, xml ) Need Help??


in reply to Proposal: templates in messaging system

For the "personal use only" option, you can do what you're proposing via the Free Nodelet.

I have the following bit of code in my Free Nodelet. It makes a text box pre-loaded with a link to the current node; when you hit <enter> in the box, it sends a /msg to the author of the current node.

<form method="post" action="?" enctype="application/x-www-form-urlenco +ded"> <input type="hidden" name="_redir" value="`id`"> <input type="hidden" name="node_id" value="`author_id`"> <input type="hidden" name="op" value="message"> <input type="hidden" name="replyto" value="user"> <input type="hidden" name="sendto" value="`author_name`"> <label for="replytotext">/msg&nbsp;[`author_name`|author]</label> <input type="text" name="replytotext" size=40 maxlength=255 value="re: + &#91;id://`id`] - "> <input type="hidden" name="sexisgood" value="submit"> </form>

I also have another one just like this but which sends me a /msg.

For more ideas, see Free Nodelet Settings, and the three threads linked there; they explain how the Free Nodelet works and present numerous examples.

We're building the house of the future together.

Replies are listed 'Best First'.
Re^2: Proposal: templates in messaging system
by polettix (Vicar) on May 31, 2006 at 16:11 UTC
    Wow, this is cool. I put the following in my Free Nodelet:
    <form method="post" action="?" enctype="application/x-www-form-urlenco +ded"> <input type="hidden" name="node_id" value="`author_id`"> <input type="hidden" name="op" value="message"> <input type="hidden" name="replyto" value="user"> <input type="hidden" name="sendto" value="`author_name`"> <label for="replytotext">/msg [`author_name`|author]</label> <input type="text" name="replytotext" size=30 maxlength=255 value="ple +ase retitle &#91;id://`id`] to '' or similar, see &#91;id://17558]"> <input type="hidden" name="sexisgood" value="submit"> </form> <form method="post" action="?" enctype="application/x-www-form-urlenco +ded"> <input type="hidden" name="node_id" value="`author_id`"> <input type="hidden" name="op" value="message"> <input type="hidden" name="replyto" value="user"> <input type="hidden" name="sendto" value="`author_name`"> <label for="replytotext">/msg [`author_name`|author]</label> <input type="text" name="replytotext" size=30 maxlength=255 value="ple +ase add code tags in &#91;id://`id`], see &#91;id://17558]"> <input type="hidden" name="sexisgood" value="submit"> </form>
    But the suggestion still stands: it would be helpful to have such a templating feature, so that it is available to all "off the shelf". Anyway... thanks!

    Flavio
    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Don't fool yourself.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://552784]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-16 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found