Quote:
How are you deleting the posts? Are you selecting them with the tickbox then using the inline moderation menu to delete them? Or some other way?
|
thats it.. no i am using the edit post method. the post i wanna delete.. click edit(opens the quick reply ajax based editor) then click delete)(soft delete) and it fails this way.
Attachment 47668
anyway the fix is to add this plugin also
(tested and working)
in hook location: editpost_delete_complete
add
PHP Code:
if ($_POST['do'] == 'deletepost')
{
$vbulletin->input->clean_array_gpc('p', array(
'reason' => TYPE_STR
));
// Fetch posts
$post = $db->query_first("
SELECT post.postid, post.threadid, post.parentid, post.visible, post.title,
thread.forumid, thread.title AS thread_title, thread.postuserid, thread.firstpostid, thread.visible AS thread_visible
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "thread AS thread USING (threadid)
WHERE postid = $postid
");
include_once(DIR . '/includes/class_autopm_checker.php');
include_once(DIR . '/includes/class_autopm_parser.php');
include_once(DIR . '/includes/functions_autopm.php');
mod_autopm($postid, 'delete', 'post', $post['threadid'], 0, $vbulletin->GPC['reason']);
}