For those who are having problems with deleting a post, this seems to do the job for me. Not the most elegant, but hey it seems to work.
in plugins/vbsupport_inlinemod.php replace the foreach loop with
PHP Code:
$post['firstpostid'] = false;
$gotothread = true;
foreach ($postarray AS $postid => $post)
{
if($post['firstpostid'] == $post['postid'])
{
$postman =& datamanager_init('Ticket_Thread', $vbulletin, ERRTYPE_SILENT, 'ticketpost');
}else{
$postman =& datamanager_init('Ticket_Post', $vbulletin, ERRTYPE_SILENT, 'ticketpost');
}
$postman->set_existing($post);
$postman->delete($post['postid'], $post['firstpostid'], array(
'userid' => $vbulletin->userinfo['userid'],
'username' => $vbulletin->userinfo['username'],
'reason' => $vbulletin->GPC['deletereason'],
'keepattachments' => $vbulletin->GPC['keepattachments']
));
unset($postman);