XenForo
Administrative
- Thread starter
- Admin
- #1
When importing from phpBB with a user profile field of type
PHP:
Read more
ادامه مطلب...
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
ادامه مطلب...