Google plus button shows different amount on every page

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
blockrocker
Registered User
Posts: 32
Joined: Fri Nov 12, 2010 8:43 pm

Google plus button shows different amount on every page

Post by blockrocker » Wed Mar 06, 2013 9:28 am

Hi!

I have a Google Plus button on my PhpBB forum but it doesn't seem to work like the Facebook like-button next to it does.

The Facebook button shows the same amount of likes, no matter what page or topic of my forum I'm browsing. So it's like a global like button for the whole forum.

The Google Plus button however only shows clicks on the very first page of the forum. When I go to other pages it changes to zero. So I guess it's not "global" but only tracks the specific pages on which it was clicked on.

Does anyone else regognize this behaviour? Is it possible to have the Google plus show the clicks for the whole URL instead of individual pages?
New ideas and brainstorming: www.wewantbetter.org

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Google plus button shows different amount on every page

Post by Oyabun1 » Wed Mar 06, 2013 10:07 am

There is no MOD support in this forum. You would need to ask about it wherever you got the code to add the button from.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

blockrocker
Registered User
Posts: 32
Joined: Fri Nov 12, 2010 8:43 pm

Re: Google plus button shows different amount on every page

Post by blockrocker » Wed Mar 06, 2013 1:24 pm

Hi!

I understand there is no Mod support. I'm simply hoping someone else here might have solved the same problem. I thinks it's quite common these days to have social buttons (facebook, google+, twitter) on any website so I suspect I might not the only one with this problem.
New ideas and brainstorming: www.wewantbetter.org

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21148
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket - definitely

Re: Google plus button shows different amount on every page

Post by Mick » Wed Mar 06, 2013 1:52 pm

This is a support forum for vanilla phpBB installations not third party add-ons or MODs. Whether or not any body else has the same problem is irrelevant. The people who know will be at the support site for your MOD.
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
soumik
Registered User
Posts: 486
Joined: Tue Nov 06, 2007 7:27 pm
Contact:

Re: Google plus button shows different amount on every page

Post by soumik » Wed Mar 06, 2013 3:22 pm

Assuming your forum is this, it's just a simple matter of specifying which URL to like. If it is not specified, the URL of the current page is liked.

Open /styles/subsilver2/template/overall_header.html

Find:

Code: Select all

<div class="gplus" style="width:80px";><g:plusone></g:plusone></div><!--gplus-->
Replace with:

Code: Select all

<div class="gplus" style="width:80px";><g:plusone href="http://www.kirjanpitofoorumi.com/index.php"></g:plusone></div><!--gplus-->
You can remove the index.php from the href tag value if you want (for aesthetic purpose), but since the URL will be different, your existing likes will not be shown.
Powered by chocolate

blockrocker
Registered User
Posts: 32
Joined: Fri Nov 12, 2010 8:43 pm

Re: Google plus button shows different amount on every page

Post by blockrocker » Wed Mar 06, 2013 6:15 pm

Thank you so much, this is exactly what I needed! What a brilliant solution!
New ideas and brainstorming: www.wewantbetter.org

Locked

Return to “[3.0.x] Support Forum”