Topic-icon Page Position / Login Issues

Active Subscriptions:

None
9 years 4 months ago - 9 years 4 months ago #60780 by marsco
Joomla! 3.6.5 Stable [ Noether ] 1-December-2016 22:46 GMT
PHP Version 5.5.38

I have searched the forum, and tried every option I can find to solve this challenge. But, to no avail I am at a loss.

In a nutshell, when a user hits my landing page they are automatically presented at the position of the Login Module SCLogin. When a user logs out, they are on the correct page but again...at the login module.

Logging into my site is not the primary action I am trying to achieve. My goal is to make it easier for people to register during checkout, and the data mining that comes with social media interaction.

How can I force the page to land at the TOP of the page, without publishing the module at the top of the page?

If anyone has a suggestion I am all ears.

In addition, I am having the same issue others have had where the user is not able to login...once logged out. I have tried disabling the Cache, Clearing the Cache. I have navigated away completely from my site only to return and not be able to login via the social plugin.

Any suggestions are appreciated.
Last edit: 9 years 4 months ago by marsco.
The topic has been locked.
Support Specialist
9 years 4 months ago #60783 by mel
Replied by mel on topic Page Position / Login Issues

How can I force the page to land at the TOP of the page, without publishing the module at the top of the page?

Please try setting the SCLogin > Login View Settings > 'Auto Focus Username' setting to No. When enabled, the focus is brought to the username textbox in the module.

In addition, I am having the same issue others have had where the user is not able to login...once logged out. I have tried disabling the Cache, Clearing the Cache. I have navigated away completely from my site only to return and not be able to login via the social plugin.

Could you provide a specific URL where I can see the SCLogin module in action?

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #60790 by marsco
Replied by marsco on topic Page Position / Login Issues
Mel,

"Please try setting the SCLogin > Login View Settings > 'Auto Focus Username' setting to No. When enabled, the focus is brought to the username textbox in the module."
THAT WORKED...Thanks.

"Could you provide a specific URL where I can see the SCLogin module in action? "

north40soap.com/
The topic has been locked.
Support Specialist
9 years 4 months ago #60798 by mel
Replied by mel on topic Page Position / Login Issues
Could you give me more details on how to reproduce the logout / login again error? I'm trying to log in with regular Joomla credentials at www.north40soap.com, log out and then log in again and it's working fine for me.

* Are you logging in via Joomla credentials or logging in with Facebook credentials?
* What browser are you using?
* Are there any error messages or other notifications?
* Are there any errors in the Javascript console of your browser?

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #60801 by marsco
Replied by marsco on topic Page Position / Login Issues
Melissa,

Are you logging in via Joomla credentials or logging in with Facebook credentials?
(Facebook Credentials)
* What browser are you using?
(Chrome, Edge & IE)
* Are there any error messages or other notifications?
(No Error messages) (It's like the FB button gets disabled)
* Are there any errors in the Javascript console of your browser?
(I'm not a developer so....If I understood the question I might be able to answer. But, no errors present themselves)

Interestingly enough I did some testing at my day job today, and everything was working as it should. It's odd that at home it does not work perfectly.

Perhaps it's me?

Martin
The topic has been locked.
Support Specialist
9 years 4 months ago #60808 by mel
Replied by mel on topic Page Position / Login Issues
I tried with my Facebook credentials as well and did not have any problems. On the browser and computer that you're having issues with could you open a private browser window (like incognito) and try again? Also, you mentioned that you deleted the cache. Could you also delete cookies in your browser?
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #60809 by marsco
Replied by marsco on topic Page Position / Login Issues
Mel,

I tried deleting the cookies, and going incognito....still the same challenge. By the way, I tested again yesterday away from my home computer and had the challenge. Also had a co-worker try...same challenge. It seems to be an intermittent challenge. At the very least it's annoying.
The topic has been locked.
Support Specialist
9 years 4 months ago #60814 by alzander
I just tried to register, but ran into the following error message when I tried too:
1146 - Table 'martinws_north40soap.#__k2_users' doesn't exist SQL=SELECT id FROM #__k2_users WHERE userId='522'

As for the issue you're having, I just tried logging out and back in a few times. Eventually, it did stop and I was able to locate the reason. The problem is that you're page is loading the very old Facebook Javascript library, and that's causing a conflict with the newer Facebook Javascript library and the login process. You'll need to remove the following code from the page HTML:
function (d, s, id) {
			var js, fjs = d.getElementsByTagName(s)[0];
			if (d.getElementById(id)) { return; }
			js = d.createElement(s); js.id = id;
			js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=";
			fjs.parentNode.insertBefore(js, fjs);
		} (document, "script", "facebook-jssdk"));
		window.fbAsyncInit = function () {
			FB.init({
				appId: "",
				status: true, // Check login status.
				cookie: true, // Enable cookies to allow the server to access the session.
				xfbml: true  // Parse XFBML.
			});
			FB.Event.subscribe("edge.create", function (response,elem) {
				widget_id = elem.id;
				if(widget_id!=undefined) {
					item_id = widget_id.substr(15);
					document.getElementById("fb_like_"+item_id).innerHTML = "<img src='/media/com_aworewards/images/loading.gif' />";
					document.getElementById("frm"+item_id).submit();
				}
				//alert("You liked the URL: " + response);
			});
		}

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

None
9 years 4 months ago - 9 years 4 months ago #60817 by marsco
Replied by marsco on topic Page Position / Login Issues
Alex,

I appreciate you taking a look and figuring out the issue. Here is my challenge....you said "You'll need to remove the following code from the page HTML:".

Not being a coder of any kind....would you mind being a bit more specific about exactly where I should remove this code? Specifically which file? Are we talking about a file within JFBConnect? Or, somewhere else?

Thanks.
Last edit: 9 years 4 months ago by marsco.
The topic has been locked.
Support Specialist
9 years 4 months ago #60822 by mel
Replied by mel on topic Page Position / Login Issues
JFBConnect no longer includes the all.js javascript library. This is being included by another extension or your template. Some common extensions that included Facebook features are JomSocial, EasySocial, K2. You will need to check your plugins, components and/or template for any Facebook features and try to disable them. Usually, this can be found by an option in those, but occasionally it involves changing a bit of code. If you've looked through your extensions/template settings and still can't narrow it down, please let us know.

-Melissa
The topic has been locked.