Topic-icon JFBConnect with ReadyBytes Jomsocial Profile Types

Active Subscriptions:

None
I'm using ReadyBytes Jomsocial Profile Types with latest JFBConnect and Jomsocial 3 and if I use JFBConnect as the registration component the registration form is completely messed up, with languages strings not translating. If I use Jomsocial as the registration component, the registration works fine and takes username and email from FB, but doesn't import anything else, including avatars.
The topic has been locked.
Support Specialist
10 years 11 months ago #54006 by alzander
JFBConnect doesn't have native integration with JSPT. I'm not sure why the avatar/cover photo wouldn't be imported into JomSocial's profile system when registering as that's something we definitely support. Have you enabled and configured the Social Profiles - JomSocial plugin? You enable in the Plugin Manager and configure in the JFBConnect -> Profiles administration area.

As for the registration form being messed up when using the JFBConnect registration mode, can you tell us what language your site is using? JFBConnect has translations for about a dozen languages, but yours may be missing. However, JFBConnect should automatically fallback to English, so it's strange if the raw strings are there. Can you explain more about what you're seeing (English, or the raw keys, like COM_JFBCONNECT_USER_NAME are shown)?

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

None
10 years 11 months ago #54014 by davste1
Hi,
The development site is just in English for now. I you go to www.fittogether.se and try to do a Facebook registration you'll see the language string problem with field names, as well as formatting issues.

I have the social profiles JomSocial plugin enabled, but if I choose JomSocial as the registration component within jfbconnect everything looks fine and authentication works but no data is imported from facebook
The topic has been locked.
Support Specialist
10 years 10 months ago #54020 by alzander
I'm unsure why the strings aren't being translated. I see that the labels aren't working, but the options all are. In our JomSocial profile code, we call the following function:
$language = JFactory::getLanguage();
$language->load('com_community');
That should load the language/en_gb/en_gb.com_community.ini language file into your site and translate those fields.

Can you let us know where the translations for those fields are stored? Are they in that language file or are they stored somewhere else, or by JSPT itself? If you can let us know where you set the translations, we should be able to help determine and fix the problem.

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

None
10 years 10 months ago - 10 years 10 months ago #54025 by davste1
Hi,

Now I look i see we have language files both in /community/language/overrides as well as <root>/language/overrides. Checking it's the latter one's that are being loaded.Making a change there to a field value changes it on the registration page, but the field names are there but not being loaded.

As you can see there's a serious problem with the DOB field as well, with the calendar not loading properly, which looks like some kind of javascript issue?

ETA: I've unhooked readybytes profile types and the problem still occurs, so looks like it's not related to that software
Last edit: 10 years 10 months ago by davste1.
The topic has been locked.
Support Specialist
10 years 10 months ago #54029 by alzander
Can you tell me the specific language file that's being loaded? I'm assuming:
<root>/language/overrides/en_gb.com_community.ini
Is that correct? If so, Joomla should try to load that file first, I believe, whenever we call our code I noted above. We may need to do some testing and investigation though to make sure. We haven't heard of this issue from any other users before.

The problem with the datepicker looks to be an issue of Javascript loading. The jquery library hasn't been loaded when the jquery datepicker Javascript is being loaded.. and therefore, it's not working right. I think it should be pretty easy to fix if you can try a quick edit. Please open the following file:
/plugins/socialprofiles/jomsocial/jomsocial.php
Around line 197, you should see:
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');
Update that like below with the additional JHtml line:
if (($field->type == "date" || $field->type == "birthdate"))
{
     JHtml::_('jquery.framework');
     $doc->addScript(JURI::root() . 'components/com_community/assets/jqueryui/datepicker/js/jquery-ui-1.9.2.custom.js');
Hopefully that should fix one issue.

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

None
10 years 10 months ago #54034 by davste1
Hi,
The issue with the datepicker only occurs if I'm *not* selecting JomSocial as the registration component for jfbconnect, but just select jfbconnect.

If I select to use JomSocial, the formatting is fine but only the initial name and email is ported to the registration form, no other info eg DOB, avatar etch. I guess DOB and sex may fail since I've changed the field names

It does import the status update
The topic has been locked.
Support Specialist
10 years 10 months ago #54041 by alzander

The issue with the datepicker only occurs if I'm *not* selecting JomSocial as the registration component for jfbconnect, but just select jfbconnect.

Exactly. The code I want you to try and modify is when JFBConnect has to recreate the JomSocial fields on 'our' registration form.

If I select to use JomSocial, the formatting is fine but only the initial name and email is ported to the registration form, no other info eg DOB, avatar etch. I guess DOB and sex may fail since I've changed the field names

Do you have the profile import area setup in the JFBConnect -> Profiles area? That's where you configure how data is imported into JomSocial. In either registration flow (JFBConnect or JomSocial), the fields should be pre-filled with any data that is pulled in from the user's social network. Let me know if specific fields are configured to import and what they are, if they aren't displaying, and we can investigate further.

Another test is to try Automatic Registration and see if the profile data is imported then. That bypasses the registration forms altogether and should definitely import profile data. That will be a good datapoint to determine what may be going wrong.

Thanks,
Alex
The topic has been locked.