Get 25% Discount For HostGator- $110 OFF! | Series: Become a Pro Blogger!, Create and Sale Ebooks , PDF Editing Ways


Saturday, March 27, 2010

Show / Display Skype Emoticons In Blogger Comment Form



skype-in-Blogger Many tutorials have already been published on how to display emoticons in BlogSpot comments but since unique content is what MBT always publishes, today we will learn on how to add a collection of cute Skype emoticons above Blogger comment form. The tutorial is as easy to understand as you can imagine! :>

 

 

Kindly have a look at the demo first,

Live Demo

 

Follow These Steps:

  1. Go to Blogger > LayoutEdit HTML
  2. Check the “Expand Widget Templates” box
  3. Search for,

<h4 id='comment-post-message'><data:postCommentMsg/></h4>

   4.     Just below it paste the code below,

<div style=' width: 370px;  text-align: left;  border: 2px solid #0084ce;  background: #FEF9EA; padding: 10px;   color:#0084ce;  font-weight:bold;  '>

<img border='0' src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z7jnvQpuI/AAAAAAAAC8s/kgswZH3dAng/s800/emoticon-0100-smile.gif'/> :a

&#160;
<img border='0' src='http://lh6.ggpht.com/_7wsQzULWIwo/S6z7j2K2ixI/AAAAAAAAC8w/aBjS3JiC9fA/s800/emoticon-0101-sadsmile.gif'/> :b

&#160;
<img border='0' src='http://lh4.ggpht.com/_7wsQzULWIwo/S6z7kDXfZsI/AAAAAAAAC80/JrDuueBH-mE/s800/emoticon-0102-bigsmile.gif'/> :c

&#160;
<img border='0' src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z7kQ8V_nI/AAAAAAAAC84/9WEQPmHLJiI/s800/emoticon-0105-wink.gif'/> :d

&#160;
<img border='0' src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z7kWgRFeI/AAAAAAAAC88/2jjlfg01MIA/s800/emoticon-0104-surprised.gif'/> :e

&#160;
<img border='0' src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z8FBbw3UI/AAAAAAAAC9A/8iSol6bUSDk/s800/emoticon-0106-crying.gif'/> :f

&#160;
<img border='0' src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z8FdrL9dI/AAAAAAAAC9E/rbB37xy1Ybw/s800/emoticon-0109-kiss.gif'/> :g

&#160;
<img border='0' src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z8FpL8dkI/AAAAAAAAC9I/p_OhzAyH-SQ/s800/emoticon-0111-blush.gif'/> :h

&#160;
<img border='0' src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z8FmT-INI/AAAAAAAAC9M/GOURDHmPe9E/s800/emoticon-0110-tongueout.gif'/> :i

&#160;
<img border='0' src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z8Fw5N1LI/AAAAAAAAC9Q/xY9rjSFroCY/s800/emoticon-0126-nerd.gif'/> :j

&#160;
<img border='0' src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z9DendQuI/AAAAAAAAC9U/jtRdRpcopRQ/s800/emoticon-0103-cool.gif'/> :k

&#160;
<img border='0' src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z9DcebxfI/AAAAAAAAC9Y/Xew2m0j1B9I/s800/emoticon-0130-devil.gif'/> :l

&#160;
<img border='0' src='http://lh6.ggpht.com/_7wsQzULWIwo/S6z9DpaPbrI/AAAAAAAAC9c/M74FsmQxqrw/s800/emoticon-0133-wait.gif'/> :m

&#160;
<img border='0' src='http://lh4.ggpht.com/_7wsQzULWIwo/S6z9D-KY1cI/AAAAAAAAC9g/PZppx2BcToc/s800/emoticon-0137-clapping.gif'/> :n

&#160;
<img border='0' src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z9D6YdKmI/AAAAAAAAC9k/io_WlgJQL2w/s800/emoticon-0136-giggle.gif'/> :o

&#160;
<img border='0' src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z99cfdl1I/AAAAAAAAC9o/aJP10AXzhGE/s800/emoticon-0141-whew.gif'/> :p

&#160;
<img border='0' src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z99UcZMKI/AAAAAAAAC9s/p7NVe245uP4/s800/emoticon-0148-yes.gif'/> :q

&#160;
<img border='0' src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z99sMaIFI/AAAAAAAAC9w/gIu5t9057us/s800/emoticon-0149-no.gif'/> :r

&#160;
<img border='0' src='http://lh6.ggpht.com/_7wsQzULWIwo/S6z9-FFVEeI/AAAAAAAAC94/T1IXnlT43-M/s800/emoticon-0178-rock.gif'/> :s

