2012-02-19, 05:10 PM
2012-02-19, 05:49 PM
Yes, it is known.
[Issue #1746]
I'll try and have this resolved over the next few days... probably on Wednesday since I know I'm busy tomorrow and Tuesday.
[Issue #1746]
I'll try and have this resolved over the next few days... probably on Wednesday since I know I'm busy tomorrow and Tuesday.
2012-02-19, 05:52 PM
Thank you! Ihope you dont busy in next days! If are few day I can wait
2012-02-22, 04:41 PM
Doesn't look like I'll have the time today for this because my gf didn't end up working today (no work at her job) so we're going to get some home repairs taken care of, and the taxes. Ugh. Taxes
I'll do it tomorrow while she's at work through, probably before noon eastern time.
I'll do it tomorrow while she's at work through, probably before noon eastern time.
2012-02-23, 04:38 PM
Ok, apply the following change to merge/boards/mybb/attachments.php and then start merge over from beginning (after reverting to a pre-merge backup of the MyBB board you're merging to)
Change:
To:
I have no idea why the logic there was so screwed up and convoluted... but it was. It isn't now & the new code should work. Let me know if it doesn't.
Change:
// Restore connection
$query = $db->simple_select("posts", "message", "pid = '{$insert_data['pid']}'");
$message = $db->fetch_field($query, 'message');
$db->free_result($query);
preg_match_all("#\[attachment=([0-9]+?)\]#i", $message, $matches, PREG_SET_ORDER);
if(count($matches) > 0)
{
foreach($matches as $aid)
{
$message = str_replace('[attachment='.$matches[1].']', '[attachment='.$aid.']', $message);
}
}
$db->update_query("posts", array('posthash' => $insert_data['posthash'], 'message' => $db->escape_string($message)), "pid = '{$insert_data['pid']}'");
To:
// Restore connection
$query = $db->simple_select("posts", "message", "pid = '{$insert_data['pid']}'");
$message = $db->fetch_field($query, 'message');
$db->free_result($query);
$message = str_replace('[attachment='.$data['aid'].']', '[attachment='.$aid.']', $message);
$db->update_query("posts", array('posthash' => $insert_data['posthash'], 'message' => $db->escape_string($message)), "pid = '{$insert_data['pid']}'");
I have no idea why the logic there was so screwed up and convoluted... but it was. It isn't now & the new code should work. Let me know if it doesn't.
2012-02-23, 04:41 PM
OOPS! Also change:
To:
So that the pids are set correctly.
$insert_data['pid'] = $this->get_import->pid($data['attach_pid']);
To:
$insert_data['pid'] = $this->get_import->pid($data['pid']);
So that the pids are set correctly.
2012-03-29, 07:17 AM
thank you work it very well