help with 'Google +1' button !!??

hello Im having issues trying to get the  Google +1 to work / show on my site!!

can someone  please explain whereexactlyIplace  the following codes!?

 

<!-- Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

<!-- Place this tag where you want the +1 button to render -->
<g:plusone></g:plusone>

 

do I put the first code into one of the template files and the second in a block on pages ??

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 13 Jul 2011

Hello Detective,

Go to >>  /templates/base/_header.html

Original code

____________________

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=__page_charset__" />
    <title>__page_header__</title>
    <base href="<bx_url_root />" />   
    __page_description__
    __page_keywords__
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <bx_include_css />
    <bx_include_js />
    __dol_images__
    __dol_lang__
    __dol_options__
    <script type="text/javascript" language="javascript">
        var site_url = '<bx_url_root />';
        var aUserInfoTimers = new Array();
        $(document).ready( function() {
            $( 'div.RSSAggrCont' ).dolRSSFeed();
        } );
    </script>
    <!--[if lt IE 7.]>
    <script defer type="text/javascript" src="inc/js/pngfix.js"></script>
    <![endif]-->
    __extra_js__
    <bx_injection:injection_head />

    <script type="text/javascript">
        var oBxUserStatus = new BxUserStatus();
        oBxUserStatus.userStatusInit('<bx_url_root />', __is_profile_page__);
    </script>
</head>
__flush_header__
<body <bx_injection:injection_body /> >
    <bx_injection:injection_header />
    <div id="notification_window" class="notifi_window"></div>
    <div id="FloatDesc" style="position:absolute;display:none;z-index:100;"></div>

________________________

New code

________________________

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=__page_charset__" />
    <title>__page_header__</title>
    <base href="<bx_url_root />" />   
    __page_description__
    __page_keywords__
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <bx_include_css />
    <bx_include_js />
    __dol_images__
    __dol_lang__
    __dol_options__
    <script type="text/javascript" language="javascript">
        var site_url = '<bx_url_root />';
        var aUserInfoTimers = new Array();
        $(document).ready( function() {
            $( 'div.RSSAggrCont' ).dolRSSFeed();
        } );
    </script>
    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
    <!--[if lt IE 7.]>
    <script defer type="text/javascript" src="inc/js/pngfix.js"></script>
    <![endif]-->
    __extra_js__
    <bx_injection:injection_head />

    <script type="text/javascript">
        var oBxUserStatus = new BxUserStatus();
        oBxUserStatus.userStatusInit('<bx_url_root />', __is_profile_page__);
    </script>
</head>
__flush_header__
<body <bx_injection:injection_body /> >
    <bx_injection:injection_header />
    <div id="notification_window" class="notifi_window"></div>
    <div id="FloatDesc" style="position:absolute;display:none;z-index:100;"></div>

________________________

than you can create a ne wblock and add the code

<!-- Place this tag where you want the +1 button to render -->
<g:plusone></g:plusone>


Post Reply - if you going to help - No for - bla bla bla bla
Quote · 13 Jul 2011

the _header.html was blank so I added your code... I then added second code to page block and it shows nothing ??

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 13 Jul 2011

?

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 13 Jul 2011

 I also have a problem where when I try and remove your code it messes is my site...!

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 13 Jul 2011

 

the _header.html was blank so I added your code... I then added second code to page block and it shows nothing ??

 

Did you clear your site cache after adding the code to the html file.  tested and working fine for me.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 13 Jul 2011

 

the _header.html was blank so I added your code... I then added second code to page block and it shows nothing ??

 by default the file _header.html have the original code I dont know why your file is empty

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 13 Jul 2011

 why would page block for be showing blank on page ??

 

 

 

the _header.html was blank so I added your code... I then added second code to page block and it shows nothing ??

 by default the file _header.html have the original code I dont know why your file is empty

 

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 13 Jul 2011

 I noticed when I add the second part of code to HTML Source Editor in page block and save the code disapears !?

 

 

the _header.html was blank so I added your code... I then added second code to page block and it shows nothing ??

 by default the file _header.html have the original code I dont know why your file is empty

 

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 13 Jul 2011

I know this sounds 100% noob, but when editing a file in cPanel should I select the file and then click:

  • Edit (button the the menu bar)
  • Code Editor (button on the menu bar)
  • HTML Editor (button on the menu bar)

The reason I ask is because with both Edit and Code Editor I only see blank pages (even after clicking Use Text Editor). 

 

I can view and edit the HTML code in HTML Editor, but when I placed the Google + code just before the end of the body all of my website format was lost.


I'd just like to understand this a little bit better.

Quote · 14 Jul 2011

It's best to use the code editor.

However. You stated it was not working. So i would try a different browser. All of the editors should work.

I find the best way is to edit locally on your own computer then upload the edited file via FTP. If done this way you have a local copy of your websites files that can act as a backup if something should go wrong on the server. I also prefer this method as i believe it is easier. I find working with files directly in cpanal to slow.

https://www.deanbassett.com
Quote · 14 Jul 2011

 Ok Im still ahving issues making this work after numerious attempts !

Would Jay, Deano or UFO mind help me getthis working on my site if I provide access ?

I really appreciate some help with this

 

It's best to use the code editor.

However. You stated it was not working. So i would try a different browser. All of the editors should work.

I find the best way is to edit locally on your own computer then upload the edited file via FTP. If done this way you have a local copy of your websites files that can act as a backup if something should go wrong on the server. I also prefer this method as i believe it is easier. I find working with files directly in cpanal to slow.

 

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 14 Jul 2011

I have tried this several times now and for some reason the block I placed second code into shows as empty!

then when I check block html      <g:plusone></g:plusone>   has gone missing !!

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 15 Jul 2011

Yeah dolphin is taking out the google tags when adding a block...  Went into his database and added it that way by hand.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 16 Jul 2011

Thanks Jay your awesome bro ?

 

Yeah dolphin is taking out the google tags when adding a block...  Went into his database and added it that way by hand.

 

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 17 Jul 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.