× Joomla Facebook Connect support forum

Topic-icon Page reload when user changes his JomSocial profile type

Active Subscriptions:

None
This is not a bug, but it is very uncomfortable for users.

When a user clicks the button "login with Facebook" on my site, he needs to fill username and password.

Below those fields he sees his profile type selection dropdown list, that is Model by default on my site. But in the case that user wants to change his profile type to another - the page reloads, and the user has to enter his data again.

Is there any way:
1. Either to not reload the page in case if the profile type was changed (as fields are rthe same for all profile types)
2. Or at least display the JomSocial selection listbox above the other fields, but not below them?

You can see the example of what I'm talking about on my site, topmodelgroup.com/en/component/content/article/89 , the login button is located in the article below the text "login with your Facebook account"
The topic has been locked.
Support Specialist
In the newest releases of JFBConnect, there is a method to let the user go through the standard JomSocial registration flow, with data pre-filled. However, the newest releases of JFBConnect are only compatible with Joomla 2.5 and 3.x. Obviously, if you can upgrade, we'd recommend you do so.

With that said, if your profile types have the same fields to show, you should be able to edit the /plugins/jfbcprofiles/jomsocial/jomsocial.php file. Around line 96, you'll see:
$html .= JHTML::_('select.genericlist', $availableTypes, 'profile_id', ' onchange="' . $profileJs . '"', 'id', 'name', $profileType);
Change that to:
$html .= JHTML::_('select.genericlist', $availableTypes, 'profile_id', null, 'id', 'name', $profileType);

Test that and let me know how it goes. Hopefully that will fix you right up.

Thanks,
Alex
The topic has been locked.
Social Stream
Hide. Seek. Play!

Countdown Hide & Seek Game

Countdown, the new hide & seek toy, is available now! Designed and developed by the founders of SourceCoast, it's the perfect toy to get your kids moving at all ages.

Learn More About the Hide and Seek Toy