Folks,
For those of you who decided to use my modification posted above, for copying posts to a new thread, please note that there were .... a few bugs in the way the database was updated. Don't panick nothing serious, it's just that in my hurry to provide you with this, I haven't taken care of all possible issues, and haven't added the required addslashes or intvals. If you haven't had an error when trying to use the copy function, you wouldn't be aware of it. If you had an error, I am sure you would have posted it here.
So, if you want to be 100% correct, please edit your inlinemod.php and find:
PHP Code:
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "post
(
threadid,
parentid,
username,
userid,
title,
dateline,
pagetext,
allowsmilie,
showsignature,
ipaddress,
iconid,
visible,
attach,
warn_flag
)
VALUES
(
'{$vars[newthreadid]}',
'{$pst['parentid']}',
'{$pst['username']}',
'{$pst['userid']}',
'{$pst['title']}',
'{$pst['dateline']}',
'{$pst['pagetext']}',
'{$pst['allowsmilie']}',
'{$pst['showsignature']}',
'{$pst['ipaddress']}',
'{$pst['iconid']}',
'{$pst['visible']}',
'{$pst['attach']}',
'{$pst['warn_flag']}'
)"
);
Replace that, with:
PHP Code:
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "post
(
threadid,
parentid,
username,
userid,
title,
dateline,
pagetext,
allowsmilie,
showsignature,
ipaddress,
iconid,
visible,
attach,
warn_flag
)
VALUES
(
" . intval($vars[newthreadid]) . ",
" . intval($pst['parentid']) . ",
'" . addslashes($pst['username']) . "',
" . intval($pst['userid']) . ",
'" . addslashes($pst['title']) . "',
" . intval($pst['dateline']) . ",
'" . addslashes($pst['pagetext']) . "',
" . intval($pst['allowsmilie']) . ",
" . intval($pst['showsignature']) . ",
'" . addslashes($pst['ipaddress']) . "',
" . intval($pst['iconid']) . ",
" . intval($pst['visible']) . ",
" . intval($pst['attach']) . ",
" . intval($pst['warn_flag']) . "
)"
);
The code in the above post has been edited with the new ... version.
Apologies for any inconvenience.
Rgds