kali ini saya akan membahas bagaimana cara memasang emotion pada komentar di blog yang mana tujan pemasangan emotion itu sendiri kurang lebih agar pengunjung yang singgah di blog sobat dapat tertarik untuk berkomentar pada postingan yang telah sobat buat.
Bagi sobat yang tertarik untuk memasang maupun mengganti emotion di blognya maka saya jamin deh blog sobat akan tambah lebih keren tentunya semakin seo.
2. Pada Dashboard pilih Template » Edit HTML
3. Cari kode </body> kemudian letakkan code berikut tepat di atasnya.
<b:if cond='data:blog.pageType == "item"'>
<script type='text/javascript'>
//<![CDATA[
var emoRange = "#comments p, div.emoWrap",
putEmoAbove = "iframe#comment-editor",
emoMessage = "To insert emoticon you must added at least one space before the code.";
// Emoticon bar before comment-form
$(function() {
$(putEmoAbove)
.before('<div style="text-align:center" class="emoWrap"> :) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer <br/><b>Click to see the code!</b><br/>To insert emoticon you must added at least one space before the code.</div>');
var emo = function(emo, imgRep, emoKey) {
$(emoRange)
.each(function() {
$(this)
.html($(this)
.html()
.replace(/<br>:/g, "<br> :")
.replace(/<br>;/g, "<br> ;")
.replace(/<br>=/g, "<br> =")
.replace(/<br>\^/g, "<br> ^")
.replace(emo, " <img style='max-height:24px' src='" + imgRep + "' class='emo delayLoad' alt='" + emoKey + "' />"));
});
};
emo(/\s:\)\)+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtVdpNktfDCxUeM6uoWR68YKyNz6piB80vbs8B5DGAgEv8LrhW_yy-yi0WvhDo_Ijc75CP5iwyEG94c9mVFl5zRg7WlSCHp_qdKAcef2ix5-Gks_2I0hWHZQrxElAP6vmPpmUaBzGctPI/s36/03.gif", ":))");
emo(/\s;\(\(+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlEggEs20UV3eGRy6cq01pyvX4wo3nUkg7Al_IH5Q0N0GR5nMoltkCYfumt9Zk2R1YgvovcWWHTjayUyW8S6e86WGx3Ne5oeQ1PEBHQwytnRz0k0_wrAUYCE0BBlRJ4sJDAiEfMn3sXmU/s47/06.gif", ";((");
emo(/\s:\)+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqf7N_8BRI4Qhys6lWZeQ3b7Qu6EMaLVFp93lwzORzq3gbG9oxK9FJA8AXHI_hnvj-kEDfLvLl9pc7CON3XAoLBa_X07v6x1FLlxz-HiG2Gwh1XhrDNgGLX-X6o-iPt4EeTWs2uO4yhGI/s36/01.gif", ":)");
emo(/\s:-\)+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd5p4elBcbloi4ElmEcqg_uzyM9-Ool4g2u3GBA8l2lyejxkMojV8Rdh69zVNQNYRyU6jrZYRkRfdUrgO3Ngid_Vq2nzDFZY5Tlxvct_olg5BVHUPWxtR7KVgcZTjxxtWv2gm3G92aWgg/s36/02.gif", ":-)");
emo(/\s=\)\)+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA1HOnm-jx3_ntctYUJ4kPNelh5JroZOUPnqTiTFC-MwxWp02MWzU6ZO3lOE1ljDii5sF102k6NN2TfQWHcgkX4-tvS7Q7fcSvaBKo12j8E1BeymEyS_GKH5OqlTVt1UdBNDgQL3pBFuQ/s36/03a.gif", "=))");
emo(/\s;\(+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU4XbrJZZ9Wa2HsFOqBx_T7BUUA5084iDFbnp8DOXOdOoByTRMDt2AyehQu4j9hj1FNTI8arUR_awyfpHccI78nC6dfaVAEtreDE1K-IWaxyfSKxZOI_jnyOrs32kQoT3b7P71Zvt5Edk/s36/04.gif", ";(");
emo(/\s;-\(+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWfCysVIwGEtchyphenhyphenjqTkwTYvCoFF_Kf4cjqmVLczmAMgRRa8w4LMZ2ZI6d36aHQr30r8Rt9lO45zBPvXTtfV-jKnz8MDQ-0HjVR-NWF3AD_wVPAR4ridm2PQs8tqQILlmL2oWn5PW8rQaQ/s36/05.gif", ";-(");
emo(/\s:d/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8Oibp1D-THFX2GL9sf_1hOI59exB2NHs7c6aIjJ7l-foA94WLlrTK9NgIpaZuUD8qYmr5Vq7hWKVVDfdM3Xbkp3CMzsXwHHDOWKNW1Y2Mnga6Ebe829iRIwIie2V983EaIqfuSiHuww0/s36/7.gif", ":d");
emo(/\s:-d/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQdKkCH3kmuNaKQ8iqkBBo_UNa1s7pnj1xF1QNZVLeGSbwH0hVXvu_Eq4PqY-jLaj7RjHjXz_7uRydHCQCPGu7TSOn-Ve-SUNo3Nl-UJZ0cSft9JfIl25MQc3NYB_RPtXfR-h7aXUm_eE/s36/8.gif", ":-d");
emo(/\s@-\)+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEherOzvlpYAYEydcQppH8uppdZRxvcVLJ1nhyphenhyphenvnvvuHphdUQZfTSWjYE1YlguL7rnoPfq0_QPZm2JJAzXTuyBxtrlFmXhi8PkErOoPZ9M3_fZVqBOuqgvQMLTlTtCPb-Je71nJEQCGHHXE/s36/09.gif", "@-)");
emo(/\s:p/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgL2ZPSNxBnLRKqW3Kob0O-4PRNL5xNPPwNl67yiQbPiC2YhUdXpA0RhgrYy1IWDqqmbr56-dpcaLfoFZpa3OdqhmzNBP38yDYeou6QyyPtXnFWIlBfzHUG2GUtjHiWiTr9-D1r13L07wQ/s36/10.gif", ":p");
emo(/\s:o/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLMmZ3ZQlgYxy_I7HVnSwvGnEY5fDwWjE_ZOLDZU3b_tKcgS-Av9pnCRHBFDN_Fsa4cyG5uj2DxW0hlY5kt5iisB5UB4OpGtcyKp-okpB5CiyEaY2vU_BvjocXaQLQxcMCBdQhFk0ZxKE/s36/11.gif", ":o");
emo(/\s:>\)+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-LbEJoFwB9CUTz43GIv_9-CduYA_v3UwxKIN7U7-Bo0DiZCSk6J5shgreZ84e-vNcw-ZbVzkSPMh99ybJxwPdmJNTCuKlc3k4Ej6hsXbvj6u_Y8tvtwBeJ4jAVY8JPTDIirjaYbqjuNc/s36/12.gif", ":>)");
emo(/\s\(o\)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKrcDJC1MFtaLz3HWeRtmDr8k5X-Jb6Vgd0o9DbDVC_AiHCsZZPGUdi2lqtgLQGLUGMj1EQX6kGrQZ6Ymk1RCdJm5PlaPEGqpzGhdOe38pfb5hWKPS3zb0d4jAMBxT9dSO3PquKKbG8QI/s36/13.gif", "(o)");
emo(/\s\[-\(+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOlE5-uTRDwwA8MXqhFK-VDnOPXnAoDncnuXa55mfBZX_UgUCDB-xHff04dItSUSOVq5zHEFnWMiG3119MOG6fVNgL2-b0gobAzl7xBs9Vn39yRrkJurdM9yvRZv8s1DBjPuyO-IZJdyw/s36/14.gif", "[-(");
emo(/\s:-\?/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuEnQTpkIICm8EVOvTglv0oKG3tW8pBP9Idr5tQpH6Ts7ObECEGqQYajQzKnw2G8kMwxSHvR6ycUH-YqwHglwWvpcc5ZorotMNgoqT7ont7dcxYJYml9tSSiiP8CpBvQuQOs0YbHUDemo/s36/15.gif", ":-?");
emo(/\s\(p\)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWZ6xSSdLz_oqf8xSMQoSUEvJxGtZdxRSM7d5WY2SXQ-FtI-37toVpT3kNQW3Ti3KbiTGhzJf_3ftNxY0iXj0K9ogu9tBwLry7YFwetp-QFRz9Zgy3ZztyWp6-47YlzLFPC0eQwQKRYpg/s36/16.gif", "(p)");
emo(/\s:-s/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtCDiD4cmnZVe3jtzs_fyW9NsX87Vwef0njWej3w-tAGlV18BZ5sB7YmQIL9mRej52owY6OVcOVCAl96hWLRcYFk3ZM7lzZGi1oyRJmak6gxT5IBAodUp8X_vC1xUN9iA3dIsgT0F53Bs/s36/17.gif", ":-s");
emo(/\s\(m\)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj73Rv2ufwgKspf9CLYIBgmkgJgFTCms9N06l0Y1_RmeuUdTYnS2727_Q2D5z9Z-haa8ql8fGM_BYpxhDJjaMBJY3o-tq84RctWDc-QhVCci3LcxkvCWOtg8GZaSQ8zBaytyvD7Hy7qzkc/s36/18.gif", "(m)");
emo(/\s8-\)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht1R-Ivtt5TfsB5KE5tt4Ay3QKn9-XUCyhyphenhyphen49F8rNI2q1xkKNytNHYXevSLFE2SJg_TKPtep9gIdgSXs0rTKY9kX2VEpC7F5c53GmH6FO2Fw37ZzrU0OOmRDOSGb-DAWoXbqcesm69q6I/s36/19.gif", "8-)");
emo(/\s:-t/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPHYNil2vG5H34e7Uw1b3Mj39XiwMD3KnD-W5t96ho2_I1HRk96KcUz8PQBFwNIfLqxTpr21D2_z1FFSED3U2GI5c9PhEGxAb11vlFVffpakqDsNnuRqGPz5P7tAC0nn4PjFIdFp_EMzw/s36/20.gif", ":-t");
emo(/\s:-b/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIsrmfqjXxqtzP10mKq8aTPiYLdoK1IbZXnIoLdWliCMywQzsgH_pNv5E7snkU34u76GvBuw102bNyaeHYF5K8JMk0SgVwAWrYaq7sIKPNdJIjUZHugLjeqTh15vB7V_qGchbY4q_z-OI/s36/21.gif", ":-b");
emo(/\sb-\(+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnUua4VzJFr80tFAnGeM0Y2cC1p5_ETmBvjYCln3H_ZwZw8KbMZiYmRlrgPtAejUF-6iRcG1q00xkeWpGxwUgMqlxBU1qIsOjZet7EyDcT9obCouZwjgWIiHBzK-tP3UVYtbxv81pv3lc/s35/22.gif", "b-(");
emo(/\s:-#/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhydlEpEnx37UE-X517ViQCePbQI6iUpbKkW80-Z-aAmXzPufbz8ePbztdR9lDEPMc2zw-EcfzIYE2WLxWkQ-xUDHPjmbyZdfPmSvL7lX-_LddZodP7kOLuNPUEWT37r6ptpKjwqsWTffw/s36/23.gif", ":-#");
emo(/\s=p~/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr3TE4p86fhw4yWiiHS1JbCClgz3FpcsP1NYdaw6XzeJMCPZrbMrRHJxdNdIqc5clbZi4CdcFh5W_WDMwN1uls62WUTjf0CTgPn0R3YHJPBvA55KRKu7XesqeytlJz9sYX6g6Hnj_s8EQ/s36/24.gif", "=p~");
emo(/\s\$-\)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIMeypz4yE5TiL_GqLMLVqgRQEhbxfVkaaaVlJrYk9chCu5BOy7IQ81RnyDPkCd4QZO3C_bSz_uocFUmepqCWJV6T4UxqU2TuyDyrLDUAc0sV5fSdidAUUG5zF27wcLxncjHoX3JC6aEE/s36/25.gif", "$-)");
emo(/\s\(b\)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVSK64JELNAU29yOjyOz1IKw_ysj2BbNSh8KV1seqBfhKfN5_vAyD1CdOsW5BFY4XLVUqgPyS3aXLwY2KZPlV4gQZFfI-BPjYY2fFi7BU_b-U_Wstugun_xEHM6h_mKjeu_2hMArD0XZ8/s36/26.gif", "(b)");
emo(/\s\(f\)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4FyjmjOBT78DvoPNNz_9fZun8M77SvTNi_ul2C8_9decutoiAVhGK9410AlKR8_mItzBFWeZ6lvYy3kJAe0GrZvbJGhjJxa1Na6HgSjTK4Qoj0rqB7Lj1n9DvnCOR05tV9TuZ_7XVe1I/s36/27.gif'", "(f)");
emo(/\sx-\)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXmhc_wVI-9Qv5JrPSX1ZsF6cEzKK0jJpdYsDhZ7mcTZMyjsf_GPsFGiUwhSuoaJx6Q0d7CLA6v4paWtNyTey_zUwTQReo38ZQH_YnFzgvYXTYCV4KchciSIMl9Nzts7V2MHfapPCWW88/s36/28.gif", "x-)");
emo(/\s\(k\)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgODoT69x4XAtC0FoVN10vqFPB-5zG9v49QgGmt3uGEhd3LT0jMbxiaaKAMLaXd3G5OcoHeR2294Bq8CdiQA4hC8LsyR0t6WcEI_kC-oI9d4B6ORB_9zPrgsmvpwcIIKUsQtEHbFp5pyME/s36/29.gif", "(k)");
emo(/\s\(h\)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi87FYtSs0MVwaA0k3vhdeO4B6Q66jUOmBBjMVtita3HUFa45fYByiZzh1EKqIE-WCad7QKxfN2UsfNZGzdFQVQiygjEDkGS1jh19J0zqfYE9DQXBBCsCXEbVLSzNAPOOWzRf4MhDF0RPM/s36/30.gif", "(h)");
emo(/\s\(c\)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfXAOFgtVuGfXpD4y7QF4R3oO5aHHp5aARav-2KUERMwgVE-2QFEsfL2rhgAJD55jiJ0Hde12yI81QdxvLXE2iC4GnStqGxQN6IOpGHLapJrv3_3VKziEiuuP2SIW3GNFYBiZZ35Ul5jU/s36/31.gif", "(c)");
emo(/\scheer/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3gPeqw_dn4Dwj9eOkOh3VdHgGn8QSC6WC95MpA-_bBQLGrBiSioYMb_F6PJsOkTeQhqZLUUHKva_vYo3mJFHhHljP71WY7-stUMCe2NfQQUYPGGuVaDN-OaVycfN8IhJFK7RbVvb5KMQ/s36/32.gif", "cheer");
// Show alert one times!
$('div.emoWrap')
.one("click", function() {
if (emoMessage) {
alert(emoMessage);
}
});
// Click to show the code!
$('.emo')
.css('cursor', 'pointer')
.live("click", function(e) {
$('.emoKey')
.remove();
$(this)
.after('<input class="emoKey" type="text" size="' + this.alt.length + '" value=" ' + this.alt + '" />');
$('.emoKey')
.trigger("select");
e.stopPropagation();
});
$('.emoKey')
.live("click", function() {
$(this)
.focus()
.select();
});
});
//]]>
</script>
</b:if>
4. Untuk memperindah tampilannya baik dengan mengubah background maupun memberikan border silahkah sobat cari code
Gimana sobat mudahkan cara pemasangan emotion pada komentar di blog? Oleh karena itu saya berharap satu klik tombol
buat admin agar untuk kedepannya blog ini semakin maju dan berkembang. Terimakasih :)