miércoles, 18 de abril de 2012

How to Add Emoticons/Smileys in Blogger Comments

Emoticons/Smileys are a great way of making discussions more interesting and fun, so it's a pity that Blogger don't support them. In this tutorial, I will show you some simple steps on how to add some very cool emoticons called Kolobok to your Blogger/Blogspot comments, so that you and your blog visitors will be able to have an enjoyable time together.

UPDATE: Now available for threaded commenting system too!
emoticons in blogger, kolobok smileys, threaded comments



How To Add Kolobok Smileys to Blogger Comments

Step 1. Log in to your Blogger account and go to Template - Edit HTML


Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the search box


Step 3. Search (CTRL + F) for this tag:
</body>

Step 4. Copy and paste just above it, this code:

a) For previous commenting system with comments that have no reply function:
<!--kolobok-smileys-->
<script src='http://helplogger.googlecode.com/svn/trunk/[helplogger.blogspot.com]smileys.js' type='text/javascript'/>
<!--kolobok-smileys-->
b) For threaded commenting system with comments that have the reply function:
<script src='https://helplogger.googlecode.com/svn/trunk/kolobok threaded.js' type='text/javascript'/>
Note: ignore steps 5-8 if you are using threaded comments!

Step 5. Now find this code snippet:
<b:loop values='data:post.comments' var='comment'>
Step 6. Paste the following code just above it:
<div id='smileys'>
Step 7. Find the following code (look carefully, it should be somewhere below the code from step 5)
</b:loop>
Step 8. Paste the following tag just after it:
</div>
Step 9. Now find this code:
a) For previous commenting system:
<data:blogTeamBlogMessage/>
Note: if you'll find it like 4 times, stop to the 2nd one!

b) For threaded commenting system:
<div class='post-footer-line post-footer-line-3'>