&#160;
<img border='0' src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z99zPt4vI/AAAAAAAAC90/SOCwFsYa4M4/s800/emoticon-0155-flower.gif'/> :t
</div>

Save your template and view your blog to see a rectangular block of emoticons as shown below,

skype-emoticons-above-blogger comment form

 

Note:- To change the appearance of the rectangular block simply edit the code in bolded green colour

    5.. Now find </body>  and paste the code below just above </body>

 Note:- You can also try adding the code below just above </head> instead.

<script type='text/javascript'>

//<![CDATA[
a = document.getElementById('comments');
if(a) {
    b = a.getElementsByTagName("DD");
    for(i=0; i < b.length; i++) {
            if (b.item(i).getAttribute('CLASS') == 'Author-comment-body' , 'comment-body') {
                _str = b.item(i).innerHTML.replace(/:j/gi, "<img src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z8Fw5N1LI/AAAAAAAAC9Q/xY9rjSFroCY/s800/emoticon-0126-nerd.gif' alt='' class='smiley'/>");
                _str = _str.replace(/:k/gi, "<img src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z9DendQuI/AAAAAAAAC9U/jtRdRpcopRQ/s800/emoticon-0103-cool.gif' alt='' class='smiley'/>");
        _str = _str.replace(/:l/gi, "<img src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z9DcebxfI/AAAAAAAAC9Y/Xew2m0j1B9I/s800/emoticon-0130-devil.gif' alt='' class='smiley'/>");
        _str = _str.replace(/:m/gi, "<img src='http://lh6.ggpht.com/_7wsQzULWIwo/S6z9DpaPbrI/AAAAAAAAC9c/M74FsmQxqrw/s800/emoticon-0133-wait.gif' alt='' class='smiley'/>");
        _str = _str.replace(/:n/gi, "<img src='http://lh4.ggpht.com/_7wsQzULWIwo/S6z9D-KY1cI/AAAAAAAAC9g/PZppx2BcToc/s800/emoticon-0137-clapping.gif' alt='' class='smiley'/>");
                _str = _str.replace(/:o/gi, "<img src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z9D6YdKmI/AAAAAAAAC9k/io_WlgJQL2w/s800/emoticon-0136-giggle.gif' alt='' class='smiley'/>");
                _str = _str.replace(/:p/gi, "<img src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z99cfdl1I/AAAAAAAAC9o/aJP10AXzhGE/s800/emoticon-0141-whew.gif' alt='' class='smiley'/>");
                _str = _str.replace(/:q/gi, "<img src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z99UcZMKI/AAAAAAAAC9s/p7NVe245uP4/s800/emoticon-0148-yes.gif' alt='' class='smiley'/>");
                _str = _str.replace(/:r/gi, "<img src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z99sMaIFI/AAAAAAAAC9w/gIu5t9057us/s800/emoticon-0149-no.gif' alt='' class='smiley'/>");
                _str = _str.replace(/:s/gi, "<img src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z99zPt4vI/AAAAAAAAC90/SOCwFsYa4M4/s800/emoticon-0155-flower.gif' alt='' class='smiley'/>");
                _str = _str.replace(/:t/gi, "<img src='http://lh6.ggpht.com/_7wsQzULWIwo/S6z9-FFVEeI/AAAAAAAAC94/T1IXnlT43-M/s800/emoticon-0178-rock.gif' alt='' class='smiley'/>");

                _str = _str.replace(/:a/gi, "<img src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z7jnvQpuI/AAAAAAAAC8s/kgswZH3dAng/s800/emoticon-0100-smile.gif' alt='' class='smiley'/>");
        _str = _str.replace(/:b/gi, "<img src='http://lh6.ggpht.com/_7wsQzULWIwo/S6z7j2K2ixI/AAAAAAAAC8w/aBjS3JiC9fA/s800/emoticon-0101-sadsmile.gif' alt='' class='smiley'/>");
        _str = _str.replace(/:c/gi, "<img src='http://lh4.ggpht.com/_7wsQzULWIwo/S6z7kDXfZsI/AAAAAAAAC80/JrDuueBH-mE/s800/emoticon-0102-bigsmile.gif' alt='' class='smiley'/>");
        _str = _str.replace(/:d/gi, "<img src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z7kQ8V_nI/AAAAAAAAC84/9WEQPmHLJiI/s800/emoticon-0105-wink.gif' alt='' class='smiley'/>");
        _str = _str.replace(/:e/gi, "<img src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z7kWgRFeI/AAAAAAAAC88/2jjlfg01MIA/s800/emoticon-0104-surprised.gif' alt='' class='smiley'/>");
        _str = _str.replace(/:f/gi, "<img src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z8FBbw3UI/AAAAAAAAC9A/8iSol6bUSDk/s800/emoticon-0106-crying.gif' alt='' class='smiley'/>");
        _str = _str.replace(/:g/gi, "<img src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z8FdrL9dI/AAAAAAAAC9E/rbB37xy1Ybw/s800/emoticon-0109-kiss.gif' alt='' class='smiley'/>");
                _str = _str.replace(/:h/gi, "<img src='http://lh3.ggpht.com/_7wsQzULWIwo/S6z8FpL8dkI/AAAAAAAAC9I/p_OhzAyH-SQ/s800/emoticon-0111-blush.gif' alt='' class='smiley'/>");
        _str = _str.replace(/:i/ig,"<img src='http://lh5.ggpht.com/_7wsQzULWIwo/S6z8FmT-INI/AAAAAAAAC9M/GOURDHmPe9E/s800/emoticon-0110-tongueout.gif' alt='' class='smiley'/>")
                b.item(i).innerHTML = _str;
            }
    }
}

