Topic-icon Login button not appearing on page

Active Subscriptions:

None
13 years 7 months ago #27558 by pieniz
Hello,

I just installed JFBConnect for Joomla 2.5.7 at this URL : www.mylisti.com
There was no problem during installation. I verified that the plugins were published.
There is no other extension installed yet, so a conflit at this level seems unlikely.
there is apparently no javascript bug as seen in the Firebug inspector.
I can't obtain the display of the FB button, though the element is well included in the code of the page. And when I ask for a link, this one is inot responding to the click...

So... What did I wrong ??

Thanks for your help
Sincerely
--
Michel Cadennes
The topic has been locked.
Support Specialist
13 years 7 months ago #27559 by alzander
The problem is how JFBConnect inserts some Javascript onto your page that is causing an issue we've never encountered. Basically, your template looks to be doing a lot of <--[if lt ie6 ... tests and is then updating the opening body tag with a specific class based on the IE version. JFBConnect scans the HTML output for your page for the first (and usually only) <body> tag. It then inserts a bunch of Javascript that is required by Facebook and is also required to be immediately after the opening body tag.

The problem is that we're inserting the Javascript calls after the first body tag which is only used for IE6. In other IE versions or any other browser, that code all looks to be commented out.

I've never seen that method of controlling the body tag like that and would recommend simply doing a standard opening body tag with a selectable div beneath that do to the IE detection, if you must do that at all.

Hope that helps get you started on the problem at least. I'm not sure of a good way that we'd be able to fix this in JFBConnect, and again, this is a very unusual problem.

If you can't figure out the problem, or still run into other issues, just let us know!

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

None
13 years 7 months ago #27572 by pieniz
Hello Alex,

Thanks for your answer.
The « conditional body tag » was développed by Paul Irish as a part of the Boilerplate HTML5 framework.
I removed the IE conditional tests, but it doesn't work much better... As far as I can see, there is still no js after the <body> :o(
No js error at runtime.

How could I start doing verifications on the process ?

Thanks for your help
--
Michel Cadennes
The topic has been locked.
Support Specialist
13 years 7 months ago #27589 by alzander
Michel,
Sorry, I had to repost this, there was a issue with the filtering that stripped some of the comments:

When I look at the code on your page, I see everything below the code below. You'll see that our code is toward the top inside the IE6 conditional, which is a problem since that would be hidden from all browsers except IE6.
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->

<!--[if lt IE 7 ]> <body class="ie6"><div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({appId: '466852590004447', status: false, cookie: true, xfbml: true, oauth: true, channelUrl: 'http://www.mylisti.com/components/com_jfbconnect/assets/jfbcchannel.php'});
FB.Event.subscribe('comment.create', jfbc.social.comment.create);
FB.Event.subscribe('edge.create', jfbc.social.like.create);
};
(function(d){
     var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
     js = d.createElement('script'); js.id = id; js.async = true;
     js.src = "//connect.facebook.net/fr_FR/all.js";
     d.getElementsByTagName('head')[0].appendChild(js);
   }(document));
</script>
 <![endif]-->
<!--[if IE 7 ]>    <body class="ie7"> <![endif]-->
<!--[if IE 8 ]>    <body class="ie8"> <![endif]-->
<!--[if IE 9 ]>    <body class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <body> <!--<![endif]-->
As for the code itself, the reference link at the top which explains the concept actually talks about doing the conditionals on the <html> tag, not the opening body tag. If you were to do that, it would prevent the conflict you're currently having.

Let us know what you're seeing in the HTML output if you're seeing something different.

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

None
13 years 6 months ago #27657 by pieniz
Hello Alex,

Sorry for the second message, that was my mistake... I updated a fine on he wrong server :rolleyes:
All is well now.

Thanks for your help.
--
Michel Cadennes
The topic has been locked.
Support Specialist
13 years 6 months ago #27661 by alzander
Fantastic! Glad to hear we could help and that you, hopefully, got everything going now! If you have any other questions, or run into any issues, you know where to find us!

Finally, if you haven't already, please consider leaving a rating or review on the Joomla Extension Directory for JFBConnect or our support. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks, and good luck!
Alex
The topic has been locked.