Topic-icon Set "Remember Me" as default - JomSocial integration

Active Subscriptions:

None
12 years 7 months ago - 12 years 7 months ago #37999 by haibar
I really like the FB Auto Login feature of JFBConnect. However, not all my users are via social login. However, the normal usage model of my site is such as people will be using mostly from their own computers/cellphones so that they have no reason to logout.

Thus - I want the auto-login behavior even for traditional user/pass members. I assume I can do this with the "Remember Me" checked when logging in, correct? How can I make "Remember Me" as the default behavior? Where is this code?
Last edit: 12 years 7 months ago by haibar.
The topic has been locked.
Support Specialist
12 years 7 months ago #38011 by alzander
In the /modules/mod_sclogin/tmpl/joomlaLogin_horizontal.php or joomlaLogin_vertical.php files, there's a line that looks like:
<input id="sclogin-remember" type="checkbox" name="remember" class="inputbox" value="yes" alt="Remember Me" />
Update that to:
<input id="sclogin-remember" type="checkbox" name="remember" class="inputbox" value="yes" alt="Remember Me" checked="checked" />
That will default it to checked.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 7 months ago #38097 by haibar
Alex - thanks... that looks correct, but that's for the SCLogin module. What I'm speaking of is the JomSocial frontpage (for guests - see drinkedin.net) - the "Remember Me" box here should be checked by default... I just want to make sure if JFBConnect needs the fix here (since there's a tight integration), or is this a similar JomSocial edit that you described? Would you happen to know which JomSocial file should be edited if that's the case?

Thanks in advance.
The topic has been locked.
Active Subscriptions:

None
12 years 7 months ago #38105 by haibar
I believe I found the answer. In /components/com_community/templates/default is the file frontpage.guests.php - I just added the same checked="checked" parameter to the input tag for the checkbox - all is fine.

Thanks.
The topic has been locked.
Support Specialist
12 years 7 months ago #38107 by alzander
Glad to hear you got it going. Was planning to look into it more tomorrow, but since it was a very JomSocial-specific issue, it wasn't a high priority for us (especially on the weekend).

I hope the tip from above for SCLogin got you on the right path.

As always, should you need anything else, just let me know.

Thanks,
Alex
The topic has been locked.