//]]>

</script>

 

 

     6.  Save your template and view the beautiful change! :D

The Emoticons Will appear In Both Readers and Author’s Comments!

As you know the yahoo smileys tutorials has one disadvantage and that is that the emoticons appear only in readers comments and can not be displayed in author comments. In order to make the emoticons appear even in Authors comment block then simply replace the code in bolded red colour above (i.e  Author-comment-body ) with the CSS class for blog owners customized comments. If you do not know how to do it then simply share your blog URL and I will let you know what code should you paste instead of Author-comment-body

How did you find it?

I made it as simple as it could be and I hope it will add an extra sweet flavor to your blogs. The codes for the emoticons are made easy so that readers could easily use an emoticon of their choice. You can increase the number of emoticons and can also customize the look and feel of the rectangular box of emoticons that will appear above the comment form. I wrote this in hurry so if you have any questions just drop me a hi! :>>



Respected Readers:
We educate thousands of bloggers a week with our tutorials. To help us go ahead with the same spirit, a small contribution from your side will highly be appreciated.


If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you subscribe to our regular Email Updates!

Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter
Create your own blog!

49 comments:

Comment Page :
Gary on 4:34 AM, March 27, 2010 said... #

It doesn't seem to be working for me. :( The images show, but the script won't work. Help please!

Robin Hood Softwares on 7:58 AM, March 27, 2010 said... #

Its not working in my blog buddy. Keep a look in this post http://robinhoodsoftwares.blogspot.com/2010/03/download-nitro-pdf-professional-6031.html

I just added the emoticon. But I can see only the letters and not the graphics. Please help me

Robin Hood on 9:45 AM, March 27, 2010 said... #

Also one more. Without your permission, I have added your link in my blog. See that on my "My Friends" Sidebar widget. So sorry.

Please help me with this emoticon script. Its not working in my blog. Just visit the mentioned post comment section. You can see that. There are two comments and both are mine.

Anup on 10:52 AM, March 27, 2010 said... #

Great Mohammad! You are the first to do that. But, I use Yahoo smiley in comments. This is also good, I will try it ;) And yes, take a look my new custom domain:

www.hacktutors.info

Thanks!

Beben on 12:54 AM, March 28, 2010 said... #

hmmm...emoticon anymore
its a great...cool b-)

Beben on 12:59 AM, March 28, 2010 said... #

i'll waiting for your template...hohohoho ;)
thanks...:-bd

Mohammad Mustafa Ahmedzai on 5:48 PM, March 28, 2010 said... #

@Robin Hood

Dear I have updated the post. Kindly re-add the Javascript code again according to the instructions above.

If it still did not work then add the code above </head>

And yes it is more than an honour that you have added the MBT badge on your Blog. Thanks a bunch for that love and respect! :>>

Robin Hood Softwares on 6:59 PM, March 28, 2010 said... #

No dear. Its not working too. Any I got fed with it. Tell me what to do.

Mohammad Mustafa Ahmedzai on 8:35 PM, March 28, 2010 said... #

@Robin Hood

Dear I have visited your blog. The main reason that I see is that you have used pretty dense javascripts everywhere. The blog load time is great too. These emoticons work best on templates with neat and light coding. Kindly try the code on some other test blog. I have checked the code on all my test blogs and they work just fine.

The best solution is to try it on another blog and see if it works. This way you may figure out the problem your self. If you still want them to appear on your current blog then email me your template I will do it for you :>

Anonymous said... #

Mohummad that is really something remarkable. You have utilized the code really well. Thumbs up bro!

