javascript error?? on latest release.

javascript error?? on latest release.

Hi Alex,

I downloaded and installed the latest release and its certainly growing into a great little module.

I did however have a issue.... not sure what happened but on certain pages its caused my main menu to stop working and kept trying to log me in via facebook!.

I reverted back to the beta release and all was well again...so not sure what is causing the issue.

the other thing i noticed is the modal was much lower down the page and the beta version had the login modal higher up the page whiched looked better  - not sure if that my thing or general SCL thing!

Edited by: petwal - May-31-13 09:38:52
petwal
Peter
useravatar
Offline
27 Posts
Active Subscriptions:

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

Re: javascript error?? on latest release.

Peter,
Not sure what's going on with the menu or the constant logging in. We'd have to see it happening to even come up with a idea of what's happening. Some things to check first:
* Clear your Joomla cache after updating
* Try from a different browser than you've been using (that will make sure it's not a browser cache issue).

As for the position of the modal, yeah, that's something we had to change due to some issues where it wasn't appearing on everyone's site properly. To rever that back, you'll need to edit the /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%;".

We like the old looks better too and will be reverting that, but need to make sure it's more compatible with all sites and templates. Till then, the easy change above should get you going.

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

Re: javascript error?? on latest release.

Hi Alex,

tried it on 2 different pcs although both pc were using firefox. AS soon as I reverted back to the old module - all was well. no cache set as im still in development although the site is live.

you welcome to go into the backend and upload the new module and see the issue in action - I am UK based so any time your pm will be late into my night. !

let me know and ill send across the log in details.

petwal
Peter
useravatar
Offline
27 Posts
Active Subscriptions:

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

Re: javascript error?? on latest release.

Peter,
Sorry for the delay. We'll definitely need to see what's going on in order to diagnose/debug that issue. It's not something that's been reported by anyone else or can be recreated on our development sites.

Can you Private Message me some credentials for your site and we'll look into it soon. You can PM me by hitting the mail icon under my name to the left.

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

Re: javascript error?? on latest release.

Hi Alex,

Dont know how i missed this - but got a simular problem on the beta version as well - except this time it goes through the motions but never logs anyone in.....only particular to one section of the site. Will email you the url so u can tell me what i got going wrong.

thanks

petwal
Peter
useravatar
Offline
27 Posts
Active Subscriptions:

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

Re: javascript error?? on latest release.

The problem on that page is coming from RSEvents. It looks to also be including the Facebook Javascript library and initializing it in a way that's conflicting with JFBConnect. Additionally, you've set a different Facebook App ID, which means that when JFBConnect tries to log the user in, it would be for a different app.. this is likely where the looping is coming from. JFBConnect is set to auto-login, but the app it's logging into isn't working (different App ID).

You'll need to disable the Facebook Javascript inclusion from RSEvents. I don't know how you'd do this, or if it will disable other Facebook integration features in that extension, but hopefully you can find a way to get it all to work how you want.

I hope that helps, and please let us know what you find.

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

Re: javascript error?? on latest release.

Hi Alex,

thanks for the advice. I contacted RSevents to double check if I changed the APP ID to the same used by SCLogin and they advised me to go ahead and attempt it and I can report back that all is working fine now.

I will upgrade to the latest release now and if all is great, consider this thread closed and resolved.
thanks again for the superb support!!

petwal
Peter
useravatar
Offline
27 Posts
Active Subscriptions:

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

Re: javascript error?? on latest release.

One more quick note......fixed the modal position back to normal. thanks for the tip. (btw latest release working fine now  current/big_smile )

