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.
Options

Need help : ConversationMessageModel->save()

ClémentClément
edited October 2015 in Vanilla 2.0 - 2.8

I would like to add a new private message to new members.

I'm more or less happened.

I think we should first create a conversation ?

Can you give me an example please ?

This example works but if I comment "ConversationID", it doesn't works.

$conversationMessageModel = new ConversationMessageModel();
$conversationMessageModel->save(array(
    'To' => 'Clément',
    'Format' => 'Wysiwyg',
    'Body' => 'xxxTest',
    '_wysihtml5_mode' => 1,
    'Start_Conversation' => 'Commencer la conversation',
    'RecipientUserID' => array(2),
    'DateInserted' => '2015-10-01 06:38:21',
    'InsertUserID' => 2,
    'InsertIPAddress' => '127.0.0.1',
    'DateUpdated' => '2015-10-01 06:38:21',
    'UpdateUserID' => 2,
    'UpdateIPAddress' => '127.0.0.1',
    'ConversationID' => 8334,
));

Thank you in advance for your help !

Comments

Sign In or Register to comment.