Gostou do blog ? então curta nossa página no Facebook:

Colocar emoticons nos Comentários do Blogger

Existe um "hacker" que permite colocar emoticons parecidos como os do msn, colocar nas postagens do blog, para isso você tem que incorporar abaixo das postagens, vá em configurações > comentários
procure por Posição do formulário de comentários e escolha a opção: Postagem abaixo incorporada.



layout, editar html clique em "expandir modelos de widgets" e localize a seguinte linha:

<p><data:blogCommentMessage/></p>

e cole o seguinte código logo ABAIXO dela:

<div style=' width: 370px; text-align: left; border: 2px solid #0084ce; background: #FEF9EA; padding: 10px; color:#0084ce; font-weight:bold; '>
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2s57d7tPvwhoT59FSzJy57BiTt6VIz0S1BprjwUUD1-yD7bdw_8CM4eZ-k3VOI3EexmxiClhrPqNV2TrSpZpaFQjyQeCeciFLXlgYUWOLHlOA4Z6VRKA3PxjrDvgLaBGr-wOn0BuR5OE/s800/emoticon-0100-smile.gif'/> :a


<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHHHkXw2wyKeqDDe-MBw0nIROvo-duy3cI0ZnBUwP8hvzqUuWu8htkfFE6SJbXPS6ohs1jJZxzAbd13fyJ3KO0YmVxjW3CKKZcoh2D9N8gEhoHPCV8_PXBSJu0yuv1M7URxUHEqVN1J6c/s800/emoticon-0101-sadsmile.gif'/> :b


<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnx8FXUPCL64qXfoo4418ByPCGKAh3VQShBeCNxsuVqfqUPJ4YLJ8HQQhMEed_vaGVOdF43ruVzr8f-LJec3Be6Ue161Futfj2IjuHkuMsnz8XTcUADJsM57vRhH3eRcNV9VWpiEbhwYQ/s800/emoticon-0102-bigsmile.gif'/> :c


<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnJ8sa4MMLallQ5RoD2o2ZHYsK6zWYChgfly2WZ_Yl13JnlU7LWSJGHkNNMyCEw82ZoyKM9lDbOYzrQvGu2H2SxiE1LyYD9cYmgE_f3IoU4RB9R1M-tRpBkxs4LA5u3w7cMm2XrhVNEa4/s800/emoticon-0105-wink.gif'/> :d


<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYeerMemTzYPEUM0pB-in4V7pOCd7KlqViDGzMR0CXtmTKseQwnGoqshZvRZqT0fdpJkzyirSit0Hj_HoraDa-eEdXR9CBw8No4YEnXFkNCcw5pthWlD9ksJis5DjbyrOJJXFGXzhXq70/s800/emoticon-0104-surprised.gif'/> :e

<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDuvFdjk2mh97qwQ7B262qFtHAeIDanIGiOYxC3eFeOwDfAzxA5Ob190vfRjl5EaZLraO3Oq8EDBJuZWukURGoNI7x0dByEL6_TFfk_-YskDj87aoP4Ml40S1sH2kcndCkv2RljePN1LE/s800/emoticon-0106-crying.gif'/> :f

<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmYKO4sKq44-mKXWZ_nnDroNzaCc0QmEk6QFBWjAH20IzEXvkas3JkEYqI_kIZKXa4LocbGs_97gFaNo9VMGyVZSZ83L8Ju5wTow_kUFK9q8uVBNgijVkpzjB0obu_CShMm5ZQyG8XmBc/s800/emoticon-0109-kiss.gif'/> :g


<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJyaFBy2FKPnt3eQ2Ml7y_7b5XtFOR6MCGpp_dwAH-J4twEtnUQhCR8604CrxuhDpmCBB8OoD73vtB8BhoNfpHv6DSQH1jGZBcTzZVdWt25juHqIh0ggsXyEGTHO_z06cuXrk4DcTZYCs/s800/emoticon-0111-blush.gif'/> :h


<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxUcSg52-Ue9EEaifcB6UScExV3Sk-4PVIXio7gM72u-a506h2CbCB58KwVw5xP_yBEmi6OzF-UgQqMe62w2FklK2oyDJ7c0iI8_rSFSRnpV_yXN34Z28ZHP8po_sY2EIXuIQtHVpa2go/s800/emoticon-0110-tongueout.gif'/> :i


<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihq4XssRZI9DWkLOdXyGmZerE401ZRR_FgI5Kbq-HqfMiZZsL6IHQQpgAnWo_0VH00GVab4DatijbOzhaA5QXORPkLl8hLVZyDJ-_LpB04L0FNn2UTSF2TWpnNgKxRK_wqQ8-1hvqczMs/s800/emoticon-0126-nerd.gif'/> :j


<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYxgw1GiAx7qpTNI86JTdjdw-X9uzGfXnQBpPePz3xbvEnNER76mUu2DmDxUbTwaw5vSUBgzjA5igswOTyuvVUAtjW6rnczfDLxx6DNIpe-kBP6FOFWSCUd5ZcpsP6KSQ1Q7Q5PKid944/s800/emoticon-0103-cool.gif'/> :k