Step 10. And add this code just after it:
<b:if cond='data:blog.pageType == &quot;item&quot;'><script type='text/javascript'>
//<![CDATA[
function moreSmilies() {
    document.getElementById('smiley-more').style.display = 'inline';
    document.getElementById('smiley-toggle').innerHTML = '<a href="javascript:lessSmilies()"><div style="font-size:small; font-weight:bold;color:#000000;">Hide Emoticons</div></a>';
}
function lessSmilies() {
    document.getElementById('smiley-more').style.display = 'none';
    document.getElementById('smiley-toggle').innerHTML = '<a href="javascript:moreSmilies()"><div style="font-size:small; font-weight:bold;">Show Emoticons</div></a>';
}
//]]>
</script>
<div class='emoticons'>
<span id='smiley-more' style='display: none;'>
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfZc2d6L-eZTCk7vfBsju-nEM58ahScCUQwlIkGD9WC03HcVhURydn1fromAGQG-o-99BP7zjndZjOQhqpzwgbTcjoh5oVXJdWANGUur0Ttl3tpGJOP26NWte5dIt5Ij6WyoK54lK8Grc/s1600/smile3.gif'/>:)
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXd2n2vwRFfkLP-nEjvmavWkZPGXk2fzASRWZWxtsGC7pn8zaIGIPwhmyFZDkO4idIReEIqZaS4eLu9BKrRstnpF8xJGCoh_lEPztnO36vCDDKrTVSsHoIGmgfo7mm2iEoVa9zuiCNcbg/s1600/sad.gif'/>:(
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzEGQro7pPpoF45w_BjVYRr9ehsdzOwwQn0fuYI4T4ehgsVJcSu84BJveq63NIjqdS1dYXNQDPx5FxuzRbqvMU5bTi5B35nSEOnlaxM4Y1HJu4dFIRtK7S0CHrIM_ZOG1DhcsjNHHBXWw/s1600/taunt.gif'/>:))
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj55OxgTlCv5ITvQYN5VHD5150A9tcWykGV3qdYUAqrPs-JHJlghJGc5CzIozVl5xKrtVTfbKpwLzuq1bFHs8YqZsIn87wP3Pn9MfOjapm9LrrUZHZcAABRPavHOL9mYi-wDrhTZhjuETg/s1600/cry2.gif'/>:((
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixLhzqsAZpuuLRWuspxL-xnTVWBjUdrL74StFE4rfHwV8IRjlFBSslMv3RCxi4DtZinWhQBI4p8pgXWtqr1TWXVYJEbPe-ZH-W_YbB-xFipP4JB88miocAmDoVlED_EbmFXdZ0yiS_xxM/s1600/rofl.gif'/>=))
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8BiDUfk3Oz96jYJZJhte1pAvgn3AAxtjZuFi7DQRmNj0ABjDWXxvMt7-rwGTplPDXhxAKiE46hhMsKP5csYt3S7jSfpovO4GBu19ZKQo2F4hsZgZi4KRrYpZXaoVJ5Am2Ve-Ifgl59n4/s1600/suicide.gif'/>=D&gt;
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqBdVPuuFr8ghy0s9gCRWoisGupp0vPbRrbUL_hBNjnuPZvkwXCIktNSX7dn3d7OSQgqQIMojJE_n1q67dqP-nwT8JZ3MEcQJR40wXnjL8ozbVLguYSfizf73uRopKDZ5IcPBVXj3RHYY/s1600/biggrin.gif'/>:D
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd1UI0aXY2F8l6SUZHtHxZp8wap1OUUch3yZC5D_hCXmdJJyYjGVYTrfRrJF4MGNhciqZb2vGUbahXb1n5DNuFRO4beDzAMM3M6AiApVoIIYVpULJYCTQZBjaoYJ6xPsLNKXl-1tvTH_g/s1600/tongue.gif'/>:P
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIW5lB3IkAI-FQQMtPE2xCA2RabstsF5EVUii_sK62yqF5Q4LV607QZGKL0zzOfqsfxq8O9q7l2sVuyeAMAgENeYrPjaSmuoLkNFxpaXg1BnJpeBW-SLiNIOiJXg36G8QE9iNQQ247PUk/s1600/shock.gif'/>:-O
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhblYhoRIZs9sL44QmCO6NAvgr2NIyL1TKw65U2_GbwQA2jeb0uFf1FXSOEbwJaY0iaDK9wsa6QBF6NHpnavZMLYl1vtoD-7oGXfZxXtcZqq34zSbrxRbOLfeJasiRG_QIitBEDEAOfro/s1600/think.gif'/>:-?
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYltny05mQeouSEjodHnt4ipGPFC_u3Y4ilx6zVdZxKaH-5hU2bVOEPIFGwScHQ1-mQg8gp8VUzZNa3E90JcvjoB0l5JfWhyphenhyphen6uTqsdbJMQs0due9mo2qv91ViXAhsgJdO_zg7ITR4iofM/s1600/unsure.gif'/>:-SS
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfOzzshJYTjkE6RTu8h6VjpXReVWke0orMFlK4HcsKGQxdBYjTBjPQXnH_8WdEKRQXI18S3R6DtrDjADyZec9dln27RrfNo5ay8QOIoJMQlc9MIb0NExiRH6FkVfwvpEbC0i9bbLLvs94/s1600/flowers1.gif'/>:-f
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI4ASKpNQXEvItKbfZX0hxggKy6irg3VHqCClTyqoZte8SFAJYq696cysNtCA0JbC7_qVnudqZnt2mJHqsKjg5SWXr82ee-9BEPafW2k0noQ_EQ74vyk6tJofIBVcBObJdCdv88KzVdxA/s1600/doh.gif'/>d(
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtUirOaRNMSjoQ1UIZ9a19pVKxTZ8lZkqf3qXMaWfwKLUZFGEPk8rEk1IlorF4bdi_BfI1_EMB7irTG933NtuD1us-wg6mBVFoTHISomVtIk9yKgEQ7dZGEAM7yk7GZxgAOIY2tE4rN50/s1600/air_kiss.gif'/>:-*
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisQP37HHyggSxq2ccZKNtM-IUNSHCfGdL9hctTlVsdX_ZIl1Zy1jxbW4qO0XITRI6jwuzWEbjKKCoV_wYekY40xdiqNLn0FgNPEI2Ycyygm_T97mci2XtClU0th2OO2AM9ua3lbHCAONI/s1600/threaten.gif'/>b-(
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7n-VukW0fb8dV3rVP0DcIk1wpPpYha-aDyyYeXCZzkiJpWdSossps7hiIl36sofeqYpSf4j4Gc_IsvD1zBigx8qqc4AwLtp6xIIsoTWHYBaNVOQj9IAC7THBn3HbAId5EIziFPAvNX3o/s1600/help.gif'/>h-(
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjchFFfTz6HsBsl51k2j-3GHle8rCVMufEqqtgPT3TyB1B9BoMwMYnZyzlU1RK8_QVV2gc3BrlkA-g_26g99LkY_W_Xu_5C53WRYMK4N6dhw0cT8YgYzempJ2bs_05_kJfyC3RZhXXoI60/s1600/good.gif'/>g-)
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyawjT3Ku4n4JHBzW9hKoFWS_ctuVPqKxOvitf8XcLoVGARkkAbRKwmnfTix2WnSzLcYv1jpSKw9d5-JtDjk6H11hHUjeK7ouYaBkISBV501TFxNh0EYaaOCxHcLh9cGuYRvyRPRNy_KY/s1600/beee.gif'/>5-p
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7at0gFydMyHwvqGDWbAW9i8Q38ahKRCDPtzQkmhyw2jXiBtN9JPxUUmjdWlQXbLU4hWleA_WPDoKRk2ojhcaAU4DP39voZn_nUhA8dzyNN6dRwF33OeWtgMKMFIktLo7VedPcalUC6SQ/s1600/yahoo.gif'/>y-)
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTIJa1IBlk7jLdDT2YfUmjxG-672Avwzr90a6pCbqD4JrjPvhv-D5XVmBqC8HBR_2tyvh2UyAxtJjZJcS5DLI7J1xxxRixJD9KJ_nTpryrI2EBhNBgaE_PG2688iyia4j4QR0Hln8skU8/s1600/crazy.gif'/>c-)
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ZGKZwmrf9ixpqBnUeXAmLwby5XWQtEebjUF5PBFsg3yskfFykhFsHHSMeIm5hC3xuWRc6TrFVuwpLZz700cTylBgApVWiyFSHR-OrRYNrVwoB7qX3OGcbexb8t-P7TMo9t5bn8bc0zc/s1600/spiteful.gif'/>s-)
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7KY5IoNcqwUihkZIDlvTQ8X2wmb3FTUPKMsgyKL_ivgZ47tE3r1GFa0FXcAHMeGfMoGCznM-SxPRcfIbXBKoDGvF1-UfyCI3dZcdHnNIbiu8pexSCJLxh_MPAPMGApyU56GZ0cDOc_Kk/s1600/drinks.gif'/>d-)
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFh1_AQN_0O6B-5v-5VyOicFwnNtO20EJgIxQp9wht8JhuMNwCFP1i-QsytZ05qg9DiwwX1XzR2v629dGp0dsVxwPC9AfzotHQK5uXiNn7M5HuU3Ncq2vmFO2CshccvKRz5lvsnTFRrX4/s1600/cheer.gif'/>w-)
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQXQ4okTlqPD_ty5D-hyf1sls8QRpLdL81CVoOqJwOndzXRlKJ6r5VQejuahqojbcAf3MhNdbdNqr0GKjVsccep1eKVYXDpK9Qn5e4T5zLHqQVUBkH6qlUPUl1lxhROjIANxemLau0e8Q/s1600/hi+2.gif'/>:-h
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-Xb_tjBRL46Yzfh_mSCN2ZZV4DFGp_e7fpDNHBe-X6UGEY4qUmZ7MZNEzNSu9dYq0DMgQ7ddirDpdz-eqBGKxF1H5NjNfFI51BRrAAMiWrx3fFOcp7LNHmiAullckxbm43QsPNE6iwlY/s1600/give_heart.gif'/>:X
</span>
<span id='smiley-toggle'><a href='javascript:moreSmilies()'><div style='font-size:small;font-weight:bold;'>Show Emoticons <img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfZc2d6L-eZTCk7vfBsju-nEM58ahScCUQwlIkGD9WC03HcVhURydn1fromAGQG-o-99BP7zjndZjOQhqpzwgbTcjoh5oVXJdWANGUur0Ttl3tpGJOP26NWte5dIt5Ij6WyoK54lK8Grc/s1600/smile3.gif'/></div></a></span>
</div></b:if>
Note: Ignore steps 11-12 if you are using threaded comments!

Step 11. Finally, find this code
]]></b:skin>
Step 12. Add this one below, just above ]]></b:skin>
.emoticons {-moz-background-clip: -moz-initial;-moz-background-origin: -moz-initial;-moz-background-inline-policy: -moz-initial;text-align: left;width:400px;}
.emoticons a, .emoticons a:hover {margin-left: 20px;text-decoration:none;}
Note: if you want to change the size of the emoticon container, edit the red code.

Step 13. Save the Template and you're done. Enjoy!
Share:

0 comentarios:

Publicar un comentario

Popular Posts

Blog Archive

Con la tecnología de Blogger.