I use JomSocial with XIPT profile-types and since the registration page is from the xipt component, I have to use the custom registration option under the module's login settings. The downside is that even though it's still Jomsocial, there is now no joomla avatar showing up in the sclogin module once the user is logged in (like there is if I switch to jomsocial or facebook) . What do I need to change in the helper file to enable the joomla avatar to appear when using the custom registration option?
Thanks for making such great products.
Thanks for the compliments on JFBConnect and the SCLogin module.
As to your issue, that's not a combination we had considered. We may have to look into breaking the avatar and registration into different settings, but we try to minimize things as much as possible.
To force the avatar to be for JomSocial, please edit the /modules/mod_sclogin/helper.php file. Around line 350, you'll see:
if ($registerType == 'jomsocial' && file_exists(JPATH_BASE . '/components/com_community/libraries/core.php'))
Just change that to:
That will make the avatar always come from JomSocial.
I hope that helps, but if you need anything else, just let us know.
awesome! works perfectly one last question:
is there a way through the component settings to keep the user session alive even if they close the browser (like facebook)? I know there are a few plugins floating around that can do that, but if there's a way through jfbconnect, I'd rather go that route.
Sessions are completely handled by Joomla. It sounds like you want to increase the "Session Timeout" in the Joomla -> Global Configuration area. That will store a cookie on the user's browser that will keep them logged in for however long you set that value (in minutes). Most browsers, though, will kill cookies if the browser is restarted. If they close the tab to your site and return, they should remain logged in.
The default session length is 15 minutes. We use 120 on this page as that gives a good balance of not logging users out too quickly vs insecurity of leaving them logged in for too long. Most of our users aren't on shared computers though, so it's not an issue for us. Each site is different, of course.
I hope that helps,