domingo, 6 de mayo de 2012

How to Change Default Anonymous Avatar in Blogger Comments

Earlier, you've seen how you can change the size of the avatars in blogger comments and now I will show you how to change or customize the default avatar of anonymous commenters or Blogger users with no picture on their profiles. While Blogger announced the new threaded commenting system, we can still customize it by adding a jQuery plugin to our template and then replace the default anonymous avatar that can be found on this address: http://img1.blogblog.com/img/anon36.png and the one for blogger users: http://img2.blogblog.com/img/b36-rounded.png ...with our own.

anonymous, default avatar, blogger blogspot

Replace the Default Anonymous Avatar on Blogger Comments


Step 1. Go to Dashboard - Template - click on the Edit HTML button


...click anywhere inside the code area and open the template search box by pressing the CTRL + F keys

Step 2. Type or paste this code in the search box, then hit Enter to find it:
</body>
Step 3. Just above the </body> tag, add the following code:
<script src='http://code.jquery.com/jquery-latest.js'/>
<script>
$(&quot;img[src=&#39;http://img1.blogblog.com/img/anon36.png&#39;]&quot;)
.attr(&#39;src&#39;, &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ6WVJKIgjo1Npt3sihT5rQ3To1W99CceWkS2JRQQzSlFrSlly2zhgA3eEVLKaqu9IHwSIiOOy_3ysnzjHigpfK1LeCQli5uRcZ1A5k7yIzkTUA5dsz-lBy-6iiCJoV1eaREVAJPYcZpw/s1600/default_avatar.gif&#39;)
.ssyby(&#39;blank&#39;)
</script>
<script src='http://code.jquery.com/jquery-latest.js'/>
<script>
$(&quot;img[src=&#39;http://img2.blogblog.com/img/b36-rounded.png&#39;]&quot;)
.attr(&#39;src&#39;, &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOz7ew4BsKWlbjm_8jbnSo8nmRSOffTGGDXt4IjHsr28aaloG94_ViggQw4oHTIqONPW_rT6uODFBVMLKTbAjVECNy0nmdk0vA8yPAYt3mvB5ZbiOpyqmoML8EQxtMSOKCrLK_xT2Gxyw/s1600/blogger-user.png&#39;)
.ssyby(&#39;blank&#39;)
</script>
Step 4. Save the changes by clicking on the Save Template button

Changing the default avatar

For Anonymous users: Replace the code in red with your image address
For Blogger users: Replace the URL in blue with your own.

You can choose an avatar from here and then copy the url of it:


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ6WVJKIgjo1Npt3sihT5rQ3To1W99CceWkS2JRQQzSlFrSlly2zhgA3eEVLKaqu9IHwSIiOOy_3ysnzjHigpfK1LeCQli5uRcZ1A5k7yIzkTUA5dsz-lBy-6iiCJoV1eaREVAJPYcZpw/s200/default_avatar.gif


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjnRk0tsa50JTYMciqZOclisr0EW_UW5cSEmuYHA1138M1-XvicguTkNuOEtYMgj0_2-GLR1sqcx2px2ZMcGWQ1QBBwI9fEfFIjG3JGd7BQYijO_qxddk8bz3cbU7MF4UlijpCzWRq2-Q/s1600/facebook.gif


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipJIXH6cRrpqmdXxhT_psQsSXz18MtGLlztWEzoQJpmo6de1DEBFbri_sAI93UastRYYSPxCXjZ4O5hC2zT822svSp8mXNwqsQXBtxUpQ67shXW8GC-rRJy4C_VZO1WoBnEO7d-jJZ_IU/s1600/anonymous3.png



https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgltWgXOUWMA0dQyukQUlfi7qyqYIvSPaCZd7I5vnJond1jmZVMuhm2ifMR_QWJrJN7gGFtwUFNfX5_uUSsnLsmVRojK7lhtwBYXfAznlbT2mIgiDi5eDQ2sPi2hyphenhyphen_G5e6CzChtK20qRxKm/s1600/blogger-user.png

That's it! If you found this trick useful, please consider sharing it.
Share:

0 comentarios:

Publicar un comentario

Popular Posts

Con la tecnología de Blogger.