Cara Mengatasi Emoticon di Komentar Blogger Tidak Muncul

Tutorial Blogger/Blogspot kali ini ialah cara mengatasi emoji/emoticon pada komentar Blogger yang tidak muncul atau tidak tampil. Dalam hal ini, kode khusus yang kita ketikkan untuk memanggil emoji/emoticon tersebut tidak berubah menjadi emoticon yang dimaksud.
Cara Mengatasi Emoticon di Komentar Blogger Tidak Muncul
Sebelum melakukan langkah-langkah untuk mengatasi hal tersebut, pastikan dulu kalau template Blogger Anda sudah mengikuti tutorial tentang Cara Mengatasi Threaded Comment dan Reply Comment Blogger Error. Sebab cara berikut ini sangat direkomendasikan untuk diterapkan pada template blogger layout versi 2.

Adapun cara memperbaiki gambar emoticon yang tidak muncul di komentar Blogger adalah sebagai berikut:

Cara memperbaiki emoticon/emoji komentar Blogger/Blogspot yang tidak bekerja

Langkah 1
Masuk ke Theme > Edit HTML

Silahkan cari dan hapus semua kode-kode (yang mirip) seperti berikut ini:
       <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=\"//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"></scr" + "ipt>");
}
       //]]>
       </script>

Juga hapus kode ini:
       <script async='async' src='//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js' 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 = 3;
        Display_Emo = true;
        Replace_Youtube_Link = false;
        Replace_Image_Link = false;
        Replace_Force_Tag = false;
        Replace_Image_Ext = ['JPG', 'GIF', 'PNG', 'BMP'];
   
        //Pengaturan Emoticon
        Emo_List = [
        ':)'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwkp_rEVyDYMagABkYlak-FrdrvnUJrDdpQM0WA8BLcd2HIpvtfh8DUo2lAgnTD-lxrb4K3raNyqXMIGfZ4m-vpqNfoZgPv3OZKxp24-uOTK8YY2ploBLcbsJV4Tr7sdisCc9cyhfmbhQ/s1600/1_smile.png',
        ':('  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnRetW2QesEonXSrYhfa6JzofWOLBX5mTtdDScM-AHDXbsM-NHjNEqdw0ald6PIHxjMIGOXEllyyBFA3XAnUmVm-1pZyPHvX7CvP8bztdk5tqe0QutgPInYMvdBvGvjI0RyF-DzDsozwE/s1600/2_sad.png',
        ' =('  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifNXBHJ29TX8LHB8ZNRwLBE9GxCpTAnSrHQd4Od1V0p7pJG9MKboL649uZI2fa7Rwb5trJFgB3nXNZupGXeN6rUw-9K27BAvxFSiZ3g9JD1-pMTuxS8lqQHyL-VImq_Hc6jPboDeXYNRk/s1600/3_disappointed.png',
        '^_^'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRyDhTyIeXn_qZV5ID2tw2ezmnSNqpvfupZ5_yeWU5usJ7RAtLhGMQroAGO6F8Tt5aUQ0GTGLPqCNVrvInUv8lRraJfQl8tWyH8Hn1ZotqQrR8LUz34L5sFJ6Q-Br_8jqpsvHlD3tSj9U/s1600/4_shy.png',
        ' :D'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifUmtvYBqv7SBQC4-PwzYRMkGs30QfnWlhUEUfnRpjTws9ElspUqvPRpBJV6zqCOdxpuUEltzR4415mOMdetyNNyLLPX4-v5RV5HpftNMprbMDHtjxi3l_o1U6QlIqgsWfnNSvDvfC3Hc/s1600/5_noprob.png',
        '=D'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-ER2FGPOog0RWo8JZY6U5yCFi9q1jwqhtihA235lU_jxSJXQrmur_RNtU6CRUuUJ5iVFEezDFWPwFBGmlQNo_oSzv_FvPoE0vY_89yhO_u5kz3XZ4TJM-xSm1yAWfxQHUHz3AO2K2Dgo/s1600/6_happy.png',
        '-_-' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiroPfk9Btl49MV2pDmX1IF9GAIgNh8OcGgfZWeRqUxssjB1cgTWnviujpjZPExq2TZiboSWfTphfXvEhuSddEvg_QBl70jk20TsYsF6Jwy-eanA-zNFn6og-JfYH87qc9HSGiJwRkTxn8/s1600/7_meh.png',
        '|o|'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg85DKwsoMVwySBhmCl3u-DnwZx6t3cqRw-tldBmnlU_sRmDt_oUQFfgiW4y99jnup80dL0du1XqF_atcuf7JeqIWgQyPUCnIeBHlUUEQwjFO15k1dQ_nSqEX5qgL8dLA2W1dQ99bTLNOE/s1600/8_lol.png',
        '@@'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz-ODif3DWsh5wpUZMZmUjt9aAGP8kciFtHE9UMi22uQW0lcwg30BzOO0f3hQRyXiFMCZMdZVF5w3uN7ZMDRQwGiUrnXwrrGdbtCW8YV769oRw1RwVeO0uZ9M0a57gP2FQ5bO5QN234gc/s1600/9_surprise.png',
        ' ;)'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimT3Snz9yr1Uh3NWPT_UgUN6RZ4Q26ObfRsvPyGkqmmoJ49qcx0bF2QzZaAsb54LW1nO3H-pQ7zWRyQBx-G8hdBM2GhgLKKqtFspCxUc_4TWJGiZwtLJVd8huPRt0tR1hDOFDqgTMoVZA/s1600/10_trope.png',
        '(y)'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcWXiGO8PF2I2haD6TBfeOVJp2SXfzYNNcqVk5BtIOLPUDfPFYUM_7I9C2NIMi-WJwwNybRVC10Nv_wbG3yVTc85Vu8JyLrViaG5DNnNGYkQOf1SKebmZE3kKE52Hj-mZmJ-Wpqzuyjvg/s1600/11_oke.png',
        ':-d'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeTa-tAmmUQMKp0IAw77rfT56NPSykbNaVGeio8xhxSK_KUDvFyKi0TEARw4RMzZX_QxHAIVGfQe5YiPX8saSOlkj_2N6BxsGZ6Xl60pcZg0zhLqE2pRccV2iKzl3huwXRcc0rhVoyxSI/s1600/12_laughter.png',
        ' :p'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrmahWt_VX4fDX-XbyZqQVGUTNajf-6hw_dq49Azim46zN0eI56fjOHbO1ERUzcxOhyphenhyphenvSxXPiOIN9NCwhpTowo8oyjtW9l_PMPddMOmOKer0QzRGkN3PkGX4RHK9ACI0ngNHg9_VQThVk/s1600/13_tongue.png',
        '<3'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIetyBN1XFdNmQkZlBAmdStiW2H0gsecl4xAlYxpKv9djh66ZiARbmRwtQIBN9BXdIlWF7W80-D943SMkgDihRvdl77G6HVQlaP97OzK9Qbl8spuNfkHZ2Qyc3H-DlGjulga_gFHBViZ8/s1600/14_heart.png', 
        '(>o<)'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrd3erXCj2dMPW1oDr25IZn1lHsMowEv_VEgXcJ_6xTM47s0E-vGSBngkvxph4pu9ssCoEALr9f1Vgn_WNpNxZuPKds-jmSsoI_IcleyD8f9dzM8dF573_PrNLhtIIz0TFQw66NfFX-Z8/s1600/15_angry.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 o=\'.1c\';3 1b=$(\'#O-19\').G(\'A\');u 1l(F){3 1j=\' \\n\\r\\t\\f\\1D\\1G\\1F\\1E\\2l\\2k\\2i\\2f\\2c\\26\\25\\23\\1Y\\1S\\1N\\1L\\1H\\2v\\1M\\2p\\24\\22\\1R\';E(3 i=0;i<F.5;i++){9(1j.d(F.1Q(i))!=-1){F=F.b(0,i);11}}z F}$(\'#1P .1i p\').j(u(y,7){9(1J){3 l=\'1v://13.V.W/1y?v=\';3 8=7.d(l);D(8!=-1){1d=7.b(8);J=1l(1d);3 X=J.d(\'&\');3 N=\'\';9(X==-1){N=J.b(l.5)}Y{N=J.b(l.5,X)}3 1r=\'<1u B="1T" A="1v://13.V.W/1U/\'+N+\'?1V=1" 1W="0" 2w></1u>\';7=7.b(0,8)+1r+7.b(8+J.5);8=7.d(l);9(8==-1){l=\'1Z://13.V.W/1y?v=\';8=7.d(l)}}}9(21){3 Z=\'\';3 s=7;E(3 i=0;i<1w.5;i++){3 l=\'.\'+1w[i];3 m=s.C();3 8=m.d(l);D(8!=-1){k=s.b(0,8+l.5);m=k.C();3 q=\'2h://\';3 w=m.d(q);3 I=\'\';D(w!=-1){I=q.M();k=k.b(w+q.5);m=k.C();w=m.d(q)}q=\'2n://\';m=k.C();w=m.d(q);D(w!=-1){I=q.M();k=k.b(w+q.5);m=k.C();w=m.d(q)}9(I==\'\'||k.5<6){11}k=I+k;Z+=s.b(0,8+l.5-k.5)+\'<10 A="\'+k+\'" B="2r"/>\';s=s.b(8+l.5);m=s.C();8=m.d(l)}}7=Z+s}9(1A){3 5=x.5;9(5%2==1){5--}E(3 i=0;i<5;i+=2){3 S=\'<10 A="\'+x[i+1]+\'" B="1B"/>\';8=7.d(x[i]);D(8!=-1){7=7.b(0,8)+S+7.b(8+x[i].5);8=7.d(x[i])}}}9(1I){3 5=R.5;9(5%2==1){5--}E(3 i=0;i<5;i+=2){D(1){3 s=7.M();8=s.d(R[i]);9(8!=-1){7=7.b(0,8)+R[i+1]+7.b(8+R[i].5)}Y{11}}}}z 7});$(\'.1K\').j(u(y,7){9(1A){3 5=x.5;9(5%2==1){5--}3 12=\'\';E(3 i=0;i<5;i+=2){3 1e=\'<1f>\'+x[i]+\'</1f>\';3 S=\'<10 A="\'+x[i+1]+\'" B="1B"/>\';12+=\'<Q B="1O">\'+S+1e+\'</Q>\'}z 12}});$(\'.1g .1i p\').j(u(i,h){T=h.M();y=T.d(\'@<a U="#c\');9(y!=-1){14=T.d(\'</a>\',y);9(14!=-1){h=h.b(0,y)+h.b(14+4)}}z h});u 1k(g){r=g.d(\'c\');9(r!=-1)g=g.b(r+1);z g}u 1m(g){g=\'&1X=\'+g+\'#%1n\';1o=1b.20(/#%1n/,g);z 1o}u 1p(){j=$(o).j();$(o).j(\'\');o=\'.1c\';$(o).j(j);$(\'#O-19\').G(\'A\',1b)}u 1q(e){g=$(e).G(\'15\');g=1k(g);j=$(o).j();9(o==\'.1c\'){1s=\'<a U="#1t" 27="1p()">\'+28.29+\'</a><a 2a="1t"/>\';$(o).j(1s)}Y{$(o).j(\'\')}o=\'#2b\'+g;$(o).j(j);$(\'#O-19\').G(\'A\',1m(g))}16=2d.2e.U;17=\'#O-2g\';18=16.d(17);9(18!=-1){1x=16.b(18+17.5);1q(\'#2j\'+1x)}E(3 i=0;i<P.5;i++){9(\'1z\'2m P[i]){3 g=P[i].1z;3 1a=2o($(\'#c\'+g+\':L\').G(\'1C\'));$(\'#c\'+g+\' .2q:L\').j(u(y,7){3 H=P[i].15;9(1a>=2s.2t){$(\'#c\'+H+\':L .2u\').1h()}3 K=$(\'#c\'+H+\':L\').j();K=\'<Q B="1g" 15="c\'+H+\'" 1C="\'+(1a+1)+\'">\'+K+\'</Q>\';$(\'#c\'+H).1h();z(7+K)})}}',62,157,'|||var||length||oldhtml|check_index|if||substring||indexOf|||par_id|||html|img_src|search_key|upper_html||Cur_Cform_Hdr||http_search||temp_html||function||find_http|Emo_List|index|return|src|class|toUpperCase|while|for|str|attr|child_id|save_http|yt_link|child_html|first|toLowerCase|yt_code|comment|Items|div|Force_Tag|img_html|temp|href|youtube|com|yt_code_index|else|save_html|img|break|newhtml|www|index_tail|id|cur_url|search_formid|search_index|editor|par_level|Cur_Cform_Url|comment_form|ht|img_code|span|comment_wrap|remove|comment_body|whitespace|Valid_Par_Id|trim|Cform_Ins_ParID|7B|n_cform_url|Reset_Comment_Form|Display_Reply_Form|yt_video|reset_html|origin_cform|iframe|http|Replace_Image_Ext|ret_id|watch|parentId|Display_Emo|comment_emo|level|x5b|x7d|x7c|x5d|u2008|Replace_Force_Tag|Replace_Youtube_Link|comment_emo_list|u2007|u200a|u2006|item|comment_block|charAt|u3000|u2005|comment_youtube|embed|autohide|frameborder|parentID|u2004|https|replace|Replace_Image_Link|u2029|u2003|u2028|u2002|u2001|onclick|Msgs|addComment|name|r_f_c|u2000|window|location|xa0|form_|HTTP|x0b|rc|x3e|x3c|in|HTTPS|parseInt|u200b|comment_child|comment_img|Config|maxThreadDepth|comment_reply|u2009|allowfullscreen'.split('|'),0,{}))
