Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Adding additional fields to PM form?
Caylus
✭✭
Basically, I'd like PMs to have subjects, so it's easier to track 'm.
Now I've found that it's rather easy to render a subject ("this is a test subject" will show up just beside the name of the user you're messaging):
public function messagesController_beforeMessagesAll_handler($sender) { $convos=$sender->EventArguments['Conversations']; //Add a subject to the first PM in the list $sender->EventArguments['Conversations'][0]['Subject']="this is a test subject"; }
But of course, you want to give the user the ability to set the subject when creating the PM.
I tried messagesController_afterFormInputs_handler, but that one doesn't seem to fire.
Is there any plugin already available that adds subjects to PMs, or does anyone know how to add a text field to the new message form?
0
Comments
do you mean the config statement to allow subjects?
$Configuration['Conversations']['Subjects']['Visible'] = true;
IIRC every new message will prompt for subject when new pm is started. but it won't affect old pms if no subject was added.
https://vanillaforums.org/discussion/comment/193409/#Comment_193409
https://vanillaforums.org/discussion/comment/241672/#Comment_241672
Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.
Well that was surprisingly more straightforward that I thought.
Thanks man! Exactly what I was looking for!