1. Have an event module registered through qa-plugin.php:
qa_register_plugin_module('event', 'qa-prevent-simultaneous-edits.php', 'qa_prevent_simultaneous_edits', 'Simultaneous Edits Preventer Module');
2. Have an event module with:
class qa_prevent_simultaneous_edits {
function process_event($event, $userid, $handle, $cookieid, $params) {
if($event == "q_edit") {
$userid = qa_get_logged_in_userid();
qa_db_query_sub('INSERT INTO ^edit_preventer (postid, accessed, userid) VALUES ($, NOW(), $)', $params['postid'], $userid);
}
}
}
3. Clicking on edit button of a question is not inserting anything in my db-table, nor do I get an error message!
?