[RSS Feed/News] phpBB: Custom user field values for type date are not converted

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
When importing from phpBB with a user profile field of type date, XenForo imports the existing value litereally:
PHP:

Code:
if (isset($choiceLookUps[$fieldId]))
{
    $fieldInfo = $choiceLookUps[$fieldId];
    $fieldChoiceId = max(0, $user["pf_$fieldId"] - 1); // option ids are 0 keyed, values are 1 keyed

    if (isset($fieldInfo[$fieldChoiceId]))
    {
        $fieldValue = $fieldInfo[$fieldChoiceId];
    }
}
else
{
    // set the field value directly
    $fieldValue =...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom