from the stealing-stuff-from-E2 dept.
E2 has had a lazy-user's reply thing for a while. There are 2 separate forms that need updating: Message Inbox and the chatterbox nodelet. It is client-side, so it requires JavaScript enabled. (But there is a pref to turn this on and off, so it isn't required.) When enabled, private messages have an extra (r) link that when clicked, copies "/msg <var>user_name</var> " to the message area. Simple but effective.
From a quick scan of E2, there are several things that need to be added/changed. (Note: the links to the code view on E2 require that you are a member of the edev usergroup there to see it.*)
- openform2 (htmlcode) - IIRC, this was needed so the Message Inbox wouldn't conflict with the chatterbox
- chatterbox (nodelet) - lines 1-8
- showmessages (htmlcode) (on PM, this is showprivatemessages (htmlcode)) - around line 92, but also 94-104 if PM gets real usergroup support (a separate field in the message table for that target usergroup)
- Message Inbox (superdoc) (IMO, this is way bloated on E2 due to a zillion and one options it deals with) - lines 1-15 and 243; for extra fun, the current way (with radio buttons, serverside) could display for people who don't have the JS pref enabled, and the JS way for those that do)
I think that covers all of it.
E2 has another way to message a specific user - every user has a /msg box on their homenodes that will send the message right to them. displayUserInfo (htmlcode) covers that, and a bunch of other user display stuff.
* If you want to be in edev on E2, /msg me there.
--== [N] ==--
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, details, 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, summary, 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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.