I did a beyond compare to view my changes. I am very busy, so I am putting this up like that.
Here is what I found in the main file.
1-Replace below with $threadid
Quote:
$getpost = $vbulletin->db->query_first("
SELECT postid
FROM " . TABLE_PREFIX . "vbs_ticket_post
WHERE threadid = $threadinfo[threadid]
ORDER BY dateline LIMIT 1
|
replace below with
$attachurl = "p=$postinfo[postid]";
Quote:
$attachurl = "t=1";
$newpost_attachmentbit = prepare_newpost_attachmentbit();
eval('$attachmentoption = "' . fetch_template('newpost_attachment') . '";');
$attach_editor['hash'] = $postinfo['postid'];
$attach_editor['url'] = "newattachment.php?$session[sessionurl]p=$postinfo[postid]&editpost=1&poststarttime=$poststarttime&a mp;posthash=$posthash";
}
else
{
$attachmentoption = '';
}
|
replace below with
$newpost['message']
Quote:
$editorid = construct_edit_toolbar(
$postinfo['message'],
0,
'',
true,
|
replace below with (twice)
$attachurl = "f=2";
Quote:
$attachurl = "t=1";
$newpost_attachmentbit = prepare_newpost_attachmentbit();
eval('$attachmentoption = "' . fetch_template('newpost_attachment') . '";');
$attach_editor['hash'] = $foruminfo['forumid'];
$attach_editor['url'] = "newattachment.php?$session[sessionurl]f=$foruminfo[forumid]&poststarttime=$poststarttime&posthash=$po sthash";
|
And if you do my change above, all the bugs are done as far as I could tell. If someone finds more, then let me know.