04 June 2016

Membuat Material Design Threaded Comment di Blog

Membuat Material Design Threaded Comment di Blog
04 June 2016
Material Design Threaded Comment


Halo sobat Blanter, kembali lagi blog ini membagikan tutorial tentang Material Design, karena akhir-akhir ini saya sedang mempelajari material design, maka dari itu saya membagikan bagian-bagian yang sudah saya buat.

Tutorial kali ini berupa threaded comment atau style komentar blog. Style komentar material design ini akan membuat tampilan komentar pada blog sobat menjadi lebih fresh dan clean karena pada style komentar ini saya menyembunyikan Tanggal komentar dan Hapus komentar, untuk menampilkannya sobat hanya perlu mengklik icon elipsis / icon 3 titik di samping kanan, lalu klik "More Settings".

Mini Menu in Comments


Untuk komentar admin berada pada samping kanan + icon author, sedangkan untuk komentator lainnya berada pada samping kiri.

UPDATE: Twitter Emoji diganti menjadi Google Emoji. 😄

Cara Membuat Material Design Threaded Comment di Blog


Masuk ke Blogger > Template > Edit HTML

Langkah pertama masukan CSS di bawah ini tepat di atas kode ]]></b:skin> atau </style> sobat juga bisa menggunakan Tag Kondisional di bawah ini :

<b:if cond='data:blog.pageType != &quot;index&quot;'>
<style type='text/css'>
KODE CSS DISINI
</style>
</b:if>

Tag Kondisional letakan di bawah kode ]]></b:skin>

Kode CSS

