Topic-icon FB Login Button not shown on home page

Active Subscriptions:

None
11 years 1 month ago #31342 by petjak
after todays update to JFBC 5.0 the login button is not shown home page of our web: www.bikemagazin.sk but every other page is shown properly with FB login button

we are using joomla 2.5.9
Tested in:
- IE 9
- Chrome
- Safari
The topic has been locked.
Support Specialist
11 years 1 month ago #31346 by alzander
Peter,
On your home page, you're using a different extension for the Like-Box/Fan Box in the bottom right area. That extension is re-including the Facebook Javascript library (the all.js file) and initializing it in a different way than JFBConnect, which is likely conflicting.. and definitely slowing down the page load time since the file is being fetched twice. Disable that extension and/or replace it with the JFBCFan module.

That may help. If not, the other likely cause is a Javascript error that I'm only see on your home page:
Uncaught TypeError: Object [object Object] has no method 'fitVids' www.bikemagazin.sk:61
That's coming from the following line of code, which I honestly don't have a clue what it's doing, but hopefully will help you narrow things down:
jQuery(document).ready(function(){	jQuery("#k2Container").fitVids();})

Hope that helps get you going, but if you still need more help, let us know.

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

None
11 years 1 month ago #31358 by petjak
Hi Alex,

i tried to replace the module with the JFBCFan module, but it had no effect on our problem.

the fitVids is a plugin which implements responsive video solution - i disabled this plugin so we don't have that Javascript error anymore, but this doesn't helped either
The topic has been locked.
Support Specialist
11 years 1 month ago #31362 by alzander
Peter,
I just looked again at the actual HTML on the page. When I click the "REGISTROVAĆ€" button in the top right, the Login with Facebook button shows up in that window. On all your other interior pages, there is a separate "Login with Facebook" button next to that link. However, on your home page, the HTML for that is missing. I think however you're adding that button is simply set not to show on the home page. So it seems like whatever you're doing to add the button to interior pages just isn't working on the home page.

Can you tell me how you've configured the Login with Facebook button to show on your pages? Are you using a module, the {JFBCLogin} tag in your template, or something else?

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

None
11 years 1 month ago #31368 by petjak
we are using module with custom html with simple {JFBCLogin} and this module is assigned to all menus and menu items
The topic has been locked.
Support Specialist
11 years 1 month ago #31374 by alzander
Can you edit the Custom HTML module and add stars (or something else we can see) around the tags, like *{JFBCLogin}*

That will help us see what's happening on the page, because right now, on your home page, there's no trace of the Login with Facebook button in the HTML or even a custom HTML module by your other Register and Login buttons. I can clearly see the Custom HTML module on your interior pages.

If the ** comes through with no Login with Facebook button, that will help us tell that the button is being seen by our plugin, but removed for some reason. If nothing (no stars) show, then it would indicate the Custom HTML module isn't really showing on the home page.

Let us know when you add something extra around the tag for us to see.

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

None
11 years 1 month ago #31383 by petjak
the module is modified as you wanted, only the ** are displayed
The topic has been locked.
Support Specialist
11 years 1 month ago #31387 by alzander
You can remove the stars now.

I've never seen an issue like that before. I'm not sure what's causing the button to not appear. Basically, our JFBCSystem plugin replaces that {JFBCLogin} tag with the HTML/Javascript that should render the button. I'm not seeing the HTML or the tag, which means the JFBCSystem is working but either it's not replacing properly or something else is stripping that tag later.

There's 2 ways to resolve this:
* Switch to using a custom image instead of the Javascript/{JFBCLogin} tag. You can do that by switching your Custom HTML module to use the following code instead of the tag:
<a href="javascript:void(0)" onclick="jfbc.login.login_custom();"><img src="/link-to--an-image.jpg" /></a>
* Private Message us a set of admin credentials and we can investigate further on your site.

I'd recommend the first as an image loads faster and should definitely fix the problem, but have no problem looking into it further if you want.

Thanks,
Alex
The topic has been locked.