Robin Hood Softwares on 9:59 PM, March 28, 2010 said... #

Ok Brother. I am sending my template to you. Ooops. What is ur email Id?

Robin Hood Softwares on 10:10 PM, March 28, 2010 said... #

The main reason is I could not find the tag you told to search for in the step 3. Can you find the related or the same tag in my blog.

Mohammad Mustafa Ahmedzai on 8:11 PM, March 29, 2010 said... #

@Robin

My email Id is mustafa.stc @ G M

It will work just fine. Just chill for the time being and leave the burden on me :p

Mohammad Mustafa Ahmedzai on 8:13 PM, March 29, 2010 said... #

@Anonymous

Those remarks sounded kewl! Thanks pal! :>>

erwan on 11:30 AM, March 30, 2010 said... #

greats....

Robin Hood Softwares on 12:33 PM, March 31, 2010 said... #

Check your mail brother. I have send my blogger template. Kindly go through it and pls insert two things in it 1. the smiley on the comment form and 2. Highlighting Author comments.

Mohammad Mustafa Ahmedzai on 8:13 PM, April 02, 2010 said... #

@Robin Hood

Dear I spent 15 minutes in figuring which class describes your comment styling. Honestly it is one of the terribly coded template with no proper CSS rules applied. The reason why the emoticons are not appearing is because it is not clear which class to use either it is comment-body collapseable or commentlist or comment nothing is clear tried all. The only solution left is to change the entire styling of your comment body but that will take me a further 20 minutes which I am afraid I can not afford. But bro you must pay attention to the huge number of Java-based widgets and to the compatability of your template because just on a single view I can assure you that you are going to suffer a lot on the hands of search engines because the template is really not optimized!

Mentioned all these points because a good template is the pioneer step towards Blogging success! Hope you got the point! :)

¸.•*Yexxi*•.¸ on 2:47 AM, April 03, 2010 said... #

Thanks..!!! ^^

Anup on 8:15 PM, April 03, 2010 said... #

