Import PM's fail phpBB2, ImpEx 1.80 Issue Tools
issueid=21889 Fri 20th Apr '07 10:49am
vBulletin Team
Import PM's fail phpBB2, ImpEx 1.80

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:

PHP Code:
     $vB_pm_to->set_value('mandatory''userid',    $users_ids["$pm[privmsgs_to_userid]"]); 
Replace by:
PHP Code:
     $vB_pm_to->set_value('mandatory''userid',    $users_ids["$pm[privmsgs_to_userid]"]);
     
$vB_pm_to->set_value('mandatory''importpmid',  $pm_id); 
Line 190:
PHP Code:
     $vB_pm_from->set_value('mandatory''userid',   $users_ids["$pm[privmsgs_from_userid]"]); 
Replace by:
PHP Code:
     $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);
Issue Details
Project ImpEx
Category Unknown
Status Fixed (Closed)
Priority 5 - Medium
Affected Version Unknown
Fixed Version (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)

Tue 24th Apr '07 3:03pm
ImpEx Developer
 
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.
Reply
Reply