var avatar=$("#comments");
avatar.find('.comment_avatar img').each(function() {
        var ava = $(this).attr('src');
        $(this).show().attr('src', ava.replace(/\/s[0-9]+(\-c)?\//,"/s100-c/"));
});   
    //]]>
</script>

Langkah 2
Langkah selanjutnya cari kode </body> atau &lt;!--</body>--&gt;&lt;/body&gt;

Tambahkan kode berikut ini di atas kode tadi:
<b:if cond='data:view.isSingleItem'>
<script type='text/javascript'>
//<![CDATA[
emoList = document.getElementById('comments');
if (emoList) {
    zx = emoList.getElementsByTagName("p");
    for (i = 0; i < zx.length; i++) {
        if (zx.item(i).getAttribute('CLASS') == "comment-content", "emotlist") {
          emoThemeindie = zx.item(i).innerHTML.replace(':)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f600.png' alt=':)' title=':)' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':(', "<img src='https://twemoji.maxcdn.com/2/72x72/1f615.png' alt=':(' title=':(' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('hihi', "<img src='https://twemoji.maxcdn.com/2/72x72/1f601.png' alt='hihi' title='hihi' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':-)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f60f.png' alt=':-)' title=':-)' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':D', "<img src='https://twemoji.maxcdn.com/2/72x72/1f603.png' alt=':D' title=':D' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('=D', "<img src='https://twemoji.maxcdn.com/2/72x72/1f62c.png' alt='=D' title='=D' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':-d', "<img src='https://twemoji.maxcdn.com/2/72x72/1f604.png' alt=':-d' title=':-d' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace(';(', "<img src='https://twemoji.maxcdn.com/2/72x72/1f61e.png' alt=';(' title=';(' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace(';-d', "<img src='https://twemoji.maxcdn.com/2/72x72/1f62d.png' alt=';-d' title=';-d' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('@-)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f616.png' alt='@-)' title='@-)' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':P', "<img src='https://twemoji.maxcdn.com/2/72x72/1f61c.png' alt=':P' title=':P' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':o', "<img src='https://twemoji.maxcdn.com/2/72x72/1f62e.png' alt=':o' title=':o' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace('-_-', "<img src='https://twemoji.maxcdn.com/2/72x72/1f611.png' alt='-_-' title='-_-' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('(o)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f609.png' alt='(o)' title='(o)' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':p', "<img src='https://twemoji.maxcdn.com/2/72x72/1f614.png' alt=':p' title=':p' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':-?', "<img src='https://twemoji.maxcdn.com/2/72x72/2753.png' alt=':-?' title=':-?' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('(p)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f619.png' alt='(p)' title='(p)' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':-s', "<img src='https://twemoji.maxcdn.com/2/72x72/1f625.png' alt=':-s' title=':-s' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('(m)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f620.png' alt='(m)' title='(m)' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('8-)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f60e.png' alt='8-)' title='8-)' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':-t', "<img src='https://twemoji.maxcdn.com/2/72x72/1f624.png' alt=':-t' title=':-t' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':-b', "<img src='https://twemoji.maxcdn.com/2/72x72/1f634.png' alt=':-b' title=':-b' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('b-(', "<img src='https://twemoji.maxcdn.com/2/72x72/1f635.png' alt='b-(' title='b-(' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':-#', "<img src='https://twemoji.maxcdn.com/2/72x72/1f637.png' alt=':-#' title=':-#' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('=p~', "<img src='https://twemoji.maxcdn.com/2/72x72/1f35c.png' alt='=p~' title='=p~' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('$-)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f4b5.png' alt='$-)' title='$-)' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('(y)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f44d.png' alt='(y)' title='(y)' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('(f)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f33a.png' alt='(f)' title='(f)' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('x-)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f60d.png' alt='x-)' title='x-)' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('(k)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f496.png' alt='(k)' title='(k)' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('(h)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f44f.png' alt='(h)' title='(h)' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('cheer', "<img src='https://twemoji.maxcdn.com/2/72x72/1f378.png' alt='cheer' title='cheer' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace(';-(', "<img src='https://twemoji.maxcdn.com/2/72x72/1f62d.png' alt=';-(' title=';-(' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('lol', "<img src='https://twemoji.maxcdn.com/2/72x72/1f602.png' alt='lol' title='lol' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('|o|', "<img src='https://twemoji.maxcdn.com/2/72x72/1f602.png' alt='|o|' title='|o|' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('rock', "<img src='https://twemoji.maxcdn.com/2/72x72/1f918.png' alt='rock' title='rock' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('angry', "<img src='https://twemoji.maxcdn.com/2/72x72/1f92c.png' alt='angry' title='angry' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('(>o<)', "<img src='https://twemoji.maxcdn.com/2/72x72/1f92c.png' alt='(>o<)' title='(>o<)' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('@@', "<img src='https://twemoji.maxcdn.com/2/72x72/1f92a.png' alt='@@' title='@@' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':ng', "<img src='https://twemoji.maxcdn.com/2/72x72/2764.png' alt=':ng' title=':ng' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace('<3', "<img src='https://twemoji.maxcdn.com/2/72x72/2764.png' alt='<3' title='<3' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('pin', "<img src='https://twemoji.maxcdn.com/2/72x72/1f4cc.png' alt='pin' title='pin' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('poop', "<img src='https://twemoji.maxcdn.com/2/72x72/1f4a9.png' alt='poop' title='poop' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':*', "<img src='https://twemoji.maxcdn.com/2/72x72/1f618.png' alt=':*' title=':*' class='comment_emo'/>");
          emoThemeindie = emoThemeindie.replace(':v', "<img src='https://twemoji.maxcdn.com/2/72x72/1f606.png' alt=':v' title=':v' class='comment_emo'/>");
            emoThemeindie = emoThemeindie.replace('100', "<img src='https://twemoji.maxcdn.com/2/72x72/1f4af.png' alt='100' title='100' class='comment_emo'/>");
            zx.item(i).innerHTML = emoThemeindie;
        }
    }
}
$(document.body).on("click",function(){$(".commentWithEmot").remove()}),$(".comment_emo").css("cursor","pointer").on("click",function(t){$(".commentWithEmot").remove(),$(this).after('<input class="commentWithEmot" type="text" size="6" value=" '+this.alt+'" />'),$(".commentWithEmot").trigger("select"),t.stopPropagation()});
//]]>
</script>
</b:if>

Catatan:
Kode di atas memerlukan jQuery Library, contohnya seperti ini:
<script src='//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>

Langkah 3
Cari kode berikut:
<b:includable id='threaded-comment-form' var='post'>

Scroll kursor ke bawah, lalu temukan kode yang ini:
<p><data:blogCommentMessage/></p>

Ganti kode tersebut dengan ini:
  <p><data:blogCommentMessage/><br/> <span class='emotlist' id='emotlist'>:) :( hihi :-) :D =D :-d ;( ;-( @-) :P :o -_- (o) :p :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (y) (f) x-) (k) (h) cheer lol rock angry @@ :ng pin poop :* :v 100</span></p>

Jika menemukan kode seperti ini:
  <p><data:blogCommentMessage/><br/>
<span class='small-button1'>
<span id='show-emo'><a class='emo-button' href='javascript:void(0)' onclick='document.getElementById(&apos;emo-box&apos;).style.display=&apos;inline-block&apos;;document.getElementById(&apos;hide-emo&apos;).style.display=&apos;inline-block&apos;;document.getElementById(&apos;show-emo&apos;).style.display=&apos;none&apos;' title='Show Emoticon'>Emoticon</a></span><span id='hide-emo'><a class='emo-button' href='javascript:void(0)' onclick='document.getElementById(&apos;emo-box&apos;).style.display=&apos;none&apos;;document.getElementById(&apos;hide-emo&apos;).style.display=&apos;none&apos;;document.getElementById(&apos;show-emo&apos;).style.display=&apos;inline-block&apos;' title='Hide Emoticon'>Emoticon</a></span>
</span>
  </p>
<div id='emo-box'>
  <div class='comment_emo_list'/>
</div>

Ganti juga kode tersebut dengan kode tadi.

Langkah 4
Saatnya memperbaiki tampilan/ukuran emoji/emoticonnya, dengan cara tambahkan CSS berikut ini di atas kode </style>
/* Emoticon for Comments */
img.comment_emo {vertical-align: middle !important;border: 0px !important;height: 20px !important;width: 20px !important;display: inline-block;cursor: text;margin:5px auto 0;text-align:center;padding:0;}
.commentWithEmot {border-radius: 3px;position: relative;text-align: center;}

Untuk hasilnya silahkan lihat Demo template RisenMagz pada link berikut.


Demikian tutorial kali ini, semoga bermanfaat.

Posting Komentar

Komentar Blogger telah ditutup. Jika ada yang perlu disampaikan terkait konten ini, silahkan kirim pesan lewat laman kontak.