/* Material Design Comments */
#comments{line-height:1.4em;margin:20px 0 0;position:relative;background:#fff;border:1px solid #ddd;padding:0 20px 20px 20px;}
#comments h3{float:left;font-size:15px;line-height:50px;text-transform:capitalize;font-weight:normal;font-family:'Roboto',Josefin Sans, Arial;color:#fff}#comments h3 i{padding-right:10px}#comments li{padding:0}
a.click-comment{float:right;font-weight:bold;text-transform:uppercase;position:absolute;top:20px;right:20px;display:inline-block;background:#22A65A;border:2px solid #22A65A;padding:8px 10px;font-size:13px;color:#fff}
a.click-comment:hover{background:#fff;color:#22A65A}
.comment-body-author{background:#0b433f;color:#008000;border:1px dotted #008000;margin:0;padding:0 0 0 10px;}
.comment_share{color:#999;cursor: pointer;font-size:10px;line-height:1.5em;max-width:100%;font-weight:normal;padding-left:5px;}
#comment_rep a:hover {text-decoration:none;color:#464646!important;}
.comment_avatar{height:50px;width:50px;margin-top:15px;background:#eee url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdboNv5RNU0yLyQnoOCHFYaYfXQXTeoN7c8oVqQELWVstJ0mWOoF_Xy924W6YZRMp86X1nyJbFvqC7C42WcJSHXjaYIbH0498LySpdk4Rd3IVBC65jSKPxAqjwIVnzT6W-2kxNVOdSYf8/w50-h50/noimage.png) no-repeat;float:left;margin-right:15px;overflow:hidden;padding:0;border-radius:99em}
.comment_admin .comment_name:after {content:"";width:0;height:0;position:absolute;top:5px;right:0;border-width:5px;border-style:solid;border-color:#fff transparent transparent transparent;display:block;}
.comment_name{color:#4a5764;font-size:11px;font-weight:normal;max-width:100%;text-decoration:none;margin:5px 0 0;text-transform:none; font-weight:normal;position:relative}.comment-menu {float: right;list-style:none;width:0;height:0} .comment_name a {font-size:11px;color:#666;text-decoration:none;font-family:'Roboto', Sans-Serif;font-weight:400}
.comment_name a:hover {text-decoration:underline}
.comment_body p{font-size:110%;line-height:1.4em;margin:0;padding:0 0 10px}
.comment_body{padding:20px 20px 10px;position:relative;resize:none;min-width:3rem;max-width:35rem;background:#fff;color:#444;font-size:13px;border:1px solid #ddd;box-shadow:0 1px 1px 0 rgba(0, 0, 0, 0.07),0 1px 1px 0 rgba(0, 0, 0, 0.06);display:inline-block}
.comment_body:after {content:"";width:0;height:0;position:absolute;top:0;right:100%;border-width:7px;border-style:solid;border-color:#fff #fff transparent transparent;display:block}
.comment_body:before {content:"";width:0;height:0;position:absolute;top:-1px;left:-16px;border-width:8px;border-style:solid;border-color:#ddd #ddd transparent transparent;display:block}
.no-comment {color:#fff;background:#FF0000;padding:10px;margin-top:10px;text-align:center;}.comment_intime {float:left;margin:10px 0;position:absolute;color:#aaa;bottom:0;left:5px}
#comment_box{padding:0;background:none;position:relative;margin:20px 0}
.comment-delete img{float:right;padding:7px;margin-left:5px;width:10px;margin-top:1px}
.comment_date{color:#666;font-size:11px;line-height:25px;cursor:pointer;float:right} 
#comments .separate {color:#fff;font-size:15px;line-height:40px;padding-left:5px;padding-right:5px;}#comments .author-mark {background:#d2d2d2; color:white;border-radius:0;padding:2px 6px 2px 6px;font-size:15px;line-height:15px;}.comment-share{display:inline;}.comment-share li {display:inline;}.comment-share li.button a {background:#546472;color:white;padding:0 5px 2px 5px;border-radius:0;display:none;}.comment-share li.button:hover a {background:#272f37;}#comment_rep {margin-top:-27px;float:right;}.comment_child .comment_wrap {padding-left:40px}
.comment_reply a{cursor:pointer;font-size:11px;line-height: 1.5em;font-weight: 400;padding:2px 14px;float:left;list-style:none;margin-right:20px;color:#aaa}.comment_reply a:hover{color:#000}
.unneeded-paging-control{display:none}.comment-form {max-width:100%!important;margin-top:-15px !important}.comment_reply_form .comment-form {width:100%;}.comment_youtube{max-width:100%!important;width:400px;height:225px;display:block; padding-top:10px;padding-bottom:10px;}#respond {overflow:hidden;padding-left:10px;clear:both;}.comment_avatar * {max-width:100%!important;display:block;max-height:100%!important;width:50px!important;height:50px!important;margin-right:15px}.comment_child .comment_avatar, .comment_child .comment_avatar * {float:left;margin-right:15px;border-radius:100%}.comment_form a{ color:#2f6986;text-decoration:none}.comment_form a:hover {color:#2f6986;text-decoration:underline}.comment_author_flag {display:none}
#showkomentarmenu{font-size:20px;padding:10px 20px;border-radius:3px;color:#fff;float:right;margin:-8px -15px 0 0}
#komentarmenu{font-family:'Roboto',Arial;visibility:hidden;position:absolute;background:#fff;text-transform:none!important;list-style:none;right:35px;top:45px;padding:0;width:0;height:0;transition:all .5s cubic-bezier(0.07, 0.68, 0.35, 1.04);z-index:9;overflow:hidden;box-shadow:0 5px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)}
#komentarmenu li{width:100%}
#komentarmenu li a{padding:9px 15px;display:inline-block;width:100%;font-weight:400;color:#666!important;font-size:14px!important}
#komentarmenu li a:hover{background:#e1e1e1}
#komentarmenu.shows{visibility:visible;width:200px;height:79px}
.bnm.shows{visibility:visible}
.comment_admin .comment_author_flag{display:inline;background:none;font-size:11px;padding:0;margin-left:4px;color:#555;text-transform:uppercase}
.menu-komentar{background:#22A65A;overflow:hidden;margin-left:-20px;padding:0 20px;height:50px;line-height:50px;margin-right:-20px;border-bottom:2px solid #168947;box-shadow:0 2px 2px 0 rgba(0,0,0,0.16),0 2px 2px 0 rgba(0,0,0,0.12)}.bnm{visibility:hidden}.comment_admin .comment_body:before{border-color:#ddd transparent transparent #ddd;right:-16px;left:initial!important}.comment_admin .comment_body:after{border-color:#fff transparent transparent #fff;left:100%}.comment_admin .comment_body{margin-left:0;margin-right:20px;float:right}.comment_admin .comment_avatar{float:right}.comment_admin .comment_date{float:left}.comment_admin .comment-delete img{float:left;margin:3px 0 0}.comment_admin .namamu{float:right;padding-right:15px}.comment_author_flag .fa{float:right;padding:4px}.comment_admin .comment_intime{float:right;right:5px;left:initial!important}
#comment-editor{width:100% !important;margin-bottom:20px;position:relative;border:none}
.comment-form{max-width:100%!important}
.comment_arrow{display:block;position:relative;margin:0;padding:0}
.comment_emo_list .item{float:left;width:40px;text-align:center;height:40px;margin:10px 10px 0 0}
.comment_emo_list span{display:block;font-weight:bold;font-size:11px;letter-spacing:1px}
.comment_youtube {max-width:100%!important;width:400px;height:225px;display:block;margin:auto}
.comment_img {max-width:100%!important}
.deleted-comment {background:#fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUY-rZw7r0S7ZgPqeALPnTXpfzK6lOBGsFuzR3QfynxlpWoaBZn-1aVdoBv8oL9i52MKzdcC1M8LDKKZd83NjCmLJBNuO5x9Dk6G4R0fbeozVEshaRfCF_iy-twdpyrQf1LWrfa55AkM8/s1600/tempat-sampah.png) no-repeat 2% 50%;color:#ccc;line-height: 22px;padding:8px 15px 8px 45px;margin:5px 0;display:block;border:1px solid #ddd;position:relative;font-size:13px}
.comment-form p{position:relative;background:#fff;color:#333;margin-top:50px;font-size:14px;font-family:'Open Sans',Helvetica,Arial,sans-serif;line-height:1.5em;margin-bottom:20px;padding:15px;border:1px solid #ddd;transition:all .3s ease-out;}
.comment-form p:after, .comment-form p:before{top:100%;left:9%;border:solid transparent;
content:" ";height:0;width:0;position:absolute;pointer-events:none}
.comment-form p:after{border-color:rgba(68,68,68,0);border-top-color:#fff;border-width:12px;margin-left:-12px}
.comment-form p:before{border-color:rgba(221,221,221,0);border-top-color:#ddd;border-width:13px;margin-left:-13px;transition:all .3s ease-out}
img.comment_emo{margin:0;padding:0;vertical-align:middle}
#comments .pencet{color:#fff;margin-right:10px;padding:8px 15px;background-color:#2DCC70;font-size:12px;border-radius:3px;font-weight:400;text-transform:none;text-decoration:none;outline:none;font-family:'Roboto', Arial;cursor:pointer;box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)}#comments .pencet:hover{text-decoration:none;background-color:#22A65A}.comment_emo_list{display:none;clear:both;width:100%}img.comment_emo{margin:0;padding:0;vertical-align:middle;width:28px;height:28px}#postCommentSubmit {padding:10px!important}#allHolder{border:none!important}.small-button {color:#fff;margin-right:10px;padding:0;background:none;font-size:12px;font-weight:400;text-transform:none;transition:all .3s ease-in}.small-button a{color:#fff;margin-right:10px;padding:4px 15px;background-color:#009a5d;font-size:12px;font-weight:400;text-transform:none;border-radius:4px;text-decoration:none;outline:none;box-shadow:inset 0px 1px 0px rgba(255,255,255,0.3), 0px 1px 2px #3d4852;text-shadow:0px -1px 0px rgba(0,0,0,0.3);transition:all .3s ease-in}.small-button:hover {background:none;color:#fff;text-decoration:none}.small-button a:hover {background-color:#990000;color:#fff;text-decoration:none}
@media screen and (max-width:684px){
.comment_child .comment_wrap{padding-left:0!important}.comment_body{width:70%!important}.comment_admin .comment_body{width:60%!important}}
@media screen and (max-width:480px){
.comment_body{width:55%!important}.comment_admin .comment_body{width:50%!important}}

Jangan lupa untuk menghapus CSS komentar lama yang terdapat pada blog sobat.

Selanjutnya Cari HTML berikut (gunakan Ctrl + F) : <b:includable id='comments' var='post'> atau seperti kode di bawah:

<b:includable id='comments' var='post'>...</b:includable>


Hapus lalu ganti dengan HTML di bawah ini :

<b:includable id='comments' var='post'>
<div class='comments' id='comments'>
<a name='comments'/>
<div class='menu-komentar'>
<h3>
  <i class='fa fa-comments'/> <b:if cond='data:post.numComments == 1'>
        1 <data:commentLabel/>:
      <b:else/>
        <data:post.numComments/> <data:commentLabelPlural/>:
      </b:if>
    </h3>
<a class='ripple' href='javascript:;' id='showkomentarmenu'><i class='fa fa-ellipsis-v'/></a>
</div>
<div id='komentarmenu'>
  <li><a class='waves-effect' href='#comment-form' title='Add Comments'>Add Comments</a></li>
  <li><a class='showmore waves-effect' href='javascript:;' title='More Settings'>More Settings</a></li>
</div>
<b:if cond='data:post.allowComments'>           
         <b:if cond='data:post.commentPagingRequired'>
          <span class='paging-control-container'>
           <a expr:class='data:post.oldLinkClass' expr:href='data:post.oldestLinkUrl'><data:post.oldestLinkText/></a>
           &#160;
           <a expr:class='data:post.oldLinkClass' expr:href='data:post.olderLinkUrl'><data:post.olderLinkText/></a>
           &#160;
           <data:post.commentRangeText/>
           &#160;
           <a expr:class='data:post.newLinkClass' expr:href='data:post.newerLinkUrl'><data:post.newerLinkText/></a>
           &#160;
           <a expr:class='data:post.newLinkClass' expr:href='data:post.newestLinkUrl'><data:post.newestLinkText/></a>
          </span>
         </b:if>
                        
         <div class='clear'/>
         <div id='comment_block'>
          <b:loop values='data:post.comments' var='comment'>
           <div data-level='0' expr:class='data:comment.adminClass' expr:id='data:comment.anchorName'> 
            <b:if cond='data:post.adminClass == data:comment.adminClass'>
             &lt;div class=&#39;comment_inner comment_admin&#39;&gt;
            <b:else/>
             &lt;div class=&#39;comment_inner&#39;&gt;
            </b:if>
 <b:if cond='data:comment.isDeleted'>
  <b:else/>
<div id='comment_box'>
             <div class='comment_header'>
             <div class='comment_avatar'>
      <img alt='avatar' expr:src='data:comment.authorAvatarSrc' expr:title='data:comment.author'/>
              </div>
                    
             </div> 
              <div class='comment_service'>
  <div class='comment_name'>
               <b:if cond='data:comment.authorUrl'>
                <a class='namamu' expr:href='data:comment.authorUrl' rel='nofollow' target='_blank'><data:comment.author/></a>
               <b:else/>
                <data:comment.author/>
               </b:if> 
               <b:if cond='data:comment.author == data:post.author'>
                 <span class='comment_author_flag'><i class='fa fa-user'/></span>
               </b:if> 
</div>
 </div>
             <div class='comment_body'>
              <span class='comment_arrow'/>
               <p><data:comment.body/></p>
<span class='bnm'>
<a class='comment-delete' expr:href='&quot;http://www.blogger.com/delete-comment.g?blogID=&quot; + data:blog.blogId + &quot;&amp;amp;postID=&quot; + data:comment.id' expr:title='data:top.deleteCommentMsg'>
<img alt='delete' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgT7iiZ1ItXL2YdI1zJESUwjQ9QcKAlOfmBbeh9XeZ4MqBnejSfXKQB-zuJ4EXFc50vpmWYHuRk1WDAdGauo8UDF9E696WdSIgyuny6HFJ3CDXA20V5f7ApkT7H4yWP99j6i6GWnGakIU/s1600/delete4.png' title='Hapus Komentar'/>
</a>
<a expr:href='data:comment.url' rel='nofollow' title='permalink'><span class='comment_date'><data:comment.timestamp/></span></a>
  </span> 
 <div class='comment_intime'>
<div class='comment_reply'>
  <a class='ripple' expr:href='&quot;#r_&quot;+data:comment.anchorName' expr:id='&quot;r&quot;+data:comment.anchorName' onclick='javascript:Display_Reply_Form(this)'>Balas</a></div> 
               </div>
<div class='clear'/>                                                                                        
             </div>
<div class='clear'/>
</div>
</b:if>
<b:if cond='data:comment.isDeleted'>
  <span class='deleted-comment'>
    <data:comment.body/>
  </span>
</b:if>  
              <div class='clear'/>
            &lt;/div&gt;
            <div class='clear'/>
            
            <div class='comment_child'/>
            <div class='comment_reply_form' expr:id='&quot;r_f_&quot;+data:comment.anchorName'/>               
           </div>
          </b:loop>               
         </div>     
         <div class='clear'/>
         <b:if cond='data:post.commentPagingRequired'>
          <span class='paging-control-container'>
           <a expr:class='data:post.oldLinkClass' expr:href='data:post.oldestLinkUrl'><data:post.oldestLinkText/></a>
           &#160;
           <a expr:class='data:post.oldLinkClass' expr:href='data:post.olderLinkUrl'><data:post.olderLinkText/></a>
           &#160;
           <data:post.commentRangeText/>
           &#160;
           <a expr:class='data:post.newLinkClass' expr:href='data:post.newerLinkUrl'><data:post.newerLinkText/></a>
           &#160;
           <a expr:class='data:post.newLinkClass' expr:href='data:post.newestLinkUrl'><data:post.newestLinkText/></a>
          </span>
         </b:if>
         <div class='clear'/>
         <div class='comment_form'>          
          
          <b:if cond='data:post.embedCommentForm'>
           <b:if cond='data:post.allowNewComments'>
                                                           
            <b:include data='post' name='threaded-comment-form'/>
           <b:else/>
             <span class='no-comment'><data:post.noNewCommentsText/></span>
           </b:if>
          <b:else/>
           <b:if cond='data:post.allowComments'>
            <a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:postCommentMsg/></a>
           </b:if>
          </b:if>
         </div>
        </b:if>
</div>    
       <script type='text/javascript'>
       //<![CDATA[
       if (typeof(jQuery) == 'undefined') {
 //output the script (load it from google api)
 document.write("<scr" + "ipt type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"></scr" + "ipt>");
}
       //]]>
       </script>
       
       <script async='async' expr:src='data:post.commentSrc' type='text/javascript'/>
       <script type='text/javascript'>
        
         <b:if cond='data:post.numComments != 0'>
         var Items = <data:post.commentJso/>;
         var Msgs = <data:post.commentMsgs/>;
         var Config = <data:post.commentConfig/>;
        <b:else/>
         var Items = {};
         var Msgs = {};
         var Config = {&#39;maxThreadDepth&#39;:&#39;0&#39;};
        </b:if>
       //<![CDATA[
       //Global setting
        Config.maxThreadDepth = 5;//How threaded level that you want
        Display_Emo = true;//Display emoticon or not? set "false" to no display
        Replace_Youtube_Link = true;//Auto replace youtube link to iframe embedded, choose "false" to disable
        Replace_Image_Link = true;//Auto replace an image link  choose "false" to disable.
                                Replace_Force_Tag = true;//Auto replace an virtual tag example: [pre] to <pre>, and [/pre] </pre>, If user input wrong , your layout will be gone. Then becare ful when enable this trap
        Replace_Image_Ext = ['JPG', 'GIF', 'PNG', 'BMP'];//(support: jpg, gif, png, bmp),only effect when Replace_Image_Link=true
        
        //Config emoticons declare
Emo_List = [
':)'   ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVWxe2CEndx-N2I6GfY8B8vCvlhFZTU8myY0OFLM2Y1fxJqOSUVWzpIcdidIk1nHOIf2KEN3MUs4GiiMYUghFE4CyB5LKGUyFoPI8_PIew7fna6eaAFkN8dx00ffMdia-eh6wyxJTfA0sZ/h120/1.png',
':('   ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3K-c3xpnovKV1fcRZLGXuEen61yBpsc9GqYd5WKn2_1hl5-mZ3oPw-GLhOinPMftQL1hyhdigrDqv-wNexHmF1qbzMedNAsq8kvgCjsgfuz44IaV5yCq4vTCJohv4xQGlChAQFlKj1yqw/h120/2.png',
'hihi'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-rHaEn_LmcTzXDU6iP3rNka-2NejfrcxdJoUE18BoXiY6S23bmPcXiheifpRQ2vWkqKEwslAxuGBk_U_nAmU5aeYuMvmOQdlyGKfWWjburqRx31OBphqfAF1QBO3E0iYKG2rk5PlNVveQ/h120/3.png',
':-)'   ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9fQCHzzN1pr8t9NoekQHresNA6NCJVmMNeetdUKseQVOzICZOaDXDeCduSGHWHQIWqb2I2h_SoLsv7sIdkpc8OKJwPZMUpY_W4tPrRM0NwHLreFI_BYlnxOM1AZTChbQUjEdncKXnLJK3/h120/4.png',
':D'   ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFGXb-mUWb1YtU_oVklOSSD1x7nfewhoh7pDlUp0WLrueVG6uP9itECmvlD5yrsBqRms004WnksNhyS4k9bgsK4BuEyKhvnZAcLggiSxXAQL9csUgLytNO8wp0bT0e1A9J6AjCSTTXUD8a/h120/5.png',
'=D'   ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyjkCo6kQISFEWHgM4uakcqgbp_BRm9hje1ATh_sca2Yk3nHrk36tBooUrUqPn3qGNY1VwtX1LbQEagm1bWV5-oMA_TjFdAHE9XtnS2naZQU7xBvwJ46IjKJgjeQiJ7Qgkcmi6VjKVNQ2O/h120/6.png',
':-d'   ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzDStOiA5-kP4jSErTVFUT1L4tWv5uot6wPcyQc1WAgJB2-1OnAZBSfnffC6FoNAkYK3F5zbrQWhp34A6-67cohjeJLGG3KvdOaLC3QKwN6G-J53mF6hamLkdc_maf8bS8fTiySJsCukCW/h120/7.png',
';('   ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4C3E5aH63C3BpO6jLjdJ-DOdnuu-d7pStMeuJ20c7CXUWn9ophXaFwWZ38ycAvjBrkQkXrd3zHOSwpNj-sbgekQSWoNEYFKAQ-fYnro03-aHFwwnSqyS5yKYjI5pgXgF2ZpvmAFwrhSJU/h120/8.png',
';-('   ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYrw4v2twEBgt080DKWYoY_qtmhbyT9V_GtzJl5jW4X1oZr7jyp8cmZqjChYoU_4SR_6WEb1bp5eq9RBYveQEXRxWZcXzWRASCm1R45mBAATBl4Y3QxJ0Y0Cli2muVB81LEFblwXmPz2ei/h120/9.png',
'@-)'   ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU__qOlTwHc1KZ77s0QJNhqqD-o3u4B6Bgx-EFWknad36eKsadVmQp3WE-CMbhdBssNtnVu8I1JPNkl7eVvzypYXYiY3WDfKwHygDP5Lyza1paDmkhfUiFi3AD3xvC5Vg7lKwoAuZXem0i/h120/10.png',
':P'   ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAuAzJCgVZ_8K-Im_e5dbpyYk-OaddGV8Wue-6b5VtOqNxr6vLcapAWK13PrNUOLZJqzxawLmdx3gHAPzNMA8Pe3XeNJnjo6PRBTTsdo1ZRGkU_FLxeo3Ef65cFKojyacSkfmUP2ViIi1R/h120/11.png',
':o' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKJQhz-ObvsgU7trzZuKiZKY7OzJ9mXJwzQMRsJM0wTI2rQPGNms_fcK2ClgCTlqT6KMie5-woyftjuN4ly2GtPqKkcXh0jK3gKkngRdxG8gU43HctZHssT1ZomLzUTFjI4p8i0B4R7Cbg/h120/12.png',     
'-_-'   ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8r98LNXD4cl4W6r5IHjjTHW6sdLwZUG5fi5qp_1_cMfySChuNh5y6PKDYnhNZ28PcXfcoyN5z99n6CIHUzOwlaaAsQkIm91GS7x1Mtuz9FueS4u5EFBTLmCGTAwOi_GsnMxGJ5jBDeM8E/h120/13.png',     
'(o)' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3G1HmlE48jrnfOlnvwVjgNzOcwcFEpwG2UBEonragRijxMtrh5B62wMMxJpl04pCAbOMEd3nSCE6BM8uxJBFsg-d4854YeUXGkobk6sTcOPprCLgyFHtvKUXVl0IIkGWukkTT3jRtH3pC/h120/14.png',     
'[-(' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5VNKJFj6BQryrKnWTlOiWwqCFEj3P80WfqMjMVF1_Fpp4Fn2MVopaPb3UZuXvZiLnciJEDurVOj6wcPQtL2uUK1E4blUv3H7bFTUZxZ-rN2NV2HafxWVwETJpxIcZdJ5upkYAmAdiP5T6/h120/15.png',     
':-?' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5_fhSe1jQOEvLQUqVcVm2Ok6XgdNHJc44CzMA46Ny7TbtIsxyfCSlBm8QEqbF01QZKDQ5-7vaeD-P8TbqwiKpGRwwUJ7tmDO4m0v1AJ2FGlQ_HR9uELbFkod1uo-FnWSGv4sr0_fiMBH2/h120/16.png', 
'(p)' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-pcZIk1v7B4Wu2vZ-QFbKMrItDlDA98b37M4PpmzKQgtEiatQMqd9u5Fw6NSZiRohYmG3gs6hqYTDYSIQnxfSHETWkCYujBlUSijQioAd6_-LPTi6BGgTCc_oZoRjBFxEFNKhHvhn0HSv/h120/17.png', 
':-s' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7kW2qcMzdb0gAO0Ka9W-EK8ummnfz_zMdMxOB_E5ScZ0oA5HxzYHbKKi58g5tDrhozvJuO3DA3AKW_v8s2UN8HIUIRhpr_57XPaWkIJbtG-9CRoqAjC0DsFnRJ5QvLgkI_VtkCnoa5qxp/h120/18.png',
'(m)' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJs5p3Pu22eTyUfxSg3V2uo-AVWdp5dp2_Byqk7qdR4HEebOXOKaFnqehpyaPuTmbioKUwC2xLMJEjfb0A2XVAR5kKVhtTi15AEtmNJ-MrVS-2B11qU0jIE_LoM7CKsDwPAgVxx5SHVYxn/h120/19.png',
'8-)' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzui_LYoTmbRNk1cUjgSNKE2PWdZ23KFm41kJBl7yr5Bkk79w_T_-VpmH5lisa00m_YETNUb8KmRillE2RPRmA2FvgD1FVhqaU4aFVq__FOcABhfn29IDwGgfOtLyNj86V0RRYTUiVAELr/h120/20.png',
':-t' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDaUIPRePdDKrA6xANfB4Lax8mE8C8HbE7Dozay4jpLvaStrA4RVsTKXR3tPHyq0boR_rEeZceeFekzxv5kzX_HGM7CfUc9hbLiHEUSoWmxjC_A5Caa4RVM_MX0TCI1e46fyl419M0NgGO/h120/21.png',
':-b' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirtwEdmT4onuM4Bvrbggv3FAeQeAZQSC3bRQFZuCVsm98BOVs9J7cxYb3rIJOhmmModI18r7FeYnttEWpyWpbKYR2WBU-ak3QlwT-8FBROsyoJs05cOI5qUpgLQVyyfKAJv2vdl1b7O2Z7/h120/22.png',
'b-(' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKFILy0VrmMBEfqvPP8s35GfI5Cmr7bW71v54VCs0UbD36PhKBiJ2ciV8BgLXFyvH6KfTqXVzjtW4hhF_7NXNAcg7BFPHxaNe5rxuHZpCB_gRTLZh85Lj1h6kVfwwVKLDXaRQZPw4Xm4dG/h120/23.png',
':-#' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS4FHLVYxLdH-BQSFuxznOmdvM5i2qPd4WGV8fr7s-inBIrq5HqjTUzEtV2h-HqOWhOCEE4BFGpwkt4275fFQtDRlSmDcf69cu0rr0LxeddFwOto1KaBZlERRX_p6sjHI5FGAqqaf5Avrc/h120/24.png',
'=p~' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXFeFGgkY7kFCmPQQNKk8zplaCugfhVXKFRnQVYO0RTCO6ZENGKBflTODVcWJjgyLzPaacSGjRVetvs1jDyoWEFoQhYy7P3auY2ONfg4UIUVziedL6ArstBJs_msXdLKfpG-VzMYpje6oP/h120/25.png',
'$-)' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyez9DdXrbwIUwkYMGhDt1kJo07y2k80gEJ2M1SkgpqMsQx2coCSGdcTkiPXu_4Un9ozyPHNMwfvCyh5x2Has1jeZYi__w2V6ipnFEUlNE-87tVdUOwU5WTL0daNojk421yqqvXtRP4Mkr/h120/26.png',
'(y)' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7wfUqVa2tEkJb9-LdLRDFUhw-ubLTznN057ZRhjrwAoWOdw38jN1griePhHKxw1CIRHUt-YHNVlulnuHVb5RrZURyPnwIaASXoadCO_5NByIpOLcKTkgJTpdmhEAWCy5phlucUNDUdPjw/h120/27.png',
'(f)' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRKrdqgi7sfKGVnZuchrZF70eqLZr-G41u0JFwE6IrqEVQ8SJWZACTuLdpXCgrESs2eeIq1rSd4dEUcUTxKTry2f_NM5M4crSFmURIXOMALFPvds87ljK31Nq0YWJVMgdACGitTe25hGlk/h120/28.png',
'x-)' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgE2Wiz7WDUPmBhpcKPVlCHXjFrZiUHloFx1DunkGwCSroNQzDU9JBvshTQBBWFPFpDHwLdImoUUQP8UKl7CNxEt2fd5-qEC8IA5Dp8Bh5J4UrsITFhJ7yO70HYsknjRg7zPaz7PVXNux2/h120/29.png',
'(k)' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkgbhzjqngc4VH3yDvBYh_UcD4W6N0toHJnaLkvacmuMWhtAuAPmV_69CfMhbPTUGYfqwJ2qgIXFtmOLMFyAuNkMLtlD16cd3YEEdls0Ekbk0NH6897rgEUvVCcmlMmsLuv0ka8qtgKQQe/h120/30.png',
'(h)' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3RZ-Ca0g29ul_4yH2y8iAc_vrYGBABSIIa5tgLgUaJlP_YUhCxVrfqguUz1RLgD_9X1-c2hftJEszvfioyOSXAJEDKDyFedSQSxgEU5D7DnCRQeQYty136eMamyrDLfbav8ZpXicZ_2DJ/h120/31.png',
'(c)' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfrbTx4QjU9IGB7cA6XlidWOH7aPgr9aAjtwCxydiiCxg62crrFGy_EoPNY7Q9v6ugHvGoZtW77MfhU46a5ukmCijM15YIZBgzE9v7z8cdGpW09r6yWKuOIx55SJsMK0J-Vl6jemBUvlDe/h120/32.png',
'cheer' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPgXYSwbGWcdxa1feNG6BVYgY20bt5ouNc-54YeZq241LFJVZ3LHx7FnymLzKTzE8Tb8vDf6B8e192zUY1ce958z14Pi1AT52xHie7CWN8iFPsH9hjD6s4dxfRLgBnT8Bf0i8HVVo_Bamn/h120/33.png',
'(li)' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ZfWYT6qcql69cBJ10xSHcHqIYt8QVlE_cSTzLAY8TWMcargNqho0RXKrzlBzZKLatBGuzhkt4IyLJ8FALE5ebv7RJUSoyiSCSKfGAWxJa6psx6z46KQZo8WG9gLB4G5UFwJ5APMjhEKt/h120/34.png',
'(pl)' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm7ul7jxRLF7Yi6UDZR3IACxeG_GwEQGfy8B44c7zu6CzJQKPpNwezu9Gly3uIgcV6sQ_HijLLsLACbte9LkkPMuyhoTfEZACyzByrkFrPz2vUiQqLZpV5glUKhT-Jr0-T-FcD69wYptSD/h120/35.png',
];
        
                               
                                //Config Force tag list, define all in lower case
                                Force_Tag = [
                                    '[pre]','<pre>',
                                    '[/pre]','</pre>',
                                    '<pre class="brush: plain; title: ; notranslate" title="">','&lt;code&gt;',
                                    '</pre>','</code>'
                                ];
      
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 q=\'.W\';3 1a=$(\'#N-Y\').B(\'y\');u 1w(H){3 1h=\' \\n\\r\\t\\f\\2p\\1S\\1T\\1U\\24\\25\\26\\27\\2e\\2h\\2k\\2m\\2n\\2u\\2y\\2z\\2A\\2F\\1L\\1N\\1O\\1P\\1Q\';G(3 i=0;i<H.5;i++){b(1h.g(H.1V(i))!=-1){H=H.d(0,i);11}}C H}$(\'#28 .1B p\').k(u(D,7){b(2r){3 m=\'1g://13.Z.X/1t?v=\';3 8=7.g(m);F(8!=-1){1H=7.d(8);K=1w(1H);3 1c=K.g(\'&\');3 T=\'\';b(1c==-1){T=K.d(m.5)}1e{T=K.d(m.5,1c)}3 1j=\'<1k I="1W" y="1g://13.Z.X/1X/\'+T+\'?1Y=1" 20="0" 21></1k>\';7=7.d(0,8)+1j+7.d(8+K.5);8=7.g(m);b(8==-1){m=\'22://13.Z.X/1t?v=\';8=7.g(m)}}}b(23){3 1d=\'\';3 x=7;G(3 i=0;i<1z.5;i++){3 m=\'.\'+1z[i];3 o=x.E();3 8=o.g(m);F(8!=-1){l=x.d(0,8+m.5);o=l.E();3 w=\'2j://\';3 z=o.g(w);3 L=\'\';F(z!=-1){L=w.R();l=l.d(z+w.5);o=l.E();z=o.g(w)}w=\'1K://\';o=l.E();z=o.g(w);F(z!=-1){L=w.R();l=l.d(z+w.5);o=l.E();z=o.g(w)}b(L==\'\'||l.5<6){11}l=L+l;1d+=x.d(0,8+m.5-l.5)+\'<S y="\'+l+\'" I="2s"/>\';x=x.d(8+m.5);o=x.E();8=o.g(m)}}7=1d+x}b(1m){3 5=A.5;b(5%2==1){5--}G(3 i=0;i<5;i+=2){3 V=\'<S y="\'+A[i+1]+\'" I="1x"/>\';8=7.g(A[i]);F(8!=-1){7=7.d(0,8)+V+7.d(8+A[i].5);8=7.g(A[i])}}}b(2G){3 5=U.5;b(5%2==1){5--}G(3 i=0;i<5;i+=2){F(1){3 x=7.R();8=x.g(U[i]);b(8!=-1){7=7.d(0,8)+U[i+1]+7.d(8+U[i].5)}1e{11}}}}C 7});$(\'.1M\').k(u(D,7){b(1m){3 5=A.5;b(5%2==1){5--}3 15=\'\';G(3 i=0;i<5;i+=2){3 1C=\'<1F>\'+A[i]+\'</1F>\';3 V=\'<S y="\'+A[i+1]+\'" I="1x"/>\';15+=\'<M I="1R">\'+V+1C+\'</M>\'}C 15}});$(\'.1f .1B p\').k(u(i,h){10=h.R();D=10.g(\'@<a 12="#c\');b(D!=-1){14=10.g(\'</a>\',D);b(14!=-1){h=h.d(0,D)+h.d(14+4)}}C h});u 1l(j){r=j.g(\'c\');b(r!=-1)j=j.d(r+1);C j}u 1n(j){j=\'&1Z=\'+j+\'#%1o\';1p=1a.1q(/#%1o/,j);C 1p}u 1r(){k=$(q).k();$(q).k(\'\');q=\'.W\';$(q).k(k);$(\'#N-Y\').B(\'y\',1a)}u 1s(e){j=$(e).B(\'16\');j=1l(j);k=$(q).k();b(q==\'.W\'){1u=\'<a 12="#1v" 29="1r()">\'+2a.2b+\'</a><a 2c="1v"/>\';$(q).k(1u)}1e{$(q).k(\'\')}q=\'#2d\'+j;$(q).k(k);$(\'#N-Y\').B(\'y\',1n(j))}17=2f.2g.12;18=\'#N-2i\';19=17.g(18);b(19!=-1){1y=17.d(19+18.5);1s(\'#2l\'+1y)}G(3 i=0;i<O.5;i++){b(\'1A\'2o O[i]){3 j=O[i].1A;3 1b=2q($(\'#c\'+j+\':P\').B(\'1D-1E\'));$(\'#c\'+j+\' .2t:P\').k(u(D,7){3 J=O[i].16;b(1b>=2v.2w){$(\'#c\'+J+\':P .2x\').1G()}3 Q=$(\'#c\'+J+\':P\').k();Q=\'<M I="1f" 16="c\'+J+\'" 1D-1E="\'+(1b+1)+\'">\'+Q+\'</M>\';$(\'#c\'+J).1G();C(7+Q)})}}3 1I=$("#2B");1I.2C(\'.2D S\').2E(u(){3 1J=$(1i).B(\'y\');$(1i).2H().B(\'y\',1J.1q(/\\/s[0-9]+(\\-c)?\\//,"/2I-c/"))});',62,169,'|||var||length||oldhtml|check_index|||if||substring|||indexOf|||par_id|html|img_src|search_key||upper_html||Cur_Cform_Hdr||||function||http_search|temp_html|src|find_http|Emo_List|attr|return|index|toUpperCase|while|for|str|class|child_id|yt_link|save_http|div|comment|Items|first|child_html|toLowerCase|img|yt_code|Force_Tag|img_html|comment_form|com|editor|youtube|temp|break|href|www|index_tail|newhtml|id|cur_url|search_formid|search_index|Cur_Cform_Url|par_level|yt_code_index|save_html|else|comment_wrap|http|whitespace|this|yt_video|iframe|Valid_Par_Id|Display_Emo|Cform_Ins_ParID|7B|n_cform_url|replace|Reset_Comment_Form|Display_Reply_Form|watch|reset_html|origin_cform|trim|comment_emo|ret_id|Replace_Image_Ext|parentId|comment_body|img_code|data|level|span|remove|ht|avatar|ava|HTTPS|u200a|comment_emo_list|u200b|u2028|u2029|u3000|item|x5d|x7c|x7d|charAt|comment_youtube|embed|autohide|parentID|frameborder|allowfullscreen|https|Replace_Image_Link|x3c|x3e|x0b|xa0|comment_block|onclick|Msgs|addComment|name|r_f_c|u2000|window|location|u2001|form_|HTTP|u2002|rc|u2003|u2004|in|x5b|parseInt|Replace_Youtube_Link|comment_img|comment_child|u2005|Config|maxThreadDepth|comment_reply|u2006|u2007|u2008|comments|find|comment_avatar|each|u2009|Replace_Force_Tag|show|s45'.split('|'),0,{}))
       //]]>
         </script>
</b:includable>

Nah selanjutnya cara pasang Emoticon dan Pesan Formulir komentar di blog:

Cari HTML berikut (cara ini sama seperti cara pada langkah di atas) : <b:includable id='threaded-comment-form' var='post'>...</b:includable>

Hapus lalu ganti dengan kode berikut :

<b:includable id='threaded-comment-form' var='post'>
  <div class='comment-form' id='comment-form'>
    <b:if cond='data:mobile'>
      <p><data:blogCommentMessage/>
        <br/><br/><a class='tutup pencet' style='display:none'>Tutup Konverter!</a><a class='show_emo pencet waves-effect waves-light'><i class='fa fa-smile-o'/> Emoticon</a></p>
<script type='text/javascript'>
$(document).ready(function() {
    $(&#39;.show_emo&#39;).click(function() {
        $(&#39;.comment_emo_list&#39;).toggle(&#39;slow&#39;);
    });
});
</script>
<div class='comment_emo_list'/>
      <data:blogTeamBlogMessage/>
      <b:if cond='data:blog.pageType == &quot;static_page&quot;'><a expr:href='&quot;http://www.blogger.com/comment-iframe.g?blogID=&quot; + data:blog.blogId + &quot;&amp;amp;pageID=&quot; + data:post.id' id='comment-editor-src'/></b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><a expr:href='&quot;http://www.blogger.com/comment-iframe.g?blogID=&quot; + data:blog.blogId + &quot;&amp;amp;postID=&quot; + data:post.id' id='comment-editor-src'/></b:if>
      <iframe class='blogger-iframe-colorize blogger-comment-from-post' height='410' id='comment-editor' name='comment-editor' style='display: none'/>
    <b:else/>    
      <p><data:blogCommentMessage/>
        <br/><br/><a class='tutup pencet' style='display:none'>Tutup Konverter!</a><a class='show_emo pencet waves-effect waves-light'><i class='fa fa-smile-o'/> Emoticon</a></p>
<script type='text/javascript'>
$(document).ready(function() {
    $(&#39;.show_emo&#39;).click(function() {
        $(&#39;.comment_emo_list&#39;).toggle(&#39;slow&#39;);
    });
});
</script>
<div class='comment_emo_list'/>
      <data:blogTeamBlogMessage/>
      <b:if cond='data:blog.pageType == &quot;static_page&quot;'><a expr:href='&quot;http://www.blogger.com/comment-iframe.g?blogID=&quot; + data:blog.blogId + &quot;&amp;amp;pageID=&quot; + data:post.id' id='comment-editor-src'/></b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><a expr:href='&quot;http://www.blogger.com/comment-iframe.g?blogID=&quot; + data:blog.blogId + &quot;&amp;amp;postID=&quot; + data:post.id' id='comment-editor-src'/></b:if>
      <iframe class='blogger-iframe-colorize blogger-comment-from-post' height='410' id='comment-editor' name='comment-editor'/> 
    </b:if>
    <data:post.friendConnectJs/>
    <data:post.cmtfpIframe/>
    <script type='text/javascript'>
      BLOG_CMT_createIframe(&#39;<data:post.appRpcRelayPath/>&#39;, &#39;<data:post.communityId/>&#39;);
    </script>
  </div>
 <!--<div id='offline-mode'>
<h2>
Offline mode</h2>
<p>Mohon maaf, form komentar sementara dinon-aktifkan karena ada sesuatu dan lain hal yang menyebabkan saya tidak bisa membalas komentar sobat. Silahkan kunjungi beberapa saat lagi apabila sobat ingin berkomentar .</p>
</div>-->
</b:includable>

Langkah terakhir masukan Javascript di bawah ini tepat di atas kode </body>

<script type='text/javascript'>
$(document).ready(function(){$(&quot;.showmore&quot;).click(function(){$(&quot;.bnm&quot;).toggleClass(&quot;shows&quot;);});});
$(document).ready(function(){$(&quot;#showkomentarmenu&quot;).click(function(){$(&quot;#komentarmenu&quot;).toggleClass(&quot;shows&quot;);});});
</script>

Simpan Template.


Jika langkah-langkah tersebut tidak berhasil (berantakan) silahkan ikuti tutorial langkah pertama pada link berikut.

Semoga Tutorial "Cara Membuat Material Design Threaded Comment di Blog" ini bermanfaat.

Sekian, Terimakasih.

Add Your Comments

bold <b></b>
italic <i></i>
underline <u></u>
HTML <code></code> use Parser

Emoticon
Parser
😊
😉
😀
😁
😎
😍
😜
😑
😇
💖
😯
😱
😭
👍
🍻