Page 1 of 1

Google Plus Button

Posted: Fri Jan 11, 2013 4:37 pm
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.

Re: Google Plus Button

Posted: Fri Jan 11, 2013 4:53 pm
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

Re: Google Plus Button

Posted: Fri Jan 11, 2013 5:52 pm
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>

Re: Google Plus Button

Posted: Fri Jan 11, 2013 6:33 pm
by wbxpress
Thanks Chris. It's working great. :D