Topic-icon Problems with Community Builder Profile

Support Specialist
13 years 1 month ago #32924 by alzander
Simone,
Sorry for the delay in getting back to this. I just did some testing on your site and investigation on our development sites. Right now, there appears to be a bug in our profile plugin. The birthday *is* properly imported when a user logs in after registering. However, on the initial registration, the birthday is not imported.

We think we know what the issue is and are investigating a possible fix. I hope to have something to you later this week that should fix the import of birthday on registration as well.

Sorry for the trouble and thanks for notifying us of this problem.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 3 weeks ago #33238 by simbec

alzander wrote: Simone,
Sorry for the delay in getting back to this. I just did some testing on your site and investigation on our development sites. Right now, there appears to be a bug in our profile plugin. The birthday *is* properly imported when a user logs in after registering. However, on the initial registration, the birthday is not imported.

We think we know what the issue is and are investigating a possible fix. I hope to have something to you later this week that should fix the import of birthday on registration as well.

Sorry for the trouble and thanks for notifying us of this problem.

Thanks,
Alex


Any news?
The topic has been locked.
Support Specialist
13 years 1 week ago #33458 by alzander
Simone,
Very sorry for not getting back to this sooner. We have a solution that is simple to implement, but it was much more difficult to track down than we anticipated.

To fix, please make the following edit to your /plugins/socialprofiles/communitybuilder/communitybuilder.php file. Around line 210, you'll see:
if ($oField->type == "date")
{
    $date = new JDate($formValue);
    $formValue = $date->toSql();
}
Change that to:
if ($oField->type == "date")
{
    global $ueConfig;
    $date = new JDate($formValue);
    $formValue = $date->format(str_replace( 'y', 'Y', $ueConfig['date_format']));
}
That will check CB for the proper format of that field and re-format the input from Facebook before being saved to ensure it's correct.

This change will definitely be in the next release of the CB Social Profile plugin. If you have any feedback on this change, please let us know.

Thanks,
Alex
The topic has been locked.