I am migrating posts from one installation to another and have heavily rewritten the network plugin of Noahy for this.
Now I need to call the qa_report_event('q_post', ...) on the target forum so that the question appears in the famous liveticker that all my users use.
However, it looks quite complicated in the core:
qa_report_event('q_post', $oldquestion['userid'], $oldquestion['handle'], $oldquestion['cookieid'], $eventparams + array(
'notify' => isset($oldquestion['notify']),
'email' => qa_email_validate($oldquestion['notify']) ? $oldquestion['notify'] : null,
'delayed' => $oldquestion['created'],
));
How to create a simple q_post event? I dont need the notify / email / delayed options etc.
I don't understand the $oldquestion part, by the way.
---
The function says:
function qa_report_event($event, $userid, $handle, $cookieid, $params = array())
Thus I would just use:
qa_report_event('q_post', $userid, $handle, $cookieid, $params)
where $params must include the postid of the question, `postid=1159 parentid= parent= title=The question title is `