Emoctions nos comentarios das postagens
Autor: #Ezio | Publicado: 2011-10-23T13:48:00-07:00

&nbsp; Aew' povoVou ensinar aqui hoje um truque muito simples,para colocar Smiles ou Emoticons, como queiram chamar nos comentários e, apesar de chamadas de “firulas infantis” por muitos, pra mim são carinhos ou expressões que “economizam” muitas palavras (e digitação kkk) quando queremos compartilhar nossas emoções. Só isso!&nbsp; Vou ensinar como eu coloquei aqui no meu,vamos lá:…Pode parecer muito comprido, mas é muito simples. Só copiar e colar.Faça login ► Clique na opção “Design” depois em “Editar HTML”Vamos instalar o CSS. Procure pela tal ]]&gt;&lt;/b:skin&gt; e cole o seguinte código ANTES/ACIMA dela./*      * jQuery CSSEmoticons plugin 0.2.8       *       * Copyright (c) 2010 Steve Schwartz (JangoSteve)       *       * Dual licensed under the MIT and GPL licenses:       *&nbsp;&nbsp; http://www.opensource.org/licenses/mit-license.php       *&nbsp;&nbsp; http://www.gnu.org/licenses/gpl.html       *       * Date: Sun Sep 20 10:00:00 2010 -0500       */       /* Basic styles for emoticons */       span.css-emoticon {       &nbsp; font-family: "Trebuchet MS"; /* seems to give the best and most consistent emoticon appearance */       &nbsp; font-size: 0.65em;       &nbsp; font-weight: bold;       &nbsp; color: #000000;       &nbsp; display: inline-block;       &nbsp; overflow: hidden;       &nbsp; vertical-align: middle;       &nbsp; transform: rotate(90deg);       &nbsp; -webkit-transform: rotate(90deg);       &nbsp; -moz-transform: rotate(90deg);       &nbsp; -o-transform: rotate(90deg);       &nbsp; width: 1.54em; /* note that this is a multiple of this span's font-size, not containing text font-size */       &nbsp; height: 1.54em; /* so, relative to containing text, width and height are 0.9 x 1.6 = 1.44em */       &nbsp; text-align: center;       &nbsp; padding: 0;       &nbsp; line-height: 1.34em;       &nbsp; -moz-border-radius: 1.54em;       &nbsp; -webkit-border-radius: 1.54em;       &nbsp; border-radius: 1.54em;       &nbsp; -moz-box-shadow: 1px -1px 2px rgba(0,0,0,0.5);       &nbsp; -webkit-box-shadow: 1px -1px 2px rgba(0,0,0,0.5);       &nbsp; box-shadow: 1px -1px 2px rgba(0,0,0,0.5);       &nbsp; border: 1px solid rgba(0,0,0,0.25);       &nbsp; background-color: #ffcc00;       &nbsp; background-image: -webkit-gradient(       &nbsp;&nbsp;&nbsp; linear,       &nbsp;&nbsp;&nbsp; right top,       &nbsp;&nbsp;&nbsp; left top,       &nbsp;&nbsp;&nbsp; color-stop(0.41, rgb(255,204,0)),       &nbsp;&nbsp;&nbsp; color-stop(0.56, rgb(255,221,85)),       &nbsp;&nbsp;&nbsp; color-stop(1, rgb(255,238,170))       &nbsp; );       &nbsp; background-image: -moz-linear-gradient(       &nbsp;&nbsp;&nbsp; center right,       &nbsp;&nbsp;&nbsp; rgb(255,204,0) 41%,       &nbsp;&nbsp;&nbsp; rgb(255,221,85) 56%,       &nbsp;&nbsp;&nbsp; rgb(255,238,170) 100%       &nbsp; );       &nbsp; -webkit-transition-property:color, background, transform;&nbsp; &nbsp; -webkit-transition-duration: 1s, 1s;&nbsp; &nbsp; -webkit-transition-timing-function: linear, ease-in;       } /* Styles for two-character emoticons that need more letter-spacing for proportionality */      span.css-emoticon.spaced-emoticon {       &nbsp; padding-left: 0.2em;       &nbsp; width: 1.34em;       &nbsp; letter-spacing: 0.2em;       } /* This is a dirty dirty hack, because webkit doesn't properly do the padding+width=total-width as it should      &nbsp;&nbsp; I think the width of the border may be throwing things off, because it's more noticable for small icons */       @media screen and (-webkit-min-device-pixel-ratio:0) {       &nbsp; span.css-emoticon.spaced-emoticon {       &nbsp;&nbsp;&nbsp; width: 1.4em;       &nbsp; }       } /* Styles for emoticons that need to have smaller characters to fit inside the circle */      span.css-emoticon.small-emoticon {       &nbsp; font-size: 0.55em;       &nbsp; width: 1.82em;       &nbsp; height: 1.82em;       &nbsp; line-height: 1.72em;       &nbsp; -moz-border-radius: 1.82em;       &nbsp; -webkit-border-radius: 1.82em;       &nbsp; border-radius: 1.82em;       } span.css-emoticon.small-emoticon.spaced-emoticon {      &nbsp; padding-left: 0;       &nbsp; width: 1.82em;       &nbsp; letter-spacing: 0.1em;       } /* Styles for additional colors */      span.css-emoticon.red-emoticon {       &nbsp; background-color: #eb0542;       &nbsp; background-image: -webkit-gradient(       &nbsp;&nbsp;&nbsp; linear,       &nbsp;&nbsp;&nbsp; right top,       &nbsp;&nbsp;&nbsp; left top,       &nbsp;&nbsp;&nbsp; color-stop(0.41, rgb(235,5,66)),       &nbsp;&nbsp;&nbsp; color-stop(0.56, rgb(235,38,90)),       &nbsp;&nbsp;&nbsp; color-stop(1, rgb(250,55,110))       &nbsp; );       &nbsp; background-image: -moz-linear-gradient(       &nbsp;&nbsp;&nbsp; center right,       &nbsp;&nbsp;&nbsp; rgb(235,5,66) 41%,       &nbsp;&nbsp;&nbsp; rgb(235,38,90) 56%,       &nbsp;&nbsp;&nbsp; rgb(250,55,110) 100%       &nbsp; );       } span.css-emoticon.pink-emoticon {      &nbsp; background-color: #ff8fd4;       &nbsp; background-image: -webkit-gradient(       &nbsp;&nbsp;&nbsp; linear,       &nbsp;&nbsp;&nbsp; right top,       &nbsp;&nbsp;&nbsp; left top,       &nbsp;&nbsp;&nbsp; color-stop(0.41, rgb(255,143,212)),       &nbsp;&nbsp;&nbsp; color-stop(0.56, rgb(255,153,216)),       &nbsp;&nbsp;&nbsp; color-stop(1,&nbsp;&nbsp;&nbsp; rgb(255,173,225))       &nbsp; );       &nbsp; background-image: -moz-linear-gradient(       &nbsp;&nbsp;&nbsp; center right,       &nbsp;&nbsp;&nbsp; rgb(255,143,212) 41%,       &nbsp;&nbsp;&nbsp; rgb(255,153,216) 56%,       &nbsp;&nbsp;&nbsp; rgb(255,173,225) 100%       &nbsp; );       } /* styles for emoticons that need no rotation, like O_o */      span.css-emoticon.no-rotate {       &nbsp; transform: rotate(0deg);       &nbsp; -webkit-transform: rotate(0deg);       &nbsp; -moz-transform: rotate(0deg);       &nbsp; -o-transform: rotate(0deg);       &nbsp; -moz-box-shadow: 1px 1px 2px rgba(0,0,0,0.5);       &nbsp; -webkit-box-shadow: 1px 1px 2px rgba(0,0,0,0.5);       &nbsp; box-shadow: 1px 1px 2px rgba(0,0,0,0.5);       &nbsp; font-size: 0.45em;       &nbsp; width: 2.2em;       &nbsp; height: 2.2em;       &nbsp; line-height: 1.9em;       &nbsp; -moz-border-radius: 2.2em;       &nbsp; -webkit-border-radius: 2.2em;       &nbsp; border-radius: 2.2em;       &nbsp; background-image: -webkit-gradient(       &nbsp;&nbsp;&nbsp; linear,       &nbsp;&nbsp;&nbsp; right bottom,       &nbsp;&nbsp;&nbsp; right top,       &nbsp;&nbsp;&nbsp; color-stop(0.41, rgb(255,204,0)),       &nbsp;&nbsp;&nbsp; color-stop(0.56, rgb(255,221,85)),       &nbsp;&nbsp;&nbsp; color-stop(1, rgb(255,238,170))       &nbsp; );       &nbsp; background-image: -moz-linear-gradient(       &nbsp;&nbsp;&nbsp; center bottom,       &nbsp;&nbsp;&nbsp; rgb(255,204,0) 41%,       &nbsp;&nbsp;&nbsp; rgb(255,221,85) 56%,       &nbsp;&nbsp;&nbsp; rgb(255,238,170) 100%       &nbsp; );       } span.css-emoticon.no-rotate.red-emoticon {      &nbsp; background-image: -webkit-gradient(       &nbsp;&nbsp;&nbsp; linear,       &nbsp;&nbsp;&nbsp; right bottom,       &nbsp;&nbsp;&nbsp; right top,       &nbsp;&nbsp;&nbsp; color-stop(0.41, rgb(235,5,66)),       &nbsp;&nbsp;&nbsp; color-stop(0.56, rgb(235,38,90)),       &nbsp;&nbsp;&nbsp; color-stop(1, rgb(250,55,110))       &nbsp; );       &nbsp; background-image: -moz-linear-gradient(       &nbsp;&nbsp;&nbsp; center bottom,       &nbsp;&nbsp;&nbsp; rgb(235,5,66) 41%,       &nbsp;&nbsp;&nbsp; rgb(235,38,90) 56%,       &nbsp;&nbsp;&nbsp; rgb(250,55,110) 100%       &nbsp; );       } span.css-emoticon.no-rotate.pink-emoticon {      &nbsp; background-image: -webkit-gradient(       &nbsp;&nbsp;&nbsp; linear,       &nbsp;&nbsp;&nbsp; right bottom,       &nbsp;&nbsp;&nbsp; right top,       &nbsp;&nbsp;&nbsp; color-stop(0.41, rgb(255,143,212)),       &nbsp;&nbsp;&nbsp; color-stop(0.56, rgb(255,153,216)),       &nbsp;&nbsp;&nbsp; color-stop(1,&nbsp;&nbsp;&nbsp; rgb(255,173,225))       &nbsp; );       &nbsp; background-image: -moz-linear-gradient(       &nbsp;&nbsp;&nbsp; center bottom,       &nbsp;&nbsp;&nbsp; rgb(255,143,212) 41%,       &nbsp;&nbsp;&nbsp; rgb(255,153,216) 56%,       &nbsp;&nbsp;&nbsp; rgb(255,173,225) 100%       &nbsp; );       } /* Styles for emoticons that need to be rotated counter-clockwise, like &lt;3 */      span.css-emoticon.counter-rotated {       &nbsp; transform: rotate(-90deg);       &nbsp; -webkit-transform: rotate(-90deg);       &nbsp; -moz-transform: rotate(-90deg);       &nbsp; -o-transform: rotate(-90deg);       &nbsp; -moz-box-shadow: -1px 1px 2px rgba(0,0,0,0.5);       &nbsp; -webkit-box-shadow: -1px 1px 2px rgba(0,0,0,0.5);       &nbsp; box-shadow: -1px 1px 2px rgba(0,0,0,0.5);       &nbsp; background-image: -webkit-gradient(       &nbsp;&nbsp;&nbsp; linear,       &nbsp;&nbsp;&nbsp; left top,       &nbsp;&nbsp;&nbsp; right top,       &nbsp;&nbsp;&nbsp; color-stop(0.41, rgb(255,204,0)),       &nbsp;&nbsp;&nbsp; color-stop(0.56, rgb(255,221,85)),       &nbsp;&nbsp;&nbsp; color-stop(1, rgb(255,238,170))       &nbsp; );       &nbsp; background-image: -moz-linear-gradient(       &nbsp;&nbsp;&nbsp; center left,       &nbsp;&nbsp;&nbsp; rgb(255,204,0) 41%,       &nbsp;&nbsp;&nbsp; rgb(255,221,85) 56%,       &nbsp;&nbsp;&nbsp; rgb(255,238,170) 100%       &nbsp; );       } span.css-emoticon.counter-rotated.red-emoticon {      &nbsp; background-image: -webkit-gradient(       &nbsp;&nbsp;&nbsp; linear,       &nbsp;&nbsp;&nbsp; left top,       &nbsp;&nbsp;&nbsp; right top,       &nbsp;&nbsp;&nbsp; color-stop(0.41, rgb(235,5,66)),       &nbsp;&nbsp;&nbsp; color-stop(0.56, rgb(235,38,90)),       &nbsp;&nbsp;&nbsp; color-stop(1, rgb(250,55,110))       &nbsp; );       &nbsp; background-image: -moz-linear-gradient(       &nbsp;&nbsp;&nbsp; center left,       &nbsp;&nbsp;&nbsp; rgb(235,5,66) 41%,       &nbsp;&nbsp;&nbsp; rgb(235,38,90) 56%,       &nbsp;&nbsp;&nbsp; rgb(250,55,110) 100%       &nbsp; );       } span.css-emoticon.counter-rotated.pink-emoticon {      &nbsp; background-image: -webkit-gradient(       &nbsp;&nbsp;&nbsp; linear,       &nbsp;&nbsp;&nbsp; left top,       &nbsp;&nbsp;&nbsp; right top,       &nbsp;&nbsp;&nbsp; color-stop(0.41, rgb(255,143,212)),       &nbsp;&nbsp;&nbsp; color-stop(0.56, rgb(255,153,216)),       &nbsp;&nbsp;&nbsp; color-stop(1,&nbsp;&nbsp;&nbsp; rgb(255,173,225))       &nbsp; );       &nbsp; background-image: -moz-linear-gradient(       &nbsp;&nbsp;&nbsp; center left,       &nbsp;&nbsp;&nbsp; rgb(255,143,212) 41%,       &nbsp;&nbsp;&nbsp; rgb(255,153,216) 56%,       &nbsp;&nbsp;&nbsp; rgb(255,173,225) 100%       &nbsp; );       } /* Styles for animated states */      span.css-emoticon.un-transformed-emoticon, span.css-emoticon.animated-emoticon:hover {       &nbsp;&nbsp;&nbsp; /* font-size: inherit;       &nbsp;&nbsp;&nbsp; font-weight: inherit;       &nbsp;&nbsp;&nbsp; vertical-align: inherit;       &nbsp;&nbsp;&nbsp; line-height: inherit;       &nbsp;&nbsp;&nbsp; font-family: inherit; */       &nbsp;&nbsp;&nbsp; letter-spacing: inherit;       &nbsp;&nbsp;&nbsp; color: inherit;       &nbsp;&nbsp;&nbsp; overflow: visible;       &nbsp;&nbsp;&nbsp; transform: rotate(0deg);       &nbsp;&nbsp;&nbsp; -webkit-transform: rotate(0deg);       &nbsp;&nbsp;&nbsp; -moz-transform: rotate(0deg);       &nbsp;&nbsp;&nbsp; -o-transform: rotate(0deg);       &nbsp;&nbsp;&nbsp; background: none;       &nbsp;&nbsp;&nbsp; background-image: none;       &nbsp;&nbsp;&nbsp; box-shadow: none;       &nbsp;&nbsp;&nbsp; -moz-box-shadow: none;       &nbsp;&nbsp;&nbsp; -webkit-box-shadow: none;       &nbsp;&nbsp;&nbsp; border-color: transparent;       }Feito isso, procure pela tag &lt;/body&gt; no final do documento XML .Copie o código abaixo e cole ANTES / ACIMA&nbsp; de &lt;/body&gt;&lt;script src='http://dl.dropbox.com/u/684300/jquery.cssemoticons.min.js' type='text/javascript'/&gt; &lt;script type='text/javascript'&gt;      $(document).ready(function(){       $(&amp;#39;.comment-body p&amp;#39;).emoticonize({       //delay: 800,       //animate: false,       //exclude: &amp;#39;pre, code, .no-emoticons&amp;#39;       });       })       &lt;/script&gt;Salve o template. Copie o endereço abaixo, que são as imagens que eu editei para esse exemplo&nbsp; e cole em um bloco de notas.&lt;img border='0' src='http://2.bp.blogspot.com/_DCJ4PAWLOdE/TLbcdwvITLI/AAAAAAAAE60/9xNKzhbaqbM/s1600/Emoticons.png'/&gt;&lt;/img&gt;Volte a página “Editar HTML” , clique na opção “Expandir modelos de widgets” e procure pelo seguinte trecho: &lt;data:blogCommentMessage/&gt;&lt;/p&gt;Cole EXATAMENTE ABAIXO dele, o endereço das imagens que você copiou em seu bloco de notas.Visualize e se estiver tudo bem, salve o template.……Detalhes importantes:1 - No Internet Explorer (o IEca) que ainda não lê CSS3 (tadinho) os emoticons aparecerão quadradinhos, mas não perdem (muito) a graça, veja:… …2- Aconselho que você salve a imagem dos emoticons e hospede no seu próprio blog, através da caixa de postagens como já ensinei AQUI… …3- O mesmo conselho se aplica ao JQuery (script), que você deve hospedar&nbsp; em seu site preferido (eu uso Dropbox) e pode baixar AQUIEsse truque foi apresentado por Alfa Jango&nbsp; (em inglês) e tem uma excelente página com demonstrações de todos os tipos de Emoticons possíveis de inserir. VEJA DEMOEu li e apliquei através do&nbsp; PIZCOS BLOG (em espanhol)&nbsp; e daí adaptei para vocês.Espero que gostem!