PDA

View Full Version : Import PM's fail phpBB2, ImpEx 1.80


Marco van Herwaarden
Fri 20th Apr '07, 9:49am
The mandatory field 'importpmid' does not get set for both the $vB_pm_to and $vB_pm_from.

in systems/phpbb2/011.php:

Line 171:


$vB_pm_to->set_value('mandatory', 'userid', $users_ids["$pm[privmsgs_to_userid]"]);
Replace by:

$vB_pm_to->set_value('mandatory', 'userid', $users_ids["$pm[privmsgs_to_userid]"]);
$vB_pm_to->set_value('mandatory', 'importpmid', $pm_id);


Line 190:

$vB_pm_from->set_value('mandatory', 'userid', $users_ids["$pm[privmsgs_from_userid]"]);

Replace by:

$vB_pm_from->set_value('mandatory', 'userid', $users_ids["$pm[privmsgs_from_userid]"]);
$vB_pm_from->set_value('mandatory', 'importpmid', $pm_id);


PS To be able to import the PM's dupe checking must be disabled in the ImpExConfig.php:
define('dupe_checking', true);

change to:
define('dupe_checking', false);

Jerry
Tue 24th Apr '07, 2:03pm
I've added the code, for the pm id's though removed the dupe checking on the pm's and just have it on the pm_text so the text is checked and the receipts are just left.