Topic-icon No birthday datepicker in the field

Active Subscriptions:

None
10 years 4 months ago #40338 by TheAgency
Hello!

I don`t have a datepicker in the birthday field. Google Chome developer tools error message is: Uncaught TypeErrer: Object (object Object) has no method "datepicker!?!

Please help!
The topic has been locked.
Support Specialist
10 years 4 months ago #40347 by alzander
Can you give a lot more information about what field you're talking about and how you have JFBConnect configured? I'm assuming your using Community Builder and the "Normal" (non-automatic) registration flow of JFBConnect. Also, please let me know what version of CB you're using, if I'm correct.

Finally, can you let me know a URL where we can test on?

All of that will help us start narrowing down a possible solution.

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

None
10 years 4 months ago - 10 years 4 months ago #40358 by TheAgency
Hello!

I`am sorry for the delay!

I use Joomla 3.2.1 with JomSocial 3.1.0.1, I put an attachment so you could see the birthday field.

I also send you a massage with my login and ftp - details.

Regards
Manuel
File Attachment:
Last edit: 10 years 4 months ago by TheAgency.
The topic has been locked.
Support Specialist
10 years 4 months ago #40374 by alzander
Thanks for the information. We're looking into the issue. It seems like JomSocial is using jQuery-UI to implement the datepicker in JS 3.1+ and we're not including that file on our registration page. I'm going to try to get an answer to you tomorrow on properly getting that file loaded.

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

None
10 years 4 months ago #40381 by TheAgency
Okay Alex so I wait for your reply..
The topic has been locked.
Support Specialist
10 years 4 months ago #40444 by alzander
Very sorry for the delay. The solution turns out to be pretty easy, but it took a little longer than expected to do the digging and testing to get you the right answer.

To fix the datepicker, please edit the /plugins/socialprofiles/jomsocial/jomsocial.php file. Around line 200, you'll see:
if (($field->type == "date" || $field->type == "birthdate"))
   $fieldValue = $this->getJomSocialDate($fieldValue);
Please edit and update that block to be:
if (($field->type == "date" || $field->type == "birthdate"))
{
   $doc->addScript(JURI::root() . 'components/com_community/assets/jqueryui/datepicker/js/jquery-ui-1.9.2.custom.js');
   $doc->addStyleSheet(JURI::root() . 'components/com_community/assets/jqueryui/datepicker/css/ui-lightness/jquery-ui-1.9.2.custom.css');
   $fieldValue = $this->getJomSocialDate($fieldValue);
}
Please test and let me know how that goes. We are planning this fix to be in the next major release as well, and would love to have your feedback on it ahead of time.

Thanks,
Alex
The topic has been locked.