Congrats Mohammad. You got your pagerank 3 :) Before these days I shifted my blog from hacktutors.blogspot.com to www.hacktutors.info therefore, I get dropped my PR 0 :(


What I have to do to gain back my pagerank?

Anup

Mohammad Mustafa Ahmedzai on 12:33 AM, April 04, 2010 said... #

@Anup

Thank you dude for being the first to wish me such a good news!:D
yeh it is normal to loose PR when you change domain. I also lost PR-2 when I changed to mybloggertricks.com from tnt-by-stc.blogspot.com. It took me 40-50 days to get it back. So it is normal to get the PR back within 5-7 only if your backlinks are intact. So just wait till then and keep blogging because you need to live several good experiences in future.=D

Anup on 8:49 AM, April 04, 2010 said... #

Thanks Mohammad for encouragement. I'm dropped in tension before. But, you encourage me highly with lecture :) Best of luck for your future too ;)

Thanks again!

parcerialink on 12:55 AM, April 12, 2010 said... #

testei no meu blogs mas não deu certo.

Shoplicius on 7:55 PM, April 13, 2010 said... #

Made all the steps, but don´t work at my blog.

Muhammad Rizwahyudhy on 10:41 AM, April 14, 2010 said... #

Hey, can i add the (smileycodetext) to (textarea) by clicking the smiley?

tell me how to do that?

Mohammad Mustafa Ahmedzai on 8:29 PM, April 15, 2010 said... #

@shoplicius

Kindly replace comment-body with this comment-author

You can find this code just after the bolded red text in the code above
@Anup

You are always welcomed! :>

@Muhammad
I really don't know any such way as yet! But I will surely see if any such script exists. Thanks for the idea! :)

fiD on 7:25 PM, June 01, 2010 said... #

hello mohamad,

im fail to do that lol. 5 time to tried. :(

Mohammad Mustafa Ahmedzai on 7:56 PM, June 01, 2010 said... #

@fid
where exactly are you facing problem. Were you able to add the box just above your comment box?

Do one thing replace Author-comment-body with comment-author


Let me know..

Bhagya රාජපක්ෂ on 8:14 PM, October 07, 2010 said... #
This comment has been removed by the author.
Bhagya රාජපක්ෂ on 8:16 PM, October 07, 2010 said... #

http://bhagyapwc.blogspot.com

can you please tell me what to put in to Author-comment-body ??

Gustavo Reis on 7:23 AM, October 31, 2010 said... #

Hello Mohammed,

Good evening!

I visited your tutorial from a Brazilian blog's article about emoticions at Blogger, called "Dicas para Blogs". I've talked with the blog's owner about my problems with Blogger, but he couldn't know what that problem. I visited your blog beyond his blog's origin and I resolve my problem with you so I see you're verye xperient in HTML and CSS, I'm sure you can help me. Let's?

Then, I followed your teachings, I added my own Ubuntu emoticions and wrote the correct codes as your codes with the image's correct codes. I also added the correct script codes part. I could save my blog.

I was going to test my comment. The emoticions work in the comment body. See the image:
http://img526.imageshack.us/img526/6928/listadeemoticions.png

But when I wrote a comment, the emoticions didn't appear, see the exmaple:
http://img502.imageshack.us/img502/9674/errodocomentrio.png

I know you would go to tell I should decrease many emoticions to few emoticions, but I've already decreased to 24 emoticions but the emoticions didn't appear in a comment that i wrote either.

Your emoticions work in my blog.
I don't know why and what this problem is. Then what is this problem?

Thank you!

Gustavo Reis
From Brazil

JennyKanchana on 4:51 AM, December 03, 2010 said... #

Hi Mohammed

this simply not works though, neither in FF nor with IE, i can see the emoticons with both browsers after installing them, but if you click they not appear in the comment box, i use MBT Church Test theme without any code.............

i have done this long and correct and now i am giving up

Mohammad Mustafa Ahmedzai on 11:58 PM, December 27, 2010 said... #

@Gustavo

Sorry brother I was busy with exams. If you are reading this comment then please confirm so that I could start helping you with the problem.

@JennyKanchana

Dude its simple. You just don't need to click the emoticons rather paste the code like :r :p. Hope you get it.

egyhacks on 9:49 PM, January 06, 2011 said... #
This comment has been removed by the author.
egyhacks on 9:51 PM, January 06, 2011 said... #

Mohammad ji,

Fantastic trick and it work like a charm

see my blog

www.egyhacks.net

Thanks.

PRASAD on 1:28 AM, March 14, 2011 said... #

Not working for me..pls check following url..

http://www.prasadchavan.tk/2011/03/will-we-be-able-to-see-and-know-our.html

samsexy98 on 9:35 AM, March 14, 2011 said... #

@Prasad
I checked your blog and you installed the codes correctly..
And I see that its not working...

Try replacing Author-comment-body with comment-author as suggested by Mohammad and lets us if it still doesn't work..

Pho3niX on 5:57 PM, April 24, 2011 said... #

hello bro mohammed just installed this script and the emos are visible already but after commenting it doesnt appear in the commented post

Pho3niX on 6:04 PM, April 24, 2011 said... #

forgot to enter my website
www.shababfci.com

kokbira on 7:04 AM, June 01, 2011 said... #

:(

mon.romanoff on 3:57 PM, June 11, 2011 said... #

Hi Mohammad!
Fantastic trick, thank you.
Please tell what to put instead of
'Author-comment-body'
http://westplains-mon.blogspot.com/

Mohammad Mustafa Ahmedzai on 8:59 PM, June 11, 2011 said... #

@mon.romanoff

thanks brother. In your case kindly replace it with comment-author

mon.romanoff on 5:17 AM, June 12, 2011 said... #

Thank you very much!

Koshka on 2:26 AM, June 16, 2011 said... #

http://hritikroshanisthebest.blogspot.com/

Tricky on 3:13 PM, July 20, 2011 said... #

Lol I have successfully added the code. Thank you, bro!

samiullah on 2:09 PM, August 02, 2011 said... #

surelink making designing look more smart !!

Pull Up banner

M.Pinto on 3:21 AM, August 31, 2011 said... #

Not working bro..

www.ProHacker.IN

M.Pinto on 4:20 AM, August 31, 2011 said... #

Dear Mhmd bro..
Please visit my blog and do help me..

Waiting eagerly!!

www.ProHacker.IN

instantinsurance on 2:05 AM, December 18, 2011 said... #

Este blog é uma representação exata de competências. Eu gosto da sua recomendação. Um grande conceito que reflete os pensamentos do escritor. Consultoria RH

pasindu on 3:43 PM, December 23, 2011 said... #

NIce emoticions

check this also it will increase value of these emoticions

http://www.tech-cave.com/2011/12/how-to-add-skype-emoticons-to-your-blog.html

Confused? Feel free to ask

Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Try the tutorial on our HTML Editor
3. Please do not spam Spam comments will be deleted immediately upon my review.

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

4907+ Followers

Join The Team!

Licensed Under CC

Recent Comments

Follow Me On Twitter

1954+ Followers

| My Blogger Tricks (MBT) © 2012. All Rights Reserved | Contact | About |