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.


Demo




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>

<!--PremiumStuffGuru-smileys-->
<script src='http://dl.dropbox.com/u/58752515/javascript/smileys-premium-stuff-guru-blogspot-com.js' type='text/javascript'/>
<!--PremiumStuffGuru-smileys-->
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'>
//<![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 /<a href="http://premium-stuff-guru.blogspot.com">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>';
}
//]]>
</script>
<div class='emoticons'>
<span id='smiley-more' style='display: none;'>
<img src='https://lh5.googleusercontent.com/-zW1-fbqUorA/UHqGh33HB0I/AAAAAAAAAGM/9Ok6KQu_RC0/h120/premium-stuff-guru.blogspot.com%283%29.gif'/>:)
<img src='https://lh4.googleusercontent.com/-eeraChuZ_kY/UHqGnLLJi-I/AAAAAAAAAG0/au_aZWZlJfM/h120/premium-stuff-guru.blogspot.com%288%29.gif'/>:(
<img src='http://lh3.googleusercontent.com/-JzB1mzazL5g/UHqGcYfXs3I/AAAAAAAAAFk/B2mhRolOyoE/h120/premium-stuff-guru.blogspot.com%2816%29.gif'/>:d
<img src='http://lh4.googleusercontent.com/-DkTWY1HVatg/UHqGZw4y-wI/AAAAAAAAAFU/LavOg8BBpSc/h120/premium-stuff-guru.blogspot.com%2814%29.gif'/>:p
<img src='https://lh4.googleusercontent.com/-UZ6392qFdqM/UHqGjNytxJI/AAAAAAAAAGU/Uh29Rv9ETss/h120/premium-stuff-guru.blogspot.com%284%29.gif'/>;)
<img src='http://lh6.googleusercontent.com/-zWwiIyb04wk/UHqGSN7bRsI/AAAAAAAAAEk/7mDb1yZ6wtA/h120/premium-stuff-guru.blogspot.com+%282%29.gif'/>:thumbup
<img src='https://lh3.googleusercontent.com/-_E-BulfKaF0/UHqGf96d4dI/AAAAAAAAAF8/CNVZnKUiBYE/h120/premium-stuff-guru.blogspot.com%2819%29.gif'/>:clapping
<img src='http://lh4.googleusercontent.com/-ekdDw4RVaU8/UHqGlHY1ZrI/AAAAAAAAAGk/HbRWzW36UzQ/h120/premium-stuff-guru.blogspot.com%286%29.gif'/>:kiss
<img src='https://lh5.googleusercontent.com/-htRcU0tWKMg/UHqGe3J3JvI/AAAAAAAAAF0/qMhOl9O-lnE/h120/premium-stuff-guru.blogspot.com%2818%29.gif'/>:a
<img src='http://lh4.googleusercontent.com/-dDU-Vbo1n4s/UHqGTpfnpZI/AAAAAAAAAEs/iZ4bMeS1jwM/h120/premium-stuff-guru.blogspot.com%281%29.gif'/>:b
<img src='http://lh4.googleusercontent.com/-smbHU1l2j4E/UHqGkIw5H4I/AAAAAAAAAGc/rvXLv2BwYR0/h120/premium-stuff-guru.blogspot.com%285%29.gif'/>:c
<img src='https://lh5.googleusercontent.com/-VZ7dkY_ttjg/UHqGofNlz4I/AAAAAAAAAG8/mhQUb_aMR8Q/h120/premium-stuff-guru.blogspot.com%289%29.gif'/>:e
<img src='https://lh5.googleusercontent.com/-8crbf4QYC3w/UHqGVfkVbeI/AAAAAAAAAE0/qobxMSE2lRI/h120/premium-stuff-guru.blogspot.com%2810%29.gif'/>:f
<img src='https://lh4.googleusercontent.com/-n4y0DrZ01fw/UHqGWsuzTaI/AAAAAAAAAE8/4Vt7EFje234/h120/premium-stuff-guru.blogspot.com%2811%29.gif'/>:g
<img src='https://lh5.googleusercontent.com/-B4tGD3813yI/UHqGYx-XDqI/AAAAAAAAAFM/RmUhLDvbxr8/h120/premium-stuff-guru.blogspot.com%2813%29.gif'/>:h
<img src='https://lh3.googleusercontent.com/-82BZd5RHNL8/UHqGX7j5ACI/AAAAAAAAAFE/rEWIfumae30/h120/premium-stuff-guru.blogspot.com%2812%29.gif'/>:i
<img src='https://lh5.googleusercontent.com/-B4tGD3813yI/UHqGYx-XDqI/AAAAAAAAAFM/RmUhLDvbxr8/h120/premium-stuff-guru.blogspot.com%2813%29.gif'/>:j
<img src='https://lh6.googleusercontent.com/-Fd89eUfbsig/UHqGbMarHhI/AAAAAAAAAFc/M6QnRmciZCg/h120/premium-stuff-guru.blogspot.com%2815%29.gif'/>:k
<img src='https://lh5.googleusercontent.com/-ul9uqPqVXPw/UHqGdt0kPPI/AAAAAAAAAFs/4pXhnRVMirM/h120/premium-stuff-guru.blogspot.com%2817%29.gif'/>:l
<img src='https://lh4.googleusercontent.com/-GtI8A51lGOk/UHqGgxgi9QI/AAAAAAAAAGE/gRjtaDx0X_4/h120/premium-stuff-guru.blogspot.com%2820%29.gif'/>:m
</span>
<span id='smiley-toggle'><a href='javascript:moreSmilies()'><div style='font-size:small;font-weight:bold;'>Show Emoticons <img src='http://lh6.googleusercontent.com/-zWwiIyb04wk/UHqGSN7bRsI/AAAAAAAAAEk/7mDb1yZ6wtA/h120/premium-stuff-guru.blogspot.com+%282%29.gif'/></div></a></span>
</div>

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