Google Plus Button

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
wbxpress
Registered User
Posts: 150
Joined: Wed Mar 21, 2012 1:29 pm
Contact:

Google Plus Button

Post by wbxpress »

I want to put a G+1 button above the search box in header of my phpBB board. please help me with the edit.

No MOD is required.
User avatar
Lumpy Burgertushie
Registered User
Posts: 68014
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Google Plus Button

Post by Lumpy Burgertushie »

wbxpress wrote:I want to put a G+1 button above the search box in header of my phpBB board. please help me with the edit.

No MOD is required.
yes, MOD is required. any time you change even one character of code , that is a MODification.

anyway, a link to your board please or at least tell us what style you are using and give us the actual code for the button.

thanks,
robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
User avatar
PlanetStyles.net
Former Team Member
Posts: 4590
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: Google Plus Button

Post by PlanetStyles.net »

Pretty simple stuff.

In overall_header.html, find:

Code: Select all

<div id="search-box">
After, add:

Code: Select all

<!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-size="medium"></div>

<!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">
  window.___gcfg = {lang: 'en-GB'};

  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>
🚀 Premium phpBB StylesPremium phpBB 3.3 StylesphpBB sidebar Extension
Previously known as Christian 2.0
wbxpress
Registered User
Posts: 150
Joined: Wed Mar 21, 2012 1:29 pm
Contact:

Re: Google Plus Button

Post by wbxpress »

Thanks Chris. It's working great. :D
Locked

Return to “[3.0.x] Support Forum”