<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGM6SEMSKrxGCAgKXrn553qDxRd_uX8IYiqGhV_wx0Zv2eBs26Bwpls0IgKGwWNYeXAiL_PMfl-F52sgXo10r-SiFYv6CXtkvgX8KC6luPRrg-TFnQg1oi5ft3UE862TdOTRB-_le456k/s800/emoticon-0130-devil.gif'/> :l


<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8DfMNTbFvxnwOSepqEUg7YAQddamwOlfKQ8YCEZuyJubHAORJ538gMpEdbwf6KtSsJS3uANpbW0CSKwplELP-4IEg3l0BnwQ4_3FFVR-TVaiIuGPeytbaxMziuXei1t2mAr_sk64je1g/s800/emoticon-0133-wait.gif'/> :m


<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLoKo0yr1mmd3NZvOz-tmC_96PkmE5oCBx6xj0FNI9peHE7TjrNHWA1LHzDRw7I1DiO_D5TV7sELIEAFFEa5VNYVRhhnAvIga3lR7hBFk11wuZyUPIATbENzt4vOCUtl-BhjESkQQY9T4/s800/emoticon-0137-clapping.gif'/> :n


<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh4QHMoo_GWfkQdTUKCqqXRExOCDC53YOUiNrGzC-Upp-lZPUBHVNB6YGPj2mVvDsqIFXLZcUuSlkre0DHAg6Jmw9jdXaKItBtjaSguUKv1U7NfxIylK1biEW8QFa8aQXTR2OCCSQC9O0/s800/emoticon-0136-giggle.gif'/> :o


<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg1ChL1OtuaeRpY9PCsMnpGJBEo2Z_ofB00zhN9WkWwX9SwbUAQTEMj7_O0a8b6MDFQCw7P_nlVn8aLLJ3NwoukBU3prCAe4DwcjDwTyNFKKqFYQaH4hEorO1T4j-LL_-WUb78B5RONdQ/s800/emoticon-0141-whew.gif'/> :p
</div>

E salve as modificações.


Agora temos que incluir os scripts para permitir os emoticons nos comentários do blog


entre na pagina layout, editar html e não precisa clicar em expandir modelos de widgets, copie o código abaixo e cole-o antes de </body>

