Info Populer 2022

Cara Mengatasi Emoticon Di Komentar Blogger Tidak Muncul

Cara Mengatasi Emoticon Di Komentar Blogger Tidak Muncul
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, instruksi khusus yang kita ketikkan untuk memanggil emoji/emoticon tersebut tidak menjelma emoticon yang dimaksud.
Blogspot kali ini ialah cara mengatasi emoji Cara Mengatasi Emoticon di Komentar Blogger Tidak MunculCara 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 yaitu 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) menyerupai 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 instruksi 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/AVvXsEiLF5TdD9WDPG9L_DA6a_YXYh_9dud2Cmw7G3POn75SD_8hSYnU_8K3W0398zzbb91gnx6JVB0odFGxq8_mQ4OYDNH7NpnsHW4uFLIGEblJ4vQahQOPlRlyUcDd7l4P_zIYkHK-kkth3HY/s1600/1_smile.png',
        ':('  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp9UnT4_NmxTdn8K3zLv92RTg37qDrT5pcJSbrxBMT1j6-sRbwrcWXDQLccYcD0PBOseOt3S9avphjlB_WvixF64RjvZP8CwrFeLm3UE7qV1ryVWwwwghs6Ip9W7-L12aU-wf8lJsv6Fg/s1600/2_sad.png',
        ' =('  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEion2Le9WirNpIZtTD7M4wy_51N7rHVZXK1ebmtzTiuM15BmdyNpcDlpQ3ee0rRdSL6PJtFGB2faSK5KSobctgLlLu1ewellKsZepkGju9D_3F2Ic_mUsTuXH2_AQrk93gKmL9qGg8l4_0/s1600/3_disappointed.png',
        '^_^'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimj-pEK12OOmAvuyT0eRwyFm-L7nekTzkMrC7ogNJDNU91GErIByvtV0vM3uMaM7eWhoLYW8qLsKua4ESSPg2m6kUbG5lGVCPQYJqf0j7mKtLAyuK4hxNEwk_N2dz65iprzyuEOAuFBzo/s1600/4_shy.png',
        ' :D'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnwMOo_DMVAGZRQ7MmVLEesk-MKD9Oa7AYbxp9oo5mkH2DIZmCtDkwekVM7O6078sEbdCQXHID9LSpAx5xHwV-M5T-glt6irvZp6V1ymZPOxKUVC5m0O0I8_-VbNnO85042mZkPB6oCoc/s1600/5_noprob.png',
        '=D'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwhqLy-JYsgcvUAl3Y8GnNz_XKO-UOb-kiJpwHsmpQCuVFrUSuUotLpxvzMxQQ-ZMH_kq1Kpnz7jTD__ln8ABd5hJCDB98dVGi4h1YZv4Rf4hXDsUQI6_vrhOp22NArWSpoWO02FlO33g/s1600/6_happy.png',
        '-_-' ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZbd0SNqUIOYVejQmRU7A9yNAG0Fe4B3ADnfH5qvf_CihnMJqwN6LWj0UEgGGXOojIWh47yvzBABh2gNUPAUTCf7Y7rNJMsbejYK2XZ_wPVvtjTm0b60mjZdNzPJQlBEVMgs__p-xW6JM/s1600/7_meh.png',
        '|o|'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdUan6Llb2jMqgrEetCPY4lmA3i4Itmb67w-s3uxp-0K3gfhtDYz4vB77eP2zkdFN32_aOGegeqJ3IGONrjFHpx8PCXdwBd3_QOpy-KmlVSeOfqUUS7HfwdFiozQB76doq6PjkkIiCR5k/s1600/8_lol.png',
        '@@'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQxI9DVAFGkN2uJtet6i2aLXLS3dTsP5Hs6XF78_s8xyX_CgVGbqohZajKdHFJ8O95UNMwZL7R9ygKrXJHgFf5EAcOzTGZOaR31TUwAefSzG21sogPkFm1MZKHgRD_fGOQ-cZ4wze3bVk/s1600/9_surprise.png',
        ' ;)'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZpGuOSZsb3o09G69Lc8EmywLfUvoDQH235355Zq9zQrs8plPDR2U7yIkcVvhXLwbVWu8bqsiaJsdNzbcAu6aI3axXrhMQfq_-3iHqQvXa-YGSvVblC3m51CD33-4AelSWcdKHQky8t0s/s1600/10_trope.png',
        '(y)'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwHfJPYCfog1QNyHy4Yhq-ThqqSiqyH10iFp0AWSiuWabGE0SoBoso4PKTN9uixYsYqibieeblKYzHdK6FJE45Lf6rUwKfN4GhKgVYVq5Y97HiK3EW21yRwwA91pQ2nVAdG9WeGVDs63U/s1600/11_oke.png',
        ':-d'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaNpJOC92JkfUF7TtgF0SF0FndOGXNC3Z4XtF5aUs31EdSjdC4n_LVLy2XDOvjzG6GtwoxGrr_ub_vyc9Y9XJd3I7_AefshmHHa9fSRQ9rzE8YmB5h8Ln0cWSy5sWDXjkPOgBOUKrJ3ek/s1600/12_laughter.png',
        ' :p'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc9axiq8cvbWDDYOdH8qjRLH9l7SGvc8JIruACVpEEc71QYtqjKDAdBwrhBKvIBf4rVMVRnu2a9eJm4A6AZQo-utO4RKY6d8qZUq0-pDMSAUzlslYmnLD0Y4UukEUJinc-YvpIaxL1qLs/s1600/13_tongue.png',
        '<3'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4tuPogaKiku5-RPLwjYc0zvhzbuajO2HyTh41VAzevfcv0TZTwl9LRg0m6IGaIZzugWv-888R8ztl6R13y3mZeAq4V8xmy7nr-P5sS5Wi5v1nYwFoqOK-IwKmpaAH_X8xXQQptsvd7Uo/s1600/14_heart.png', 
        '(>o<)'  ,'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlNF8fzeI_DquBSSrSAX-jwkP3RoiW0VzCRGwwNwcxIVOdaNfCeCs44MQV0y_vP9oATFKoBY4aLoSZhe_cel8BXnwgJA_DKQlGoh3Y6KlBB70J6S_hfZyPVcjL9kfCtUFPot1lj3TdPvk/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="Cara Mengatasi Emoticon di Komentar Blogger Tidak Muncul">','&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 instruksi berikut ini di atas instruksi 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, misalnya menyerupai ini:
<script src='//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>

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

Scroll kursor ke bawah, kemudian temukan instruksi yang ini:
<p><data:blogCommentMessage/></p>

Ganti instruksi 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 instruksi menyerupai 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 instruksi tersebut dengan instruksi tadi.

Langkah 4
Saatnya memperbaiki tampilan/ukuran emoji/emoticonnya, dengan cara tambahkan CSS berikut ini di atas instruksi </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 kesannya silahkan lihat Demo template RisenMagz pada link berikut.


Demikian tutorial kali ini, biar bermanfaat.
Advertisement

Iklan Sidebar