Topic-icon JFBCConnect not working only on front page

Active Subscriptions:

None
Hi,

I have JFBCconnect working on all the pages but not in front page. Cannot understand why.
baratafeira.com/

Regards,

Renas
The topic has been locked.
Support Specialist
13 years 2 months ago #32170 by alzander
Try disabling the fan box module you're using in the home page, and see if that helps. If not we'll gladly try to help get to the bottom of the problem however we can.

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

None
13 years 2 months ago #32183 by renasrenas
Hi Alex,

I have discovered the source of the problem.
When this map is activated something happens to JFBCConnect. This is happening after the upgrade of 5.0

Map attached.

Regards,
Renas
The topic has been locked.
Support Specialist
13 years 2 months ago #32193 by alzander
I didn't see any attachment to your post. I was able to look a little more at the code on your pages, and can see what's happening. Basically, there is a big block of code missing on your home page that exists on all of the sub-pages. Our Login with Facebook button using the {JFBCLogin} tag. Do you know if your 'map' uses some sort of {} tags? If so, it may be stripping our tag as well, and preventing the login button from showing.

The code on the page that works is:
<div class="loginface" style="
margin-top: 10px;
margin-left: 10px;
min-height: 25px;">
<link rel="stylesheet" href="http://baratafeira.com/components/com_jfbconnect/assets/jfbconnect.css" type="text/css" /><div class="jfbclogin"><div class="fb-login-button" data-size="medium" data-show-faces="false" data-scope="email,publish_actions" onlogin="javascript:jfbc.login.on_login();">Entrar com o Facebook</div></div>
The code on the home page is:
<div class="loginface" style="
margin-top: 10px;
margin-left: 10px;
min-height: 25px;">
</div>
So, not sure what's happening there. Can you give more information about the 'map' you're using, how it works, and what you are disabling to make things work? Is it a plugin or a module?

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

None
13 years 2 months ago #32198 by renasrenas
Hi Alex,

Attached all the code of the map. ##text##
If disabled all works properly.
This was working with this map before 5.0 version.

Regards,

Renas
The topic has been locked.
Support Specialist
13 years 2 months ago #32205 by alzander
Renas,
We'd need a lot more information about the map module before we can dig into what's happening.
* Who is the developer of it, and is there any documentation we can look at?
* Have you contacted the developer to see if they may know why there is a conflict with our {JFBCLogin} tag?
* What does it do? Do you just set it in a module position, or do you use some sort of {xyz} tag?
* How do you have it configured so that we could do the same when we get to testing.

Any information you can provide on it's functionality will help us understand things more and then we can try to look into it. We don't test with all extensions, as that'd be impossible. We'll help how we can, but I'm not sure when we'd be able to get you an answer.

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

None
13 years 2 months ago #32215 by renasrenas
Alex,

The map was developed by me is a HTML module and all the code is in the attached file. Does not use any TAG information that i know.
As i said this does not happen in my test site with the old version of JFBCConnect.
testclassificados.iokis.com

Regards,

Renato Mendonça
The topic has been locked.
Support Specialist
13 years 2 months ago #32218 by alzander
Renato,
Thanks for the information. I looked at your code in the file and then at your page. The file you're including has the html, head, and body tags in it. That's duplicating those tags, which should only be on the page one time. That's completely non-compliant and my only guess is that Facebook's Javascript API, which needs to parse and modify the HTML for the page, is getting confused and simply isn't working.

Can you try removing the extra html, head, and body tags that you're including in that file and see if that fixes the Login with Facebook button?

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

None
13 years 2 months ago #32221 by renasrenas
Hi Alex,

Tks, that resolved the problem. :)

Regards,

Renas
The topic has been locked.
Support Specialist
13 years 2 months ago #32227 by alzander
Awesome. Glad to hear we got it going for you. Should you need anything else, just let us know.

Thanks,
Alex
The topic has been locked.