Topic-icon Page Changes

Active Subscriptions:

None
7 years 5 months ago #60140 by terzah
Page Changes was created by terzah
ever since I updated the SC Login and JFBconnect, whenever a user changes pages, the new page opens scrolled to the very bottom of the new page. Oddly, when you are logged in, the pages load normal, scrolled to the top of the page.
The topic has been locked.
Support Specialist
7 years 5 months ago #60141 by mel
Replied by mel on topic Page Changes
Is this with the latest version of SCLogin that were released this morning? If not, which versions are you using? Could you provide a specific URL where I can see the behavior in action?

-Melissa
The topic has been locked.
Active Subscriptions:

None
7 years 5 months ago #60142 by terzah
Replied by terzah on topic Page Changes
My apologies for the lack of information...
Yes, I updated this morning and that is when the problem arose. The site is www.watchawear.com.
The topic has been locked.
Support Specialist
7 years 5 months ago #60143 by mel
Replied by mel on topic Page Changes
In the new SCLogin version, we put new code to try to autofocus on the username element. I see on your page that you have an SCLogin instance on the left hand slider and also another one down at the bottom. I think that the focus is going to that bottom username input.

Could you try making the following change which reverts back to how the SCLogin acted for 7.0.3? Since you're using Vertical Layout and non-Modal, the file you will want to edit is /modules/mod_sclogin/tmpl/joomlaLogin_vertical.php. At line 39, replace
<input name="username" tabindex="0" autofocus id="sclogin-username" alt="username" type="text" class="input-small"
                                   placeholder="<?php echo JText::_('MOD_SCLOGIN_USERNAME'); ?>">
with
<input name="username" tabindex="0" id="sclogin-username" alt="username" type="text" class="input-small"
                                   placeholder="<?php echo JText::_('MOD_SCLOGIN_USERNAME'); ?>">

Basically this just takes out the autofocus option. Let me know if this helps.

-Melissa
The topic has been locked.
Active Subscriptions:

None
7 years 5 months ago #60144 by terzah
Replied by terzah on topic Page Changes
As a test, I removed the bottom login... and the pages now load correctly...
So should I perform the edit as kindly suggested above???
Thanks for the outstanding support!!! :-)
The topic has been locked.
Support Specialist
7 years 5 months ago #60145 by mel
Replied by mel on topic Page Changes
If you're going to keep the module at the bottom permanently gone, then you don't need to make the code change. If you do want the login module back at the bottom, then I'd recommend the change to make sure that's the problem. There were only a few small changes that were done in the SCLogin module this release, so I'm fairly confident it's the autofocus that's the issue.
The topic has been locked.
Active Subscriptions:

None
7 years 5 months ago #60148 by terzah
Replied by terzah on topic Page Changes
I was able to edit as you instructed and it worked perfectly.

Additionally, as I do not use facebook, only google, how do i disable the facebook calls?
The topic has been locked.
Active Subscriptions:

None
7 years 5 months ago #60170 by kernel64
Replied by kernel64 on topic Page Changes
I have the same "problem" where the focus is set to the username field. Our SCLogin is normally halfway at the right side of the page.
Will this autofocus be changed in the next version of SCLogin or do i need to edit the code (everytime i release a new website or everytime SClogin is updated) ?
The topic has been locked.
Support Specialist
7 years 5 months ago #60173 by mel
Replied by mel on topic Page Changes
Make the code change now as I suggested. Then I will add a setting in the SCLogin parameters on whether the autofocus is enabled or not and will have it disabled by default. I've already added the issue to our tracker for a 7.1.2 release.

-Melissa
The topic has been locked.