Show Jomsocial avatar for custom registration link...

Show Jomsocial avatar for custom registration link...

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.

Adam

adammelcher
useravatar
Offline
7 Posts
Active Subscriptions:

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

Re: Show Jomsocial avatar for custom registration link...

Adam,
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:

Code:

        if ($registerType == 'jomsocial' && file_exists(JPATH_BASE . '/components/com_community/libraries/core.php'))

Just change that to:

Code:

        if (true)

That will make the avatar always come from JomSocial.

I hope that helps, but if you need anything else, just let us know.

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
24588 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Show Jomsocial avatar for custom registration link...

awesome! works perfectly current/smile 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.

thanks again

adammelcher
useravatar
Offline
7 Posts
Active Subscriptions:

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

Re: Show Jomsocial avatar for custom registration link...

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,
Alex

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

alzander
Alex
useravatar
Offline
24588 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:
12002
Total Polls:
0
Total Posts:
50331
Posts today:
2
User Info
 
Total Users:
48932
Newest User:
prashr
Members Online:
2
Guests Online:
1316

Social Stream
Hide, Seek & Defuse

Handheld Electronic Game

Alex from SourceCoast is working on a new electronic game for kids called Countdown. It's a timed game of Hide & Seek with mini-games (Whack-a-Mole, Simon, etc) to complete when you find it.

Hide and Seek Toys

Before You Leave

Let us send you a 10% off coupon

For Your Next Purchase

Please enable the javascript to submit this form

No , I don't want a discount