Monday, September 9, 2013

Blogger Blog Integrated With Advanced gplus comment System


A long day after , I have been came back to blogging. Today , I'm discussed an advanced gplus comment system for blogger. In this plugin use click jquery function to enable gplus comment system. 
        I had been discussed before 'New tabbed Social Share , subscribe and connect widget' for Blogger and finally decide to on user request to integrate this widget with gplus comment system.

gplus comment system


See this given below tutorial carefully and apply your Blogger Blog system step by step -

How does It Worked?



How to Add this widget on Blogger 
  • Go To Blogger Dashboard >Template >Edit HTML.
  • Now Search (CTRL + F) for this code: ]]></b:skin> 
  • Paste the below code just above ]]></b:skin> 

 /* dhi social share subscribe and connect widget css code----------------------------------------------- */.dhi_menu,.dhi_menu ul,.dhi_menu li,.dhi_menu a { margin: 0; padding: 0; border: none; outline: none;}.dhi_menu {  height: 40px; width: 304px; background: #b8b8bc; background: -webkit-linear-gradient(top, #b8b8bc 0%,#38383a 10%); background: -moz-linear-gradient(top, #b8b8bc 0%,#38383a 10%); background: -o-linear-gradient(top, #b8b8bc 0%,#38383a 10%); background: -ms-linear-gradient(top, #b8b8bc 0%,#38383a 10%); background: linear-gradient(top, #b8b8bc 0%,#38383a 10%); } .dhi_menu:hover {  height: 40px; width: 304px; background: #4c4e5a; background: -webkit-linear-gradient(top, #4c4e5a 0%,#2c2d33 10%); background: -moz-linear-gradient(top, #4c4e5a 0%,#2c2d33 10%); background: -o-linear-gradient(top, #4c4e5a 0%,#2c2d33 10%); background: -ms-linear-gradient(top, #4c4e5a 0%,#2c2d33 10%); background: linear-gradient(top, #4c4e5a 0%,#2c2d33 10%); }.dhi_menu li { list-style: none; float: left; display: block; height: 40px;}.dhi_menu li a {  display: block; padding: 0 14px; margin: 6.3px 0; line-height: 28px; text-decoration: none; border-left: 1px solid #393942; border-right: 1px solid #4f5058; font-family: Helvetica, Arial, sans-serif; font-weight: bold; font-size: 13px; color: #f3f3f3; text-shadow: 1px 1px 1px rgba(0,0,0,.6); -webkit-transition: color .2s ease-in-out; -moz-transition: color .2s ease-in-out; -o-transition: color .2s ease-in-out; -ms-transition: color .2s ease-in-out; transition: color .2s ease-in-out;}.dhi_menu li:first-child a { border-left: none; }.dhi_menu li:last-child a{ border-right: none; }.dhi_menu li:hover > a { color: #8fde62; }.dhi_menu ul { position: absolute; left: 0; opacity: 0; background: #1f2024; -webkit-border-radius: 0 0 5px 5px; -moz-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; -webkit-transition: opacity .25s ease .1s; -moz-transition: opacity .25s ease .1s; -o-transition: opacity .25s ease .1s; -ms-transition: opacity .25s ease .1s; transition: opacity .25s ease .1s;}.dhi_menu li:hover > ul { opacity: 1; }.dhi_menu ul li { height: 0; overflow: hidden; padding: 0; -webkit-transition: height .25s ease .1s; -moz-transition: height .25s ease .1s; -o-transition: height .25s ease .1s; -ms-transition: height .25s ease .1s; transition: height .25s ease .1s;}.dhi_menu li:hover > ul li { height: 36px; overflow: hidden; padding: 0;}.dhi_menu ul li a { width: 75px; padding: 4px 0 4px 40px; margin: 0; border: none; border-bottom: 1px solid #353539;}.dhi_menu ul li:last-child a { border: none; }.dhi_menu a.twitter { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihOzfl9stbhDVCKkdJ6v-TXAc5KoQwumZAjROEX8gFzYPT5t7lVHzgAfWupBppzk2k-wbu0SY028WOB53rkrS6fftuwCpiwCF0BSh0Y7_vK_rqOtYtI5vlmRQhvdrnHjTOvIFU5QM9IQE/s1600/03-twitter-20.png) no-repeat 6px center; background-color:#0ba6f7; }.dhi_menu a.comment { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWNxXk_kUEuS-ZtW9K49RqTmSy43TWx_svKepPgf5D4Th3jh00Giz3793Iq_kbuCvQtQLPZ6SX_6jxkEGJn0xENqXQM5dULMcxrEWCU7lc-_Nbo7DKeSGcWlCTR-5tlQ2ZOUm0sGhfnFA/s1600/bubble-24-20.png) no-repeat 6px center; background-color:#1950bf; }.dhi_menu a.share { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSV7rae-rHlPCKBwA-fu6QQyBTSU56SFiyhL3wZNFrgGKEyBqEGFq51K5liN4_9Uwq-JDNZHF1mLqAYVKaK5YDmwCB22Gnl4TwoG9dvM4kTx3Nsl-3oLZl6e6R-e5q9MxkiwjQk2tR6pY/s1600/06-facebook-20.png) no-repeat 6px center; background-color:#3b3c3c; }.dhi_menu a.plus { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKvP7Jw0lnWa4ReSfuYxzySRAvBNuJuWzq5jwJSFKmHpjx-8n_1SgC5daTb-ijV9giv4xNrZSE4jb8D3yWj6vkwPRXhNP16NlhNbTRNRlReau41ScVbU4ewVGUH0qP08WOBxASsyX3saw/s1600/40-google-plus-20.png) no-repeat 6px center; background-color:#dc311b; }.dhi_menu a.rss { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjIYMwliS-l_Ief0kb5buAVunXkBO7ucMvxqk14htC16TexecxjVjVkQvIoAD8A_u0CsZ_aRhhL5XVhO51DpIxny-7mREjt-GRWVsL3jsZjJ3rmI2hbgVy64KA4Eia7D1_q0oAT6uZl0o/s1600/60-rss-20.png) no-repeat 6px center; background-color:#dc311b; }.dhi_menu a.newsletter { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV8uwEtWIY108dtmn5pnWWFfSYkrU0jAP5JgFYHq3-57CxWvIZ1H9Qp8R2Rt1dcZLCGo36c6VrseQl47WMPZOci0v28zleQFNf6F1tkNbcMkjuz7fNcrwBOl2yWLPdfq6LNjue2SPjZAg/s1600/Black_Email.png) no-repeat 6px center; background-color:#3b3c3c; }.dhi_menu a.faq { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO1cc1K-pyGqG51Ysk7DvRtQjvc2t6nnPskPdtCFeizJW_WLt8_FlKyo0lX0bYeXxy1JWejECLrj52iJH-mJJ1FXDicVu1ThE44lhcESSqaM8lXKIJMekdDvWHGC1rQVNNomGK_73CKBc/s1600/question-faq-128.png) no-repeat 6px center; background-color:#1950bf; }.dhi_menu a.follow { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihOzfl9stbhDVCKkdJ6v-TXAc5KoQwumZAjROEX8gFzYPT5t7lVHzgAfWupBppzk2k-wbu0SY028WOB53rkrS6fftuwCpiwCF0BSh0Y7_vK_rqOtYtI5vlmRQhvdrnHjTOvIFU5QM9IQE/s1600/03-twitter-20.png) no-repeat 6px center; background-color:#0ba6f7; }.dhi_menu a.fanpage { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSV7rae-rHlPCKBwA-fu6QQyBTSU56SFiyhL3wZNFrgGKEyBqEGFq51K5liN4_9Uwq-JDNZHF1mLqAYVKaK5YDmwCB22Gnl4TwoG9dvM4kTx3Nsl-3oLZl6e6R-e5q9MxkiwjQk2tR6pY/s1600/06-facebook-20.png) no-repeat 6px center; background-color:#1950bf; }.dhi_menu a.youtube { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkLXx5ZqubN319ZF1FO4BrtyQe_A9LOdUNk6jX_TLz09Ku5-4gTRddHncmYmLq-V_PPsvP6im1CmNRZUTm9onP2gJDs97pQx9kX9-ByjNsc7ETt3mjaLBkEhs5dz32QppdkNHwsa5cO4g/s1600/18-youtube-20.png) no-repeat 6px center; background-color:#0b6fdf; }.dhi_menu a.google { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKvP7Jw0lnWa4ReSfuYxzySRAvBNuJuWzq5jwJSFKmHpjx-8n_1SgC5daTb-ijV9giv4xNrZSE4jb8D3yWj6vkwPRXhNP16NlhNbTRNRlReau41ScVbU4ewVGUH0qP08WOBxASsyX3saw/s1600/40-google-plus-20.png) no-repeat 6px center; background-color:#dc311b; }li a.cmtloaded {display: none !important;}
  • Now Search the following code: <div class='post-footer'> OR   <div class='post-footer-line post-footer-line-1'>
  • Just after   <div class='post-footer-line post-footer-line-1'> , copy and paste the below code :
 <b:if cond='data:blog.pageType == &quot;item&quot;'><!--social button--><!--dhi social share subscribe and connect widget code By Digital Hub Inc-->                        <ul class='dhi_menu'>                                                    <li>                            <a href='#'>                              share &#9660;                            </a>                            <ul>                              <li>                                <a class='twitter' data-via='blogsfunda' expr:href='&quot;http://twitter.com/home?status=&quot; + data:post.title + &quot; -- &quot; + data:post.url ' rel='nofollow' target='_blank' title='Tweet This!'>                                  twitter                                </a>                              </li>                              <li>                                <a class='share' expr:href='&quot;http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=&quot; + data:post.url + &quot;&amp;t=&quot; + data:post.title ' onclick='window.open(this.href,&apos;sharer&apos;,&apos;toolbar=0,status=0,width=626,height=436&apos;); return false;' rel='nofollow' target='_blank' title='Share this on Facebook'>                                  share                                </a>                              </li>                              <li>                                <a class='comment' href='#comments1' id='cmtbtn'>                                  comment                                </a>                              </li>                              <li>                                <a class='comment' href='#comments2' id='comments-gplus'>                                  plus                                </a>                              </li>
                            </ul>                          </li>                          <li>                            <a href=''>                              subscribe &#9660;                            </a>                            <ul>                              <li>                                <a class='rss' href='http://feeds.feedburner.com/blogsfunda' target='_blank'>                                  rss                                </a>                              </li>                              <li>                                <a class='newsletter' href='http://feedburner.google.com/fb/a/mailverify?uri=blogsfunda' target='_blank'>                                  newsletter                                </a>                              </li>                              <li>                                <a class='faq' href='#faq' target='_blank'>                                  faq                                </a>                              </li><li>                                <a class='plus' expr:href='&quot;https://plus.google.com/share?url=&quot; + data:post.url + &quot;&amp;imageurl=&quot;' rel='nofollow' target='_blank' title='Post on GoogleBuzz'>                                  plus                                </a>                              </li>                            </ul>                          </li>                          <li>                            <a href='#'>                              connect &#9660;                            </a>                            <ul>                              <li>                                <a class='follow' href='http://twitter.com/blogsfunda' target='_blank'>                                  follow                                </a>                              </li>                              <li>                                <a class='fanpage' href='http://facebook.com/blogsfunda' target='_blank'>                                  fanpage                                </a>                              </li>                              <li>                                <a class='youtube' href='https://www.youtube.com/user/Windows8Tech' target='_blank'>                                  youtube                                </a>                              </li>                              <li>                                <a class='google' href='https://plus.google.com/116441114801311321617/' target='_blank'>                                  google                                </a>                              </li>                            </ul>                          </li>                        </ul>                        <br/>  </b:if>
  • Now Search the following code: </body>
  • Just above it </body> , copy and paste the below code :
 <script type='text/javascript'>(function($) { $(&#39;#comments-gplus&#39;).click(function(){$(this).text(&#39;Loading...&#39;);$.getScript(&#39;https://apis.google.com/js/plusone.js&#39;, function() {$(&#39;#comments-gplus&#39;).addClass(&#39;cmtloaded&#39;);});$(this).unbind(&#39;click&#39;);});})(jQuery);</script>
  • Now Search the following code:   <b:includable id='nextprev'>
  • Just above it   <b:includable id='nextprev'> , copy and paste the below code :
 <div id='gcontainer'><div id='gcomments'/></div><script src='http://apis.google.com/js/plusone.js'/><script>gapi.comments.render(&#39;gcomments&#39;, {    href: window.location,    width: &#39;545&#39;,    first_party_property: &#39;BLOGGER&#39;,    view_type: &#39;FILTERED_POSTMOD&#39;});
$(&#39;#comments-gplus&#39;).click(function(){ // switch to google plus comments displaying $(&#39;#comments&#39;).css(&#39;display&#39;,&#39;none&#39;); $(&#39;#gcontainer&#39;).css(&#39;display&#39;,&#39;block&#39;); $(&#39;#comments-gplus&#39;).addClass(&#39;comment-on&#39;); $(&#39;#comments-gplus&#39;).attr(&#39;src&#39;,&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU1T4RkAkTaokpVUTia5sn0C6c90-iBGwP0x1lCbGKeddRUOo6HSPShNlfH_L7Z3CTRMXdXZAdQiI_SBEF6_2Y2m_AB66pYcllkm3TtouXyX3FqDqAXNv7my7Z97mHBwyn8FXZCQ3gJiCM/s50/plus_on.png&#39;);});
$(&#39;#comments-gplus&#39;).hover( // switch to gplus comments displaying function(){ if (!$(&#39;#comments-gplus&#39;).hasClass(&#39;comment-on&#39;)){ $(&#39;#comments-gplus&#39;).attr(&#39;src&#39;,&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU1T4RkAkTaokpVUTia5sn0C6c90-iBGwP0x1lCbGKeddRUOo6HSPShNlfH_L7Z3CTRMXdXZAdQiI_SBEF6_2Y2m_AB66pYcllkm3TtouXyX3FqDqAXNv7my7Z97mHBwyn8FXZCQ3gJiCM/s50/plus_on.png&#39;);}  },  function(){ if (!$(&#39;#comments-gplus&#39;).hasClass(&#39;comment-on&#39;)){ $(&#39;#comments-gplus&#39;).attr(&#39;src&#39;,&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFG0Wa-jwcsbf02NR6ZIjZqZJbHm7I63A8zytpD2T0RUF6Ic2sFXgpxumRHc44CILhi1gnarPD5ipcMHKEANBhIIOPRhrwnFbys2kMM_XgXIQPsvh61qodTb4YSI_zrfwMXsh7EvxTcXHO/s50/plus_off.png&#39;);}  });</script><style>#gcontainer { display: none;}#comments-gplus {}  #gcontainer {}</style>
  • Save the template.That's it:)

How to customize this widget 


1. If you want to use for comment moderation for blogger comment and disqus comment (Use for activate comment box).

<a class='comment' href='#comments1' id='cmtbtn'>comment</a>

2. Replace the feedburner id : blogsfunda

3. Replace the twitter follow id :blogsfunda

4. Replace the facebook page id : blogsfunda

5. Replace the google plus page id : 116441114801311321617
6. Replace the youtube page id : Windows8Tech


1 comments:

  1. thanks for a awesome article it was really impressing . i successfully add google plus comments into my blogger website
    but i facing a error my blog website amp supporting when i add google plus comment then i lose amp support . can you check why i facing this error
    my website is http://enclava1.blogspot.com

    ReplyDelete

Sample Text

Sample text

Sample Text

Navigation Widget Generator

Powered by Blogger.

Ads 468x60px

Social Icons

Icon Icon Icon Icon Follow Me on Pinterest

spice up your blog

Featured Posts

© 2011 Spice Up Your Blog, AllRightsReserved.

Designed by ScreenWritersArena