The position of my login module is extreme right, so when the menu option is used, some of the menu 'scrolls' off the screen (if you look at yours, there is a couple of pixels that fall off the boundary of the template. Can I right align the menu box but not the menu text if you know what I mean!

see attached pic!
http://www.sourcecoast.com/images/agorapro/attachments/15918/SAFFA-events-in-the-UK-2013-06-05-12-23-02.png

petwal
Peter
useravatar
Offline
27 Posts
Active Subscriptions:

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

Re: javascript error?? on latest release.

Peter,
First, for the App ID being the same, *please* make sure you test in a lot of browsers with that. Since RSEvents is still initializing the Facebook Javascript library, and since browsers all load things in different orders, make sure the login works properly in all of them. It hopefully will, but just want you to be careful.

Next, I just looked at your site. In the top right, if I shrink the window just right, this is what I see:
http://www.sourcecoast.com/images/agorapro/attachments/64/petwal-login-area.png
If I widen the screen, the "Change the color" stuff still overlaps, but isn't so bad.
Wanted to point that out. If you need help diagnosing/fixing that, just let me know.

Now.. to your actual question current/smile Try adding the following to your stylesheet:

Code:

.scuser-menu {left: -20px; }

You'll probably need to adjust the actual value, but hopefully that gets you started. If not, you know where to find us.

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

Re: javascript error?? on latest release.

thanks again alex for the heads up on the different browsers, so far all good on three of the main ones, IE, firefox and chrome  current/hmm  ill have to check the others
I fixed that overlap you spotted (was not apparent in firefox) - thanks for that.

The additional lines added to the custom.css and template.css files and it did not work - but in the end adjusted the figure in the sc-bootstrap.css file. Question is when there is a update, will this get overwritten?

petwal
Peter
useravatar
Offline
27 Posts
Active Subscriptions:

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

Re: javascript error?? on latest release.

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.

petwal
Peter
useravatar
Offline
27 Posts
Active Subscriptions:

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

Re: javascript error?? on latest release.

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:

Code:

.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 current/wink 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:

Code:

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:

Code:

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 current/smile

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

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

alzander
Alex
useravatar
Offline
24024 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: javascript error?? on latest release.

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!!  current/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!

petwal
Peter
useravatar
Offline
27 Posts
Active Subscriptions:

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

Re: javascript error?? on latest release.

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:
http://extensions.joomla.org/extensions … tion/24054

Thanks, and best of luck,
Alex

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

alzander
Alex
useravatar
Offline
24024 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: javascript error?? on latest release.

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!!  current/hmm

petwal
Peter
useravatar
Offline
27 Posts
Active Subscriptions:

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

Re: javascript error?? on latest release.

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:

Code:

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

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

alzander
Alex
useravatar
Offline
24024 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: javascript error?? on latest release.

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 ( http://www.sourcecoast.com/forums/non-c … ase#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! current/wink

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!.

petwal
Peter
useravatar
Offline
27 Posts
Active Subscriptions:

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

Re: javascript error?? on latest release.

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:

Code:

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

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

alzander
Alex
useravatar
Offline
24024 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: javascript error?? on latest release.

Hi Alex
adjusted the code and had no affect. Here is the link:
http://saffaeventsuk.co.uk/index.php?op … temid=1234

Cheers

petwal
Peter
useravatar
Offline
27 Posts
Active Subscriptions:

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

Re: javascript error?? on latest release.

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:

Code:

margin-left: -170px;

To:

Code:

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

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

alzander
Alex
useravatar
Offline
24024 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: javascript error?? on latest release.

Hi Alex, can I break in on this thread. I am experiencing a javascript conflict after upgrading to the lastest SCLogin (btw very nice login module, like it a lot!). I identified SCLogin as the cause by switching on and off various modules. I am using the Shape 5 vertex template by the way with the S5 flex menu.
What happens is this: When SCLogin is active and Load JQuery is set to yes the drop-downs on the S5Flex menu are not working anymore but the login and register buttons are working fine. When I then click on a menu that has no drop-down the page shows up and THEN the drop downs start working again.
Now if I set Load JQuery to NO then the drop-down will work as they should but the login button (pointing to #login-modal) is dead. When I set the display type to always visible the login button works fine again, so i suspect the problem is with loading the modal popup....
the S5 flexmenu does not allow me to switch loading JQuery on or off and i have not managed to find any option to change the order for these two modules to load....
Kinda stuck now ....
It looks as if i do not have the zip file of the previous version anymore so cannot revert back to the previous sclogin ...
jk

jdekempenaer
Quantitative/Technical strategist, fund manager
useravatar
Offline
18 Posts
Active Subscriptions:

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

Re: javascript error?? on latest release.

All aboard! current/smile No problem for jumping in. Though generally it's best to create a new topic unless your issues are directly related to the rest of the thread.

First off, the v2.0 SCLogin module can be downloaded below in case you want to revert:
https://www.sourcecoast.com/index.php?o … 8&id=4

As for your issue, jQuery is used to load the modal popup. It sounds like there's likely a conflict in jQuery itself, which is odd, but may be caused by different versions. We're using v1.9.1, which is backward compatible, but it may introduce some issues somewhere. Can you post, or Private Message, me a link to your site where we can see the troublesome module? We're planning to release v3.0.1 (hopefully) later this week, so if there's a fix we can implement to make things more compatible then, we'd love to do it.

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
24024 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:
11616
Total Polls:
0
Total Posts:
48819
Posts today:
7
User Info
 
Total Users:
47668
Newest User:
sdwebmaster
Members Online:
5
Guests Online:
1500

Social Stream
SourceCoast Joomla Social Extensions
Friday, 25 May 2018
JFBConnect 8.0 Coming Soon! Stay tuned.
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program