× Joomla Facebook Connect support forum

Topic-icon Google Plus tag doesn't appear.

Active Subscriptions:

None
14 years 4 months ago #18329 by troykristoffer
Hi there!

First of all, let me say I am delighted with this extension. Should I continue to feel this way for this week, I will leave a stellar review on the Joomla website! I have purchased other Facebook/Social extensions in the past and I am amazed at how robust, yet simple JFBConnect is to manage!

Anyway, I am having one small issue. While I can get all of the "like" buttons to appear on most pages, using the automatic section/category/article settings, some of my components require the {SCGooglePlusOne} tags to be inserted to the template code for them to appear.

Unfortunately, when I insert that Google+ tag, it does not work. I have added the Facebook and Twitter tags and they DO work. It's just the Google+ tag I'm having trouble with. Again, this is ONLY when inserting the tag into a HTML template file. The Google+ button shows up fine in articles.

I'm using JFBConnect v 4.1.1 on Joomla v1.5.24
Here is the code I am inserting, where I expect the button to appear:
{JFBCLike colorscheme=dark layout=button_count}{SCGooglePlusOne layout=button_count}
I have tried just the plain tag too, (with no parameters) and it doesnt work either.
Any thoughts?
The topic has been locked.
Support Specialist
14 years 4 months ago #18332 by alzander
Troy,
Glad to hear your happy with your decision. 3 years of development (and a lot of feedback) has helped JFBConnect be what it is, and there's no doubt, it's the best for Facebook integration.

As for your issue, I'm assuming that the {SCGooglePlusOne} tag is properly being removed from the page, but the button isn't showing (nothing is). If so, that's usually caused if there's another extension on your site also including the Google +1 Javascript library. If you open the source HTML and search for the following, it should only show up once: plusone.js

If it's on there more than once, that's the cause. JFBConnect only adds it one time (even if you use multiple +1 buttons), and we do it the 'proper' way so that if other extensions tell Joomla to include that file, it should only be inserted once. Not all extensions do it 'proper' though, of course, and is likely the issue.

If you're unsure how to check your code, please post the URL for a problem page, and we'll gladly take a look to diagnose further.

Thanks again, and we hope in a few days you make the choice to give us a great review. We'd definitely appreciate it, but it's certainly not required.
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18879 by troykristoffer
Hi Alex,
Thank you for your reply.
You can see the problem I'm speaking of at the following link:
www.78entertainment.com/pod/index.php?op...od-camping&Itemid=55

This is an event listing component which I've added the tags to the template files
As you can see, the {JFBCLike colorscheme=dark layout=button_count} tag works fine, but the {SCGooglePlusOne} does not appear.

After some more investigation, it seems that the code is being generated in the source. I see where it appears in the code, and the div, but for some reason the div is invisible. I did not see the script appear more than once in the head. It seems to be only once. Also, I'm not really using any other social network extensions. Just yours.

Hope you can help!
-Troy
The topic has been locked.
Support Specialist
14 years 4 months ago #18887 by alzander
Troy,
There was a bug in JFBConnect v4.1.1 where the Javascript wasn't always included for the extra social buttons when manually inserted on the page. Upgrade to JFBConnect v4.1.2 and the button should start showing.

If that doesn't help, just let us know!

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

None
14 years 4 months ago #18891 by troykristoffer
Ok! Upgraded to 4.1.2 but it still doesn't show :(
The topic has been locked.
Support Specialist
14 years 4 months ago #18980 by alzander
Troy,
Glad you upgraded.. unfortunately, you uncovered a bug. We didn't realize it, but Google changed how we should be loading their Javascript library. Fortunately, it should hopefully be an easy fix.

Can you edit the /plugins/system/jfbcsytem.php file. Around line 266, you'll see:
if($googlePlusTagFound)
            $googleJavascript = '<script src="'.$scheme.'://apis.google.com/js/plusone.js"></script>';
        else
Change that to:
if($googlePlusTagFound)
        {
            $googleJavascript = "<script type=\"text/javascript\">
              (function() {
                var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                po.src = '".$scheme."://apis.google.com/js/plusone.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
              })();
            </script>";
        }
        else
Little lengthier code, but should fix the issue you're experiencing. Please let us know if it does. This fix will be in the next release, so it's always good to have a little confirmation.

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

None
14 years 3 months ago #20165 by troykristoffer
Hi Alex,

I'm sorry for the delay in replying. I work on this website in my free time, which has been spotty lately.

I replaced the code which you provided and still there is no Google+ buttons :(

The other page I linked in a previous post is no longer available at the same URL, so here is the new URL:
www.78entertainment.com/pod/index.php?op...od-camping&Itemid=55
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #20167 by mtk
Replied by mtk on topic Google Plus tag doesn't appear.

troykristoffer wrote: Hi Alex,

I'm sorry for the delay in replying. I work on this website in my free time, which has been spotty lately.

I replaced the code which you provided and still there is no Google+ buttons :(

The other page I linked in a previous post is no longer available at the same URL, so here is the new URL:
www.78entertainment.com/pod/index.php?op...od-camping&Itemid=55

Helo Troy,
I wonder if this problem is related to the other one (comments, not showing).
could you please try and open a Joomla Article page, and see if any of these two problem occur there too?

Mati
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #21282 by Ludwig von Mises
I am having the same problem on two sites. Twitter and Facebook tags show up with custom html module, but the Google tag doesn't show the +1 button. File plusone.js is only loaded once in the source code.

Joomla 2.5.4
JFBConnect 4.1.2

The content plugin works fine with all the buttons. The reason I want to do it in custom html with the social tags is because I want to see the button counts for each button, which it seems with the content plugin only works for Facebook and not Twitter or Google+1.
The topic has been locked.
Support Specialist
14 years 2 months ago #21323 by alzander
Ludwig,
Sorry for the delayed response. Can you provide a URL to a page with the problem so we can take a look and try to figure out why the button isn't showing?

Thanks,
Alex
The topic has been locked.