Quote:
Originally Posted by FD929
A question was asked about attachments here: https://vborg.vbsupport.ru/showpost....&postcount=206 but never answered. Most of my use of this tool is with merging posts that deal a lot with attachments. I do not want to delete the attachments, merely merge all text and attachments into one post, however the attachments from all except the first post are lost. How can this be remedied? A solution would be very much appreciated.
PS - thank you to all involved in making this wonderful tool. Outstanding work.
|
Sorry, I must have missed that post. Use this for a solution.
Open inlinemod.php and find:
PHP Code:
// Remove the others
Add before that:
PHP Code:
// save attachments to new post
$DB_site->query("UPDATE " . TABLE_PREFIX . "attachment SET postid = {$vars['newpost']['postid']} WHERE postid IN (" . implode(', ', $vars['posts']) . ")");
I have no way of fixing any previous attachments that were left missing. However, they were not removed from the database so you could manually relink them if you need to.
And I'm glad you like the hack.