<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='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihq4XssRZI9DWkLOdXyGmZerE401ZRR_FgI5Kbq-HqfMiZZsL6IHQQpgAnWo_0VH00GVab4DatijbOzhaA5QXORPkLl8hLVZyDJ-_LpB04L0FNn2UTSF2TWpnNgKxRK_wqQ8-1hvqczMs/s800/emoticon-0126-nerd.gif' alt='' class='smiley'/>");
_str = _str.replace(/:k/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYxgw1GiAx7qpTNI86JTdjdw-X9uzGfXnQBpPePz3xbvEnNER76mUu2DmDxUbTwaw5vSUBgzjA5igswOTyuvVUAtjW6rnczfDLxx6DNIpe-kBP6FOFWSCUd5ZcpsP6KSQ1Q7Q5PKid944/s800/emoticon-0103-cool.gif' alt='' class='smiley'/>");
_str = _str.replace(/:l/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGM6SEMSKrxGCAgKXrn553qDxRd_uX8IYiqGhV_wx0Zv2eBs26Bwpls0IgKGwWNYeXAiL_PMfl-F52sgXo10r-SiFYv6CXtkvgX8KC6luPRrg-TFnQg1oi5ft3UE862TdOTRB-_le456k/s800/emoticon-0130-devil.gif' alt='' class='smiley'/>");
_str = _str.replace(/:m/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8DfMNTbFvxnwOSepqEUg7YAQddamwOlfKQ8YCEZuyJubHAORJ538gMpEdbwf6KtSsJS3uANpbW0CSKwplELP-4IEg3l0BnwQ4_3FFVR-TVaiIuGPeytbaxMziuXei1t2mAr_sk64je1g/s800/emoticon-0133-wait.gif' alt='' class='smiley'/>");
_str = _str.replace(/:n/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLoKo0yr1mmd3NZvOz-tmC_96PkmE5oCBx6xj0FNI9peHE7TjrNHWA1LHzDRw7I1DiO_D5TV7sELIEAFFEa5VNYVRhhnAvIga3lR7hBFk11wuZyUPIATbENzt4vOCUtl-BhjESkQQY9T4/s800/emoticon-0137-clapping.gif' alt='' class='smiley'/>");
_str = _str.replace(/:o/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh4QHMoo_GWfkQdTUKCqqXRExOCDC53YOUiNrGzC-Upp-lZPUBHVNB6YGPj2mVvDsqIFXLZcUuSlkre0DHAg6Jmw9jdXaKItBtjaSguUKv1U7NfxIylK1biEW8QFa8aQXTR2OCCSQC9O0/s800/emoticon-0136-giggle.gif' alt='' class='smiley'/>");
_str = _str.replace(/:p/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg1ChL1OtuaeRpY9PCsMnpGJBEo2Z_ofB00zhN9WkWwX9SwbUAQTEMj7_O0a8b6MDFQCw7P_nlVn8aLLJ3NwoukBU3prCAe4DwcjDwTyNFKKqFYQaH4hEorO1T4j-LL_-WUb78B5RONdQ/s800/emoticon-0141-whew.gif' alt='' class='smiley'/>");
_str = _str.replace(/:a/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2s57d7tPvwhoT59FSzJy57BiTt6VIz0S1BprjwUUD1-yD7bdw_8CM4eZ-k3VOI3EexmxiClhrPqNV2TrSpZpaFQjyQeCeciFLXlgYUWOLHlOA4Z6VRKA3PxjrDvgLaBGr-wOn0BuR5OE/s800/emoticon-0100-smile.gif' alt='' class='smiley'/>");
_str = _str.replace(/:b/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHHHkXw2wyKeqDDe-MBw0nIROvo-duy3cI0ZnBUwP8hvzqUuWu8htkfFE6SJbXPS6ohs1jJZxzAbd13fyJ3KO0YmVxjW3CKKZcoh2D9N8gEhoHPCV8_PXBSJu0yuv1M7URxUHEqVN1J6c/s800/emoticon-0101-sadsmile.gif' alt='' class='smiley'/>");
_str = _str.replace(/:c/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnx8FXUPCL64qXfoo4418ByPCGKAh3VQShBeCNxsuVqfqUPJ4YLJ8HQQhMEed_vaGVOdF43ruVzr8f-LJec3Be6Ue161Futfj2IjuHkuMsnz8XTcUADJsM57vRhH3eRcNV9VWpiEbhwYQ/s800/emoticon-0102-bigsmile.gif' alt='' class='smiley'/>");
_str = _str.replace(/:d/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnJ8sa4MMLallQ5RoD2o2ZHYsK6zWYChgfly2WZ_Yl13JnlU7LWSJGHkNNMyCEw82ZoyKM9lDbOYzrQvGu2H2SxiE1LyYD9cYmgE_f3IoU4RB9R1M-tRpBkxs4LA5u3w7cMm2XrhVNEa4/s800/emoticon-0105-wink.gif' alt='' class='smiley'/>");
_str = _str.replace(/:e/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYeerMemTzYPEUM0pB-in4V7pOCd7KlqViDGzMR0CXtmTKseQwnGoqshZvRZqT0fdpJkzyirSit0Hj_HoraDa-eEdXR9CBw8No4YEnXFkNCcw5pthWlD9ksJis5DjbyrOJJXFGXzhXq70/s800/emoticon-0104-surprised.gif' alt='' class='smiley'/>");
_str = _str.replace(/:f/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDuvFdjk2mh97qwQ7B262qFtHAeIDanIGiOYxC3eFeOwDfAzxA5Ob190vfRjl5EaZLraO3Oq8EDBJuZWukURGoNI7x0dByEL6_TFfk_-YskDj87aoP4Ml40S1sH2kcndCkv2RljePN1LE/s800/emoticon-0106-crying.gif' alt='' class='smiley'/>");
_str = _str.replace(/:g/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmYKO4sKq44-mKXWZ_nnDroNzaCc0QmEk6QFBWjAH20IzEXvkas3JkEYqI_kIZKXa4LocbGs_97gFaNo9VMGyVZSZ83L8Ju5wTow_kUFK9q8uVBNgijVkpzjB0obu_CShMm5ZQyG8XmBc/s800/emoticon-0109-kiss.gif' alt='' class='smiley'/>");
_str = _str.replace(/:h/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJyaFBy2FKPnt3eQ2Ml7y_7b5XtFOR6MCGpp_dwAH-J4twEtnUQhCR8604CrxuhDpmCBB8OoD73vtB8BhoNfpHv6DSQH1jGZBcTzZVdWt25juHqIh0ggsXyEGTHO_z06cuXrk4DcTZYCs/s800/emoticon-0111-blush.gif' alt='' class='smiley'/>");
_str = _str.replace(/:i/ig,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxUcSg52-Ue9EEaifcB6UScExV3Sk-4PVIXio7gM72u-a506h2CbCB58KwVw5xP_yBEmi6OzF-UgQqMe62w2FklK2oyDJ7c0iI8_rSFSRnpV_yXN34Z28ZHP8po_sY2EIXuIQtHVpa2go/s800/emoticon-0110-tongueout.gif' alt='' class='smiley'/>")
b.item(i).innerHTML = _str;
}
}
}


//]]>


</script>

clique em salvar !

2 comentários:

Anônimo disse...

Funciona perfeitamente. Obrigado, foi muito útil!

Unknown disse...

Funcionou normalmente gostei valew cara

© 2010 | Rei do Bloguinho |Todos os direitos reservados
topo ↑