Forum is closed

Page reload when user changes his JomSocial profile type

Page reload when user changes his JomSocial profile type

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, http://topmodelgroup.com/en/component/c … article/89 , the login button is located in the article below the text "login with your Facebook account"

jeka1sv
useravatar
Offline
10 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Page reload when user changes his JomSocial profile type

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:

Code:

$html .= JHTML::_('select.genericlist', $availableTypes, 'profile_id', ' onchange="' . $profileJs . '"', 'id', 'name', $profileType);

Change that to:

Code:

$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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23810 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11497
Total Polls:
0
Total Posts:
48402
Posts today:
1
User Info
 
Total Users:
47468
Newest User:
hannatee
Members Online:
1
Guests Online:
785

Online: 
annatech
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program