Sunday, October 14, 2012

Insert Animated Smileys/Emoticons In Your Blogger Comments | Tutorial

As you all know Blogger comments lack some basic functionality like emoticons, and this is a must have functionality which attract visitors and compel them to post comment and use emoticons. So today i will show you in this tutorial how to insert facemood smileys/emoticons in your blogger comment system, so that users can easily use them while posting comments. This tutorial was inspired by blogtariff therefore all credits to owner.


Click Here for Live Demo

Here we go...

Step 1. First of all backup your template like always (Recommended)

Step 2. Go to Dashboard > Template > Edit HTML > Proceed > Tick Expand Widget Template.

Step 3. Press Ctrl+F (to run search command) and find </body> in your template and paste this code before </body>

<script src='' type='text/javascript'/>
Step 4. Now search <b:loop values='data:post.comments' var='comment'> and just add this piece of code above <b:loop values='data:post.comments' var='comment'> as shown in screenshot.

<div id='smileys'>

Step 5. After you have added above code, just scroll down little bit and you will see </b:loop> and just add </div> after </b:loop> as shown in screenshot.

Step 6.Now search for <data:blogTeamBlogMessage/> and paste below code after it. (you may find this code multiple times, so keep choose the first and if you can't see 'Show Emoticons' link above comments, than try to use another one until you see the result).

<script type='text/javascript'>
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 /<a href="">Add Emoticons</div></a></span>';
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>';
<div class='emoticons'>
<span id='smiley-more' style='display: none;'>
<img src=''/>:)
<img src=''/>:(
<img src=''/>:d
<img src=''/>:p
<img src=''/>;)
<img src=''/>:thumbup
<img src=''/>:clapping
<img src=''/>:kiss
<img src=''/>:a
<img src=''/>:b
<img src=''/>:c
<img src=''/>:e
<img src=''/>:f
<img src=''/>:g
<img src=''/>:h
<img src=''/>:i
<img src=''/>:j
<img src=''/>:k
<img src=''/>:l
<img src=''/>:m
<span id='smiley-toggle'><a href='javascript:moreSmilies()'><div style='font-size:small;font-weight:bold;'>Show Emoticons <img src=''/></div></a></span>

Step 7. Finally find ]]></b:skin> and paste this code before ]]></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;}

Step 8. Save your Template, That's it!

Have to say?

Don't forget to leave your comments, as it means a lot for me.

1 comment:

Social Profile

Total Pageviews

Follow by Email