Topic-icon javascript error?? on latest release.

Active Subscriptions:

None
10 years 10 months ago #33657 by petwal
Hi Alex,

Sorry to bug you again - but I have have hit a wall again.
All was working well and then I noticed the same old similar problem creeping back in. This time it knocked out my 3 central main menu items (in different ways - more below). If I disable the SCLogin - all returns to being well. So this is what happens...

(ALL SCENARIOS ARE WHEN I AM NOT LOGGED IN) (all works fine when I am logged in - strange)
Firefox = knocks out the middle menu and when hovering over them shows JavaScript error - however clicking on them auto logs me in.
IE = same as above however, if you carefully hover over the menu approx 80% down it starts working??
Chrome - same as IE.....the top 50% of the menu is showing error .
I know its all the same error but its behaving strangely. There must be a conflict on FB APP again I assume. Please can you help me resolve this. I did change the RSevents APP id to my own so all the APPs are on the same ID now.

I was working on the easyblog section of the site when this all came about - Was trying to figure out why when I log in through FB, easyblog did not recognise it and asked me to sync my FB account again??? but I'm sure that's another problem!!!

Hope you can steer me in the right direction again.
The topic has been locked.
Support Specialist
10 years 10 months ago #33672 by alzander
Peter,
Glad to help point out the overlap thing. It's looking much better now.

For the drop-down position, if you upgrade, that value will get overridden. I'd recommend trying to add the following to your template:
.scuser-menu {left: -20px !important; }
That will make it load-order independent. What was likely happening before is your template CSS was loaded and then that line was being overridden by our SCLogin CSS as it was loaded. I should have thought about that before.

--- Next post ---
Don't worry about bugging us, that's what we're here for ;) As to your issue though, I'm not sure *why* it's behaving differently, but fortunately, I have a solution. Basically, even though the SCLogin popup is hidden, but browser is still thinking it's there.. If you 'click' in the dead areas of the menu, it actually tries to log you in using Facebook.. Not good.

To fix, can you edit the /modules/mod_sclogin/tmpl/login.php file. At line 30, you'll see:
echo '<div id="login-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="login-modalLabel" aria-hidden="true">';
Update that to the below adding the extra style=.. parameter at the end:
echo '<div id="login-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="login-modalLabel" aria-hidden="true" style="display:none">';

That should really-really hide the module :)

As always, keep us posted on how that goes. We'll likely include that in the next 3.0.1 release because it shouldn't cause any problems for anyone, but would like to get your feedback first to make sure it does fix things as expected.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 10 months ago #33674 by petwal
BRILLIANT!!
cant believe two words brought world peace amongst the browsers!! Its working great now - Yes please include that in the next release. You doing a fine job Alex....a thumbs up for you and your team!! :lol:

Thanks for the update on the moving the menu - ill sort that out over the weekend.

Ill have a chat with easyblog on Monday and ask why if someone is already logged in via facebook on the site, why they have to 'reconnect' through easyblog!
The topic has been locked.
Support Specialist
10 years 10 months ago #33677 by alzander
Whew! Glad to hear that got you going. Hopefully that's the last of the SCLogin issues, but if not, as always, you know where to find us. That change will be in the 3.0.1 release planned for later this month (along with minor other bugs that have been reported).

For EasyBlog, they have some of their own Facebook integration to post to a wall and stuff. We've been discussing some ways to partner better on these things so they can use the JFBConnect authentication token so that the user doesn't have to re-approve. Nothing to provide yet, but asking them the question may bring to light a good solution. It's mainly a matter of our extensions being aware of each other and properly sharing information.

Anyways, hopefully you're good before the weekend. One final thing.. if you haven't already, please consider leaving a rating and review for the SCLogin module, or our support, on the Joomla Extension Directory. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/access-...authentication/24054

Thanks, and best of luck,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 10 months ago #33720 by petwal
Hi Alex,

I feel a little like old Arni (Schwarzenegger) - I'll be back!!

and here I am again....lol.

Firstly: it about the modal window that appeared way down the screen and I fixed that with the changes you suggested earlier on. I was a happy chappy and this weekend installed easydiscuss which kindly screwed with the modal placement - BUT only on 'their' page/menu. any other page is as it should be? ODD!

Secondly - I have 2 user accounts for the site - one being my personal login to take part in web activities and one as the admin - da boss so to speak! Now is there anyway to connect/link admin to a facebook webpage I manage rather than my fb personal - I want to user the webpage profile pic for admin!

lastly spoke with easyblog about getting better integration with your component got the same reply as you did....however was gobsmacked to discover its part of easydiscuss component...strange hey! lol

thanks again
Arnie!! :/
The topic has been locked.
Support Specialist
10 years 10 months ago #33729 by alzander
Peter,
For the placement of the window, it's likely just a CSS conflict between our extensions. Can you let us know where we can see it being too low. Once we see it, I'm sure I can give you more specific CSS to make sure it works. The other option is simply putting !important after the style, like:
top: 10% !important;

The Login with Facebook functionality only works with user profiles. It does not work when using Facebook as a Page. When using that mode, your account wouldn't have an email, name or other information that's required. Facebook disables that functionality (as well as many other things) to prevent abuse since anyone can own unlimited Pages, it would be very easy to create many, many accounts on sites and 'do bad things'.

Finally, for the integration with EasyDiscuss, to my knowledge, there isn't Login functionality in there. There is some good integration with other social networks for share buttons and such, but not some of the deeper integration we provide like authentication, profile import to other systems, open graph actions and such. I wouldn't be surprised if I'm missing something, so feel free to enlighten me if I am.

Hope that all helps,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 10 months ago #33737 by petwal
Hi Alex,

not sure we on the same page - with the latest release, the modal box was half way down the page, which we patched in an earlier conversation ( www.sourcecoast.com/forums/non-commercia...atest-release#p33499 ). So my site works as intended now with the modal only at 10% BUT on the newly installed EasyDiscuss page - its half disappeared up the page like its set for -20% or something. ONLY THAT PAGE EFFECTED? The rest of the site is correct at the new setting of 10%. So its only affecting this one page and i think I might be stumped for a solution! ;)

As to integration I mentioned with EasyDiscuss, yes its not deep integration, its only allowing use of the JCBConnect profile avatar (i.e FB pic)! at least its seemless unlike the blog!.
The topic has been locked.
Support Specialist
10 years 10 months ago #33738 by alzander
Yeah, we're on the same page. There's likely something in EasyDiscuss's CSS that's conflicting with the SCLogin module. To fix originally, I had said:

modules/mod_sclogin/css/sc_bootstrap.css file. Look fro the following lines:
#login-modal.modal
#login-modal.modal.fade.in
In both those sections, change "top: 50%;" to "top: 10%;".

Now, the change is to change those to:
top: 10% !important;
The important just tells browsers that even if other CSS is trying to change that value, don't let them. That means that it's ordering independent of how the CSS sheets are loaded.

If that doesn't work though, post (or PM) a page where we can see it loading wrong and we should be able to diagnose quickly.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 10 months ago #33749 by petwal
Hi Alex
adjusted the code and had no affect. Here is the link:
saffaeventsuk.co.uk/index.php?option=com...ew=index&Itemid=1234

Cheers
The topic has been locked.
Support Specialist
10 years 10 months ago #33754 by alzander
Thanks for the link. Found the issue. Please edit the /modules/mod_sclogin/css/sc_bootstrap.css In the #login-modal.modal section around line 76, updatet the margin from:
margin-left: -170px;
To:
margin: 0 0 0 -170px;

Hopefully that will get you going. We'll update that CSS to be more specific in the next release.

Thanks,
Alex
The topic has been locked.