Saturday, July 28, 2012

How to Make the Blogger Posts Have a Calendar for the Date in

It's quite common to see calendar style dates next to some WordPress posts but for the Blogger platform it isn't always easy adding it. But who said you can't do it? You need to look no further than this blog. In this tutorial, we'll learn how to create a calendar style for your Blogger posts date!


How to create calendar style dates in Blogger



Step 1. Go to "Settings" > "Language and Formatting" - "Date Header Format" and change the date format as you can see in this example below (first add day, month and finally year)
 

Step 2. Go to Template > click the "Edit HTML" button


Step 3. Click anywhere inside the code area and press CTRL + F to open the blogger' search box

Step 4. Type or paste the following line inside the search box and hit Enter to find it:
<h2 class='date-header'><span><data:post.dateHeader/></span></h2>
Step 5. In case you find it twice, replace it twice with this code:
<div id='Date'>
<script>changeDate(&#39;<data:post.dateHeader/>&#39;);</script>
</div>
<b:else/>
<div id='Date'>
<script>changeDate(&#39;&#39;);</script>
</div>
Step 6. Now type this tag inside the search box and hit Enter to find it:
</head>
Step 7. Just above the </head> tag, paste this code:
<script type='text/javascript'>
//<![CDATA[
var DateCalendar;
function changeDate(d){
if (d == "") {
d = DateCalendar;
}
var da = d.split(' ');
day = "<strong class='date_day'>"+da[0]+"</strong>";
month = "<strong class='date_month'>"+da[1].slice(0,3)+"</strong>";
year = "<strong class='date_year'>"+da[2]+"</strong>";
document.write(month+day+year);
DateCalendar = d;
}
//]]>
</script>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<style type='text/css'>
/* Calendar style date
----------------------------------------------- */
#Date {
background: transparent url(http://1.bp.blogspot.com/-NVj6tUKJgLo/UBShW2dCLSI/AAAAAAAACZk/3TkTa8Hzqt0/s1600/calendar07.png) no-repeat;
display: block;
width:60px;
height:60px;
float: left;
margin: 15px 2px -40px -108px;
padding: 0 0 8px 0px;
border: 0;
text-transform: uppercase;
}
.date_month {
display: block;
font-size: 15px;
font-weight:bold;
margin-top:-1px;
text-align:center;
color:#ffffff; /* Month's color */
}
.date_day {
display: block;
font-size: 28px;
font-weight:bold;
margin-top:-8px;
text-align:center;
color:#282828; /* Day's color */
}
.date_year {
display: block;
font-size: 10px;
margin-top:-8px;
text-align:center;
color:#282828; /* Year's color */
}
</style>
</b:if>
Before saving the Template, here we can make some changes:

- To change the calendar style, replace the url in blue with yours;
- If the calendar doesn't appear as it should, change -108 with 0;
- With green are marked the areas where you can change the color of the dates

Step 8. Now Preview your Template and if everything looks ok, hit the Save Template button.

That was all... Enjoy!

Monday, June 4, 2012

How to Create Drop Caps (Big First Letters) in Blogger/Blogspot

Here's another way to customize your Blog. In this case, your Posts and Comment's first letter. The effect is a large first letter stretching down three or four lines with the text wrapped around. The drop cap letter can also use a different font and have a different color from the rest of the text. This style can be often seen in newspapers, literature, magazines. So, in this tutorial I will show you how to apply automatically a Magazine text style on Blogger Posts and Comments. Let's start adding it...

-> Add Drop Caps For Blogger Posts

drop caps, blogger blogspot, tutorials

-> Add Drop Caps For Blogger Comments

drop caps, first letter, blogger

Big First Letter for your Blogger / Blogspot Posts


Step 1. From your Blogger Dashboard, go to Template and click on the Edit HTML button:


Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the Blogger' search box. Type this piece of code inside the search box then hit Enter to find it:
]]></b:skin>
Note: you might need to click on the arrow next to it to expand the code within and then you need to search ]]></b:skin> one more time.

Step 3. Just above ]]></b:skin>, add the following CSS code:
.capital:first-letter {
float: left;
display: block;
font-family: Times, serif, Georgia;
font-size: 40px;
color: #000000;
margin:0px 5px 0 0;
padding:0 0 0 10px;
}
Color - change the value in blue with the hex of your color
Size - to change the letter size, increase/decrease the value highlighted in pink.

Step 4. Now search for this code:
<data:post.body/>
Step 5. Then immediately before and after add the red fragments you see in the example below:
 <div class='capital'><data:post.body/></div>
Step 6. Save the changes by clicking on the Save template button.

Important! If the above code is not working, add one of following codes from this example:
<p class="capital"><data:post.body/></p>
Or try this instead:
<span class="capital"><data:post.body/></span>

Big First Letter For Blogger/Blogspot Comments

Step 1. Log in to your Blogger account > go to Template > Edit HTML > click anywhere inside the code area and press CTRL + F keys to open the search box

Step 2. Type the following piece of code inside the search box and hit Enter to find it (if you have already added this code, skip step 2 & 3):
]]></b:skin>
Step 3. Add the following code just above ]]></b:skin>:
.capital:first-letter {
float: left;
display: block;
font-family: Times, serif, Georgia;
font-size: 40px;
color: #000000;
margin:0px 5px 0 0;
padding:0 0 0 10px;
}
Color - to change the letter color, replace the value in blue with the value of your color. Here's a tool that might help you to find the hex of the color that you need: Color Code Generator
Size - to change the letter size, change the value in pink.

Step 4. Then Search for this piece of code:
<data:comment.body/>
Step 5. Add the red codes before and after <data:comment.body/> as you can see in my example below:
<p class="capital"><data:comment.body/></p>
Step 6. Save your Template.

That's it! Now you have a cool drop cap first letter on your blog. If you have any question, leave a comment below!

Saturday, June 2, 2012

Numbered comments on threaded comments for Blogger/Blogspot

In a previous tutorial you've seen how you can add numbered comments to your blogger blog, unfortunately, this trick worked only for those who don't have the reply option and are still using the old blogger commenting system. But we won't have any problem this time because this tutorial will show you how to add numbered comments with comment bubbles on the threaded comments, as well ;)

What the following CSS trick will do for you:
  1. When the general block of comments is initiating (.comments-content) a counter called countcomments activates and starts with an initial value of 1. 
  2. Then, each time the code flow goes through a review of any level, either the original comment or a reply (.comment-thread li), it will bring us in front (:before) of the comment's body the number that is the counter.
  3. Finally, this is incremented in the counter (counter-increment).
See the screenshot:
count comments, comment bubble, forum, blogger

Isn't that great? I'm pretty sure many of you have been waiting for this cool trick. So, let's begin applying it for our threaded commenting system.

Steps to add bubble comments count

Step 1: From your Blogger Dashboard, go to Template and click on the Edit HTML button:

    ... click anywhere inside the code area and press CTRL + F to open the Blogger' search box.

    Step 2: Type the following tag inside the search box and hit Enter to find it:
    ]]></b:skin>
    Note. you have to click on the arrow next to it, then search the ]]></b:skin> one more time 

    Step 3: Add the following code just above ]]></b:skin>:
    .comment-thread ol {
    counter-reset: countcomments;
    }
    .comment-thread li:before {
    content: counter(countcomments,decimal);
    counter-increment: countcomments;
    float: right;
    z-index: 2;
    position:relative;
    font-size: 22px;
    color: #555555;
    padding-left:10px; 
    padding-top:3px; 
    background: url(
    http://4.bp.blogspot.com/-f6ByQfbwApQ/T4x_8p1FGpI/AAAAAAAAB2A/WJKf-ybmvQk/s1600/comment+bubble2.png) no-repeat;
    margin-top:7px; 
    margin-left:10px; 
    width: 50px; /*image-width size*/
    height: 48px; /*image-height size*/ 

    }
    .comment-thread ol ol {
    counter-reset: contrebasse;
    }
    .comment-thread li li:before {
    content: counter(countcomments,decimal) "." counter(contrebasse,lower-latin);
    counter-increment: contrebasse;
    float: right;
    font-size: 18px;
    color: #666666;
    }
    Note:
    • if you want to have no bubble icon, remove the code in red (including the address in blue)
    • to change the comment bubble, replace the code in blue with the URL address of your own icon. If you're not sure what icon you should use, you can find some cool icons in my previous posts (see these tutorials here and here)
    • to change the position of comments count, increase/decrease the values (3 & 10) from padding-top and padding-left
    • to change the position of comments bubble/icon, change the values (10 & 7) from margin-left and margin-top
    Step 4: Now Save the Template and you're done!

    If you enjoy reading this blog, please share and subscribe. For any questions you may have, leave a comment below.

    Friday, June 1, 2012

    How to add “Email Subscription Form” to Blogger Blogspot

    email subscription form, blogger blogspot, gadgets
    When you are providing useful information in your blog, then many times some readers will need to get the latest updates from your blog. For that purpose, you need an Email Subscription Form in your blog, so that the interested visitors can easily get the latest updates.

    Related: How to Burn Blogger RSS Feeds at Feedburner

    To add email or Feed Subscription Form to your blogger blog (blogspot) is very easy.
    Just follow the next steps:

    1. Log in to Blogger, then go to Layout > click on "Add a Gadget" link:


     2. From the pop-up window, scroll down and click on the "HTML/JavaScript" gadget:


     3. Paste the following code inside the empty box:
    <style>
    .hl-email{
    background:url(http://4.bp.blogspot.com/-u3UaeUufpmI/T8lFuelsg8I/AAAAAAAACQY/tOWbHsgTYKc/s1600/mail.png) no-repeat 0px 12px ;
    width:300px;
    padding:10px 0 0 55px;
    float:left;
    font-size:1.4em;
    font-weight:bold;
    margin:0 0 10px 0;
    color:#686B6C;
    }
    .hl-emailsubmit{
    background:#9B9895;
    cursor:pointer;
    color:#fff;
    border:none;
    padding:3px;
    text-shadow:0 -1px 1px rgba(0,0,0,0.25);
    -moz-border-radius:6px;
    -webkit-border-radius:6px;
    border-radius:6px;
    font:12px sans-serif;
    }
    .hl-emailsubmit:hover{
    background:#E98313;
    }
    .textarea{
    padding:2px;
    margin:6px 2px 6px 2px;
    background:#f9f9f9;
    border:1px solid #ccc;
    resize:none;
    box-shadow:inset 1px 1px 1px rgba(0,0,0,0.1);
    -moz-box-shadow:inset 1px 1px 1px rgba(0,0,0,0.1);
    -webkit-box-shadow:inset 1px 1px 1px rgba(0,0,0,0.1); font-size:13px;
    width:130px;
    color:#666;}
    </style>
    <div class="hl-email">
    Subscribe via Email <form action="http://feedburner.google.com/fb/a/mailverify" id="feedform" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=helplogger', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
    <input gtbfieldid="3" class="textarea" name="email" onblur="if (this.value == &quot;&quot;) {this.value = &quot;Enter email address here&quot;;}" onfocus="if (this.value == &quot;Enter email address here&quot;) {this.value = &quot;&quot;;}" value="Enter email address here" type="text" />
    <input type="hidden" value="helplogger" name="uri"/><input type="hidden" name="loc" value="en_US"/>
    <input class="hl-emailsubmit" value="Submit" type="submit" />
    </form>
    </div>

    Settings 
    - Replace the url address in green to change the email icon
    - To change the width or the text area, increase/decrease the 130px value in red
    - replace http://feedburner.google.com/fb/a/mailverify?uri=helplogger with your Feedburner Email Feed link. You can get it by visiting your feedburner account then navigate to "Publicize" and then to "Email Subscriptions".
    - Replace helplogger with your feed title. It appears at the end of your feed link. In my case it is http://feedburner.google.com/fb/a/mailverify?uri=helplogger

    4. Now Save your widget and check your blog. Enjoy!

    Thursday, May 31, 2012

    Add Floating Social Media Sharing Buttons To Blogger

    The Floating Social Media Sharing is a very popular widget on all the top blogs and this is one of the ways to increase the number of times your posts get shared on Twitter, Facebook and other social networks.

    This floating social bar has the following options: Facebook Like, StumbleUpon, Twitter Share, Digg This, Google+ and each of them comes with a live counter. You can add more sharing buttons or social bookmarking icons later if you want.

    Blogger, WordPress, Facebook, Share

    How to add the scrolling social bookmarking bar


    Step 1. Log in to your Blogger Dashboard, select your blog and go to Layout 

    Step 2. Click on Add A Gadget link


    Step 3. From the pop-up window, scroll down and select HTML/Javascript 

    Step 4. Copy the code below and paste it inside the empty box.

    Step 5. Save the gadget.

    The code to copy-paste (updated!):
    <style type="text/css">
    #social-buttons {
    position:fixed;
    bottom:15%
    margin-left:-721px;
    float:left;
    border-radius:5px;
    -moz-border-radius:5px;
    -webkit-border-radius:5px;
    background-color:#fff;
    padding:0 0 2px 0;
    z-index:10;
    }
    #social-buttons .button-share {
    float:left;
    clear:both;
    margin:5px 5px 0 2px;
    }
    </style>
    <div id='social-buttons' title="Get this from blogger.chipchuck.com">
    <div class='button-share' id='like' style='margin-left:7px;'>
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <div class="fb-like" data-send="false" data-layout="box_count" data-width="40" data-show-faces="false"></div>
    </div>
    <br /><div class='sbutton' style="margin-left: 2px;" ><a class='twitter-share-button' data-count='vertical' data-via='Helplogger' expr:data-counturl='data:blog.url' href='http://twitter.com/share' rel='nofollow'>Tweet</a><script src='http://platform.twitter.com/widgets.js'; type='text/javascript'></script>
    <br />
    <div class='button-share' style="margin-left: 3px;" id='su'>
    <script src="http://www.stumbleupon.com/hostedbadge.php?s=5"></script>
    </div>
    <div class='button-share' id='digg' style='margin-left:3px;width:48px'>
    <script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script>
    <a class="DiggThisButton DiggMedium"></a>
    </div>
    <div class='button-share' style='margin-left:3px;' id='gplusone'>
    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
    <g:plusone size="tall"></g:plusone>
    </div>
    <div style="clear: both;font-size: 9px;text-align:center;">Get <a style="color: #3399BB;" href="http://blogger.chipchuck.com/">widget</a></div></div></div>
    Customization:
    • Vertical alignment - Change the 15% value of bottom. The code positions the social bar relative to the bottom of your browser window. To fix the distance even when window is resized, specify the value in px (pixels) instead of %.
    • Horizontal alignment - Change the -721px value from margin-left. Negative value pushes the button to the left of the main blog column, positive value pushes it to the right. Increase or decrease the value based on your needs.
    • Twitter setting - Replace Helplogger with your Twitter username
    • Replacing and removing buttons - You can replace existing buttons with your own. Each button is represented by this code:
    <div class='sbutton'> BUTTON CODE HERE </div>
      Enjoy!!! :)

      Create A Rollover Image Effect (change image on mouseover)

      The Rollover effect is one in which an image web object changes (swaps itself) on mouse over to another web object (called rollovers) and reverts back to the original image on mouse out. Rollover images are preloaded into the page when it is loading, this ensures that the rollovers are displayed quickly. The onMouseOver and onMouseOut attributes of the link tag are used to make this functional.

      Demo: Place your mouse over the image below to see the rollover effect:


      Making Rollover Effect Image

      You have the following code:
      <a href="URL ADDRESS"><img src="URL OF THE FIRST IMAGE GOES HERE" onmouseover="this.src='URL OF THE SECOND IMAGE GOES HERE'" onmouseout="this.src='URL OF THE FIRST IMAGE GOES HERE'" /></a>

      Change the colored texts as follows:

      1. URL ADDRESS

      This is the address where somebody will be sent when clicks on the image.
      Example, my blog address: http://www.blogger.chipchuck.com

      2. URL OF THE FIRST IMAGE GOES HERE

      Replace the orange text (two times) with the URL address of the image which will appear before you hover over it.

      3. URL OF THE SECOND IMAGE GOES HERE
      Replace the text in blue with the url of the image that will appear when the cursor hovers over it.

      Now you can paste your image inside a blog gadget, going to Layout > click on Add a Gadget link (right side) > Select HTML/JavaScript from the pop-up window, then add it to your sidebar.

      You can also add it inside your post by going to New Post > Switch to HTML tab and then paste the code in the empty box.

      That's it. Enjoy ;)

      Related: How to Create Rollover Image Effect using CSS.

      Saturday, May 12, 2012

      Add Facemoods Emoticons To Your Blogger Comments

      Here are some amazingly funny emoticons that you can add in your Blogger comments, both for flat (without reply function) and threaded commenting system (with replies)! To get an idea of how these cool emoticons or smiley faces look like, please visit the demo blog:

      emoticons, smileys, blogger, tricks


      Want to add Facemoods emoticons in Blogger comments? Then, follow the steps below:

      How to Add Facemoods Emoticons in Blogger Comments

      Step 1. From your Blogger Dashboard, go to "Template" and click the "Edit HTML" button:


      Step 2. Click anywhere inside the code area and press CTRL + F to open the search box:

      Step 3. Type or paste one of the below lines inside the search box, then hit 'Enter' to find it:
      • For flat commenting system:
      <h4 id='comment-post-message'><data:postCommentMsg/></h4>
      • For threaded comments:
      <div class='post-footer-line post-footer-line-3'>

      Step 4. Add the following code just BEFORE the line that you just found:

      Note: for threaded commenting system, please add the code AFTER:
      <b:if cond='data:blog.pageType == "item"'>
      <div style=' width: 450px; text-align: left; border: 1px dashed #0084ce; background: transparent; padding: 10px; color:#000000; font-weight:bold; '>
      <img border='0' src='http://1.bp.blogspot.com/-zY65UBxSl6w/T67AajI_U6I/AAAAAAAACIc/fCV19C1627Q/s1600/blogger.chipchuck.com(1).gif'/> :a
      &#160;
      <img border='0' src='http://4.bp.blogspot.com/-M8aBZtLjGqY/T67Ai2d8eAI/AAAAAAAACIk/PrDerObloAw/s1600/blogger.chipchuck.com+(2).gif'/> :b
      &#160;
      <img border='0' src='http://3.bp.blogspot.com/-HfIjCWOuxwo/T67Ar7HZiHI/AAAAAAAACIs/RgwvdPP4JSc/s1600/blogger.chipchuck.com(3).gif'/> :c
      &#160;
      <img border='0' src='http://4.bp.blogspot.com/-98YuuiC8MIc/T67AzJ3Xf0I/AAAAAAAACI0/UtaFpgTb_PM/s1600/blogger.chipchuck.com(4).gif'/> :d
      &#160;
      <img border='0' src='http://3.bp.blogspot.com/-ikCFMFesIrE/T67BAtTQGhI/AAAAAAAACI8/AisqU7R--Yc/s1600/blogger.chipchuck.com(5).gif'/> :e
      &#160;
      <img border='0' src='http://2.bp.blogspot.com/-VSY5nbsSEIs/T67BK3G-B6I/AAAAAAAACJE/n_fhk-2Ihqc/s1600/blogger.chipchuck.com(6).gif'/> :f
      &#160;
      <img border='0' src='http://3.bp.blogspot.com/-e9hytPNLXeY/T67BSj27JJI/AAAAAAAACJM/Rwonrid9oiQ/s1600/blogger.chipchuck.com(7).gif'/> :g
      &#160;
      <img border='0' src='http://4.bp.blogspot.com/-mT-nqGFvXec/T67BZDPxvxI/AAAAAAAACJU/fgTPtQNxMK8/s1600/blogger.chipchuck.com(8).gif'/> :h
      &#160;
      <img border='0' src='http://3.bp.blogspot.com/-xcMDAiCizIE/T67BfnBeWSI/AAAAAAAACJc/_OqmXLGhjLg/s1600/blogger.chipchuck.com(9).gif'/> :i
      &#160;
      <img border='0' src='http://3.bp.blogspot.com/-XJUn74vJTwo/T67BrafHO3I/AAAAAAAACJk/B40nJjxUxNE/s1600/blogger.chipchuck.com(10).gif'/> :j
      &#160;
      <img border='0' src='http://3.bp.blogspot.com/-JgARtAx7IHo/T67B2Db6LjI/AAAAAAAACJs/U1EWgczqOYY/s1600/blogger.chipchuck.com(11).gif'/> :k
      &#160;
      <img border='0' src='http://2.bp.blogspot.com/--K1Z6RvN57w/T67CCzlaGcI/AAAAAAAACJ0/iF2-osmFALE/s1600/blogger.chipchuck.com(12).gif'/> :l
      &#160;
      <img border='0' src='http://4.bp.blogspot.com/-c0DJDg4M2n4/T67CTf-xShI/AAAAAAAACJ8/BqUmJYoDBLI/s1600/blogger.chipchuck.com(13).gif'/> :m
      &#160;
      <img border='0' src='http://1.bp.blogspot.com/-zrvYy6caFXM/T67CZi7etnI/AAAAAAAACKE/iPJsX_duWjE/s1600/blogger.chipchuck.com(15).gif'/> :n
      &#160;
      <img border='0' src='http://3.bp.blogspot.com/-F2LUTd1hG_o/T67CfNLnIlI/AAAAAAAACKM/UHuPyigCX24/s1600/blogger.chipchuck.com(16).gif'/> :o
      &#160;
      <img border='0' src='http://3.bp.blogspot.com/-Vd6U_2eq_Gk/T67CosaWm8I/AAAAAAAACKU/JgnYMS4AJOc/s1600/blogger.chipchuck.com(14).gif'/> :p
      &#160;
      <img border='0' src='http://1.bp.blogspot.com/-faDYi6E_d6E/T67CybEuj1I/AAAAAAAACKc/nHxSH7KMSwY/s1600/blogger.chipchuck.com(17).gif'/> :q
      &#160;
      <img border='0' src='http://2.bp.blogspot.com/-2QiwXpJ7gxk/T67C41ItlCI/AAAAAAAACKk/8sba1I9fZOY/s1600/blogger.chipchuck.com(18).gif'/> :r
      &#160;
      <img border='0' src='http://2.bp.blogspot.com/-KUlSaDVWqW8/T67C_4ITH-I/AAAAAAAACKs/e6N7K2jJvl8/s1600/blogger.chipchuck.com(19).gif'/> :s
      &#160;
      <img border='0' src='http://2.bp.blogspot.com/-UC_5gE8LgaQ/T67DGU12FBI/AAAAAAAACK0/oHA628PaDhk/s1600/blogger.chipchuck.com(20).gif'/> :t   <a href='http://blogger.chipchuck.com/2012/05/add-facemoods-emoticons-to-your-blogger.html' style='color: rgb(30, 122, 183); font-size: x-small;'>Add emoticons to Blogger + </a>
      </div></b:if>
      Step 5. Now, search this tag:
      </body>
      Step 6. Add this script below immediately before the </body> tag:

      • For flat comments (no reply):
      <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://3.bp.blogspot.com/-XJUn74vJTwo/T67BrafHO3I/AAAAAAAACJk/B40nJjxUxNE/s1600/blogger.chipchuck.com(10).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:k/gi, "<img src='http://3.bp.blogspot.com/-JgARtAx7IHo/T67B2Db6LjI/AAAAAAAACJs/U1EWgczqOYY/s1600/blogger.chipchuck.com(11).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:l/gi, "<img src='http://2.bp.blogspot.com/--K1Z6RvN57w/T67CCzlaGcI/AAAAAAAACJ0/iF2-osmFALE/s1600/blogger.chipchuck.com(12).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:m/gi, "<img src='http://4.bp.blogspot.com/-c0DJDg4M2n4/T67CTf-xShI/AAAAAAAACJ8/BqUmJYoDBLI/s1600/blogger.chipchuck.com(13).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:n/gi, "<img src='http://1.bp.blogspot.com/-zrvYy6caFXM/T67CZi7etnI/AAAAAAAACKE/iPJsX_duWjE/s1600/blogger.chipchuck.com(15).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:o/gi, "<img src='http://3.bp.blogspot.com/-F2LUTd1hG_o/T67CfNLnIlI/AAAAAAAACKM/UHuPyigCX24/s1600/blogger.chipchuck.com(16).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:p/gi, "<img src='http://3.bp.blogspot.com/-Vd6U_2eq_Gk/T67CosaWm8I/AAAAAAAACKU/JgnYMS4AJOc/s1600/blogger.chipchuck.com(14).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:q/gi, "<img src='http://1.bp.blogspot.com/-faDYi6E_d6E/T67CybEuj1I/AAAAAAAACKc/nHxSH7KMSwY/s1600/blogger.chipchuck.com(17).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:r/gi, "<img src='http://2.bp.blogspot.com/-2QiwXpJ7gxk/T67C41ItlCI/AAAAAAAACKk/8sba1I9fZOY/s1600/blogger.chipchuck.com(18).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:s/gi, "<img src='http://2.bp.blogspot.com/-KUlSaDVWqW8/T67C_4ITH-I/AAAAAAAACKs/e6N7K2jJvl8/s1600/blogger.chipchuck.com(19).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:t/gi, "<img src='http://2.bp.blogspot.com/-UC_5gE8LgaQ/T67DGU12FBI/AAAAAAAACK0/oHA628PaDhk/s1600/blogger.chipchuck.com(20).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:a/gi, "<img src='http://1.bp.blogspot.com/-zY65UBxSl6w/T67AajI_U6I/AAAAAAAACIc/fCV19C1627Q/s1600/blogger.chipchuck.com(1).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:b/gi, "<img src='http://4.bp.blogspot.com/-M8aBZtLjGqY/T67Ai2d8eAI/AAAAAAAACIk/PrDerObloAw/s1600/blogger.chipchuck.com+(2).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:c/gi, "<img src='http://3.bp.blogspot.com/-HfIjCWOuxwo/T67Ar7HZiHI/AAAAAAAACIs/RgwvdPP4JSc/s1600/blogger.chipchuck.com(3).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:d/gi, "<img src='http://4.bp.blogspot.com/-98YuuiC8MIc/T67AzJ3Xf0I/AAAAAAAACI0/UtaFpgTb_PM/s1600/blogger.chipchuck.com(4).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:e/gi, "<img src='http://3.bp.blogspot.com/-ikCFMFesIrE/T67BAtTQGhI/AAAAAAAACI8/AisqU7R--Yc/s1600/blogger.chipchuck.com(5).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:f/gi, "<img src='http://2.bp.blogspot.com/-VSY5nbsSEIs/T67BK3G-B6I/AAAAAAAACJE/n_fhk-2Ihqc/s1600/blogger.chipchuck.com(6).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:g/gi, "<img src='http://3.bp.blogspot.com/-e9hytPNLXeY/T67BSj27JJI/AAAAAAAACJM/Rwonrid9oiQ/s1600/blogger.chipchuck.com(7).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:h/gi, "<img src='http://4.bp.blogspot.com/-mT-nqGFvXec/T67BZDPxvxI/AAAAAAAACJU/fgTPtQNxMK8/s1600/blogger.chipchuck.com(8).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:i/ig,"<img src='http://3.bp.blogspot.com/-xcMDAiCizIE/T67BfnBeWSI/AAAAAAAACJc/_OqmXLGhjLg/s1600/blogger.chipchuck.com(9).gif' alt='' class='smiley'/>")
      b.item(i).innerHTML = _str;
      }
      }
      }
      //]]>
      </script>
      • For threaded comments with reply function:
      <script type='text/javascript'>
      //<![CDATA[
      a = document.getElementById('comment-holder');
      if (a) {
          b = a.getElementsByTagName("p");
          for (i = 0; i < b.length; i++) {
              if (b.item(i).getAttribute('CLASS') == 'comment-content') {
      _str = b.item(i).innerHTML.replace(/:j/gi, "<img src='http://3.bp.blogspot.com/-XJUn74vJTwo/T67BrafHO3I/AAAAAAAACJk/B40nJjxUxNE/s1600/blogger.chipchuck.com(10).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:k/gi, "<img src='http://3.bp.blogspot.com/-JgARtAx7IHo/T67B2Db6LjI/AAAAAAAACJs/U1EWgczqOYY/s1600/blogger.chipchuck.com(11).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:l/gi, "<img src='http://2.bp.blogspot.com/--K1Z6RvN57w/T67CCzlaGcI/AAAAAAAACJ0/iF2-osmFALE/s1600/blogger.chipchuck.com(12).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:m/gi, "<img src='http://4.bp.blogspot.com/-c0DJDg4M2n4/T67CTf-xShI/AAAAAAAACJ8/BqUmJYoDBLI/s1600/blogger.chipchuck.com(13).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:n/gi, "<img src='http://1.bp.blogspot.com/-zrvYy6caFXM/T67CZi7etnI/AAAAAAAACKE/iPJsX_duWjE/s1600/blogger.chipchuck.com(15).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:o/gi, "<img src='http://3.bp.blogspot.com/-F2LUTd1hG_o/T67CfNLnIlI/AAAAAAAACKM/UHuPyigCX24/s1600/blogger.chipchuck.com(16).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:p/gi, "<img src='http://3.bp.blogspot.com/-Vd6U_2eq_Gk/T67CosaWm8I/AAAAAAAACKU/JgnYMS4AJOc/s1600/blogger.chipchuck.com(14).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:q/gi, "<img src='http://1.bp.blogspot.com/-faDYi6E_d6E/T67CybEuj1I/AAAAAAAACKc/nHxSH7KMSwY/s1600/blogger.chipchuck.com(17).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:r/gi, "<img src='http://2.bp.blogspot.com/-2QiwXpJ7gxk/T67C41ItlCI/AAAAAAAACKk/8sba1I9fZOY/s1600/blogger.chipchuck.com(18).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:s/gi, "<img src='http://2.bp.blogspot.com/-KUlSaDVWqW8/T67C_4ITH-I/AAAAAAAACKs/e6N7K2jJvl8/s1600/blogger.chipchuck.com(19).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:t/gi, "<img src='http://2.bp.blogspot.com/-UC_5gE8LgaQ/T67DGU12FBI/AAAAAAAACK0/oHA628PaDhk/s1600/blogger.chipchuck.com(20).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:a/gi, "<img src='http://1.bp.blogspot.com/-zY65UBxSl6w/T67AajI_U6I/AAAAAAAACIc/fCV19C1627Q/s1600/blogger.chipchuck.com(1).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:b/gi, "<img src='http://4.bp.blogspot.com/-M8aBZtLjGqY/T67Ai2d8eAI/AAAAAAAACIk/PrDerObloAw/s1600/blogger.chipchuck.com+(2).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:c/gi, "<img src='http://3.bp.blogspot.com/-HfIjCWOuxwo/T67Ar7HZiHI/AAAAAAAACIs/RgwvdPP4JSc/s1600/blogger.chipchuck.com(3).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:d/gi, "<img src='http://4.bp.blogspot.com/-98YuuiC8MIc/T67AzJ3Xf0I/AAAAAAAACI0/UtaFpgTb_PM/s1600/blogger.chipchuck.com(4).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:e/gi, "<img src='http://3.bp.blogspot.com/-ikCFMFesIrE/T67BAtTQGhI/AAAAAAAACI8/AisqU7R--Yc/s1600/blogger.chipchuck.com(5).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:f/gi, "<img src='http://2.bp.blogspot.com/-VSY5nbsSEIs/T67BK3G-B6I/AAAAAAAACJE/n_fhk-2Ihqc/s1600/blogger.chipchuck.com(6).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:g/gi, "<img src='http://3.bp.blogspot.com/-e9hytPNLXeY/T67BSj27JJI/AAAAAAAACJM/Rwonrid9oiQ/s1600/blogger.chipchuck.com(7).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:h/gi, "<img src='http://4.bp.blogspot.com/-mT-nqGFvXec/T67BZDPxvxI/AAAAAAAACJU/fgTPtQNxMK8/s1600/blogger.chipchuck.com(8).gif' alt='' class='smiley'/>");
      _str = _str.replace(/:i/ig,"<img src='http://3.bp.blogspot.com/-xcMDAiCizIE/T67BfnBeWSI/AAAAAAAACJc/_OqmXLGhjLg/s1600/blogger.chipchuck.com(9).gif' alt='' class='smiley'/>")
      b.item(i).innerHTML = _str;
      }
      }
      }
      //]]>
      </script>
      Step 7. Finally, click the 'Save Template' button and visit your blog to check if the Facemoods emoticons have been successfully added in your Blogger comments.

      Sunday, May 6, 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;http://1.bp.blogspot.com/-Zphr2YJH_6w/T6ZZE4YeNBI/AAAAAAAACF0/Tyuj8hkOpdc/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;http://1.bp.blogspot.com/-eKbzORzVaBQ/T6ZXHmdgHqI/AAAAAAAACFs/rVy3T4gxojM/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:


      http://1.bp.blogspot.com/-Zphr2YJH_6w/T6ZZE4YeNBI/AAAAAAAACF0/Tyuj8hkOpdc/s200/default_avatar.gif


      http://3.bp.blogspot.com/-p4JvM7rWNG4/T6ZcU5eKqTI/AAAAAAAACGM/K0DB35A5brE/s1600/facebook.gif


      http://2.bp.blogspot.com/-5nGzg5T-9qA/T6ZbL9JF0iI/AAAAAAAACF8/TvTnURwsNb0/s1600/anonymous3.png



      http://3.bp.blogspot.com/-oivPlkvBNBY/T6ZoNQhfAII/AAAAAAAACGY/3gem5DBmmQ8/s1600/blogger-user.png

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

      Saturday, May 5, 2012

      How To Change Avatar Size In Blogger Comments

      This simple trick will help you modify the avatars size in Blogger comments whose default size is of 36px... pretty small considering that a lot of sites these days are using much larger avatars. To change the style and size of avatars is very easy - you just need to add the CSS code in your Blogger template that will make size of avatars to have width and height of 64px.


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


      ...click anywhere inside the code area and press CTRL + F to open the blogger' search box

      Step 2. Type or paste this tag inside the search box and hit Enter to find it:
      ]]></b:skin>
      Note: you may need to click on the arrow next to it and then search this tag again

      Step 3. Depending on which comment system you use (with reply/no reply), copy and paste one of the following codes just above it:

      [Works in Blogger threaded comment system]
      .comments .avatar-image-container{
      background-color: rgb(34, 34, 34);
      border:1px solid #ccc;
      margin: 0px 10px 0px 0px;
      padding: 0px 0px 0px 0px;
      width: 64px;
      max-height: 64px;
      }
      .comments .avatar-image-container img{
      margin: 0px 0px 0px 0px;
      padding: 0px 0px 0px 0px;
      max-width: 64px;
      height: 64px;
      }
      [for old blogger commenting system]
      .avatar-image-container{
      border:1px solid #d6d6d6;
      margin-left: -30px;
      -moz-border-radius: 4px;
      background:#fff;
      height:70px;
      min-height: 70px;
      width:70px;
      min-width:70px;
      }
      .avatar-image-container img {
      background: url(http://2.bp.blogspot.com/-gcjQ0sgWw7M/T6WpkK4S5AI/AAAAAAAACEQ/hYAWpCPl6P0/s200/anonymous.jpg);
      background-repeat: no-repeat;
      background-position: center;
      background-size: 100%;
      width:70px;
      min-width:70px;
      height:70px;
      min-height:70px;
      }
      Note: For bigger/smaller avatars, change the values in red. To change the anonymous avatar, replace the URLs in blue with your own. (works only for the old commenting system i.e. that has no reply option)

      Step 4. Cick on the Save template button to apply the changes.

      That's it. Now the Blogger comments avatars should look bigger.

      How to Hide Blogger Sidebar to Display AdSense For Search Results

      When visitors are searching for content on your blog, you have three options to display the search results: opening the results in the same window, in a new window or within your own site using an iframe.

      The best option would be, however, to display the search results within your own site/blog, mainly because you are not sending people off your blog when they are taken to a new page of search results which could be confusing for many because it doesn't look anything like your site or Google. Therefore, displaying the search results within your site, could make it look much more professional and may also increase the page views and the revenue from the ads on the search page.

      A problem that many bloggers are facing is that the page which displays the AdSense for search results must be at least of 800 px wide, so the posting area must be of minimum 800px and there's nothing like this in most of the blogs.
      So, what we will do in this tutorial is to set up the search results to be displayed in a static page (none of other posts or pages will be affected) in which we'll remove the sidebar so that we'll have enough space to make the post/page section of 800px wide. Moreover, we will create a static page designed only for the search results, then create a new AdSense for search in our AdSense account and finally add a small snippet of code top in your Blogger template to hide the sidebar in that specific page.

      Search results span the width of the page with the sidebar hidden:


      Display AdSense For Search Results Within Blogger Page

      Step 1. Create a new static page on your blog, you can give it the title 'Search Results' but leave the content section empty and then Publish the page.

      Step 2. When you publish the page you have the option to add the page to a menu, choose the third option 'No Gadget Link To Pages Manually' click 'Save and Publish'. In case this screen doesn't show, right click on View Page and select Copy Link Address. We will need this URL of the page later when we will create the AdSense for search.

      Step 3. Go To Your AdSense account, then go to My ads tab, select the Search option and Create a New custom search engine. Follow the steps until you come to the Search results option.

      Step 4. Select the 3rd method "on my website using an iframe", then Enter the URL of the page you created into the URL field and continue.


      Step 5. Follow the rest of the set up process and at the end you will be given two pieces of code. The first piece of code is for the actual search bar which you can paste into a Html/JavaScript gadget on your sidebar or wherever you want it. The second piece of code you need to copy and paste it into a new HTML/JavaScript gadget, click on Save, then drag it above the Blog Posts area


      Now that you have your page set up with the search results code and your search bar code in your sidebar, it is time to add a snippet of code to your template to remove the sidebar.

      Adding The Code In Blogger To Change the Results Page Layout

      Step 1. From Your Blogger Dashboard, go to Template and click on the Edit HTML button


      Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the Blogger' search box

      Step 3. Find (CTRL + F) the following piece of code
      ]]></b:skin>
      Step 4. Just below it, paste this code:
      <b:if cond='data:blog.url == &quot;PAGE-URL-HERE&quot;'>
      <style>
      .main-inner .columns {
      padding-left: 0px !important;
      padding-right: 0px !important;
      }
      .main-inner .fauxcolumn-center-outer {
      left: 0px !important;
      right: 0px !important;
      }
      .main-inner .fauxcolumn-left-outer, .main-inner .fauxcolumn-right-outer, .main-inner .column-left-outer, .main-inner .column-right-outer {
      display: none !important;
      }
      </style>
      </b:if>

      Note: Replace PAGE-URL-HERE with the url of the page where the search results will be displayed (the one you have added at the step 4)

      Step 5. Now Save Template and you're done!

      This simple trick allows you not only to hide the sidebar in the search results page, you can as well, hide it on any page you want... just create your page and follow the same steps. It is also recommended to hide the sidebar in Privacy Policy Pages, Contact Pages and on all the non-content-based pages with little content or no content at all.

      Show Blogger Image only in Homepage and Hide it in Post Page

      Here's a really easy trick that will make a Blogger image show only in homepage and hide it in Blogger posts. In order to make images appear only on homepage, we need to add a simple CSS code snippet in the template and then use the hidepic class each time we want to hide an image.

      Hide Image in Blogger Post and Show it Only on Homepage

      Step 1. First, log into your Blogger account and click on your blog. Then go to "Template" and press the "Edit HTML" button.


      Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the search box:

      Step 3. Type or paste the following tag inside the search box and hit Enter to find it:
      ]]></b:skin>

      Step 4. Once you found the tag, paste the following CSS code just BELOW it.
      <b:if cond='data:blog.pageType != &quot;index&quot;'>
      <style>.hidepic{display: none;}</style>
      </b:if>
      Step 5. Now that we added the CSS code to hide (display:none;) the images with hidepic class, click the "Save Template" button to save the code.

      How it works?

      Each time you create a post and need to hide a specific picture, switch to the HTML tab to see the HTML code of the image, which will look something like this:
      <div class="separator" style="clear: both; text-align: center;">
      <a href="https://2.bp.blogspot.com/-shsd_c51zRA/T6UeoPgcbII/AAAAAAAACCc/sYI6WB22CaM/s1600/fire_bird_by_fhrankee-d32af8v.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://2.bp.blogspot.com/-shsd_c51zRA/T6UeoPgcbII/AAAAAAAACCc/sYI6WB22CaM/s320/fire_bird_by_fhrankee-d32af8v.png" width="320" /></a></div>

      Note: the html code should be on the exact location where your image has been placed. For instance, if the image is in the middle of the content, then the code should be found in the middle of the text code. This might be a bit tricky at first, but we can use CTRL + F to search for that specific area.

      Also, please make sure that you are in the "Compose" tab when uploading your images, otherwise the image code will omit the div containing the "separator" class.

      Step 6. Replace the separator CSS class with hidepic - see the screenshot below for more info:


      Once you replaced it, click the "Publish" or "Update" button.

      So this is how we can easily show Blogger image only on homepage and hide it in post pages. Enjoy!

      How to Remove Showing Posts With Label in Blogger

      For any default Blogger layout, the "Showing posts with label" message will show up above the blog posts each time you click on a label link. Since this message is pretty useless and annoying for many bloggers, they prefer to have it removed. If that's your wish, then follow the steps below:

      Removing "Showing post with label...show all posts"

      label, blogger, remove, how to
      Step 1. From your Dashboard, go to "Template" and hit the "Edit HTML" button.


      Step 2. Click anywhere inside the template code, then search using CTRL+F for this line of code (press Enter to find it):
      <b:includable id='status-message'>
      After you found it, click on the sideways arrow next to it that will expand the rest of the code.


      Step 3. You should see a similar code that you need to remove along with the first one as well:
           <b:includable id='status-message'>
            <b:if cond='data:navMessage'>
            <div class='status-msg-wrap'>
              <div class='status-msg-body'>
                <data:navMessage/>
              </div>
              <div class='status-msg-border'>
                <div class='status-msg-bg'>
                  <div class='status-msg-hidden'><data:navMessage/></div>
                </div>
              </div>
            </div>
            <div style='clear: both;'/>
            </b:if>
          </b:includable>


      Step 4. Replace the code above with this one:
      <b:includable id='status-message'>
      <b:if cond='data:navMessage'>
      <div>
      </div>
      <div style='clear: both;'/>
      </b:if>
      </b:includable>

      Step 5. Save the changes by clicking on the 'Save template' button. Now visit your site or blog and click on any label that you may have to confirm that the box doesn't display anymore. So this is how you can remove 'Showing Posts with Label' message in Blogger.

      Friday, May 4, 2012

      Recent Posts Widget with Thumbnails for Blogger/Blogspot

      We have already posted a tutorial on how to add a simple recent posts widget that shows a list with the most recent posts if you'd prefer a more minimalist look. This tutorial will show you a different way of displaying the Recent Posts on Blogger. This is specially for users who want to show more info like recent posts excerpt or summary and the posts thumbnails.

      To add the Recent Posts widget with thumbnails in Blogger is very easy. Just follow these steps below:

      recent posts, blogger widgets

      How to Add the Recent Posts Widget to Blogger

      Step 1. From your Blogger Dashboard, go to Layout > click on Add a Gadget link


      Step 2. Once the pop-up window appears, scroll down and choose HTML/JavaScript


      Step 3. Inside the empty box, add the following code:
      <div class="eggTray">
      <script src="https://googledrive.com/host/0B4n9GL3eVuV-bFc4a1RjZ2Zhbjg">{"pipe_id":"1a6640e2a78b2c6e736f2220529daae5","_btype":"list",
      "pipe_params":{"URL":"YOUR-BLOG/feeds/posts/default"},
      "hideHeader":"false","height":"500","count": 8 }</script>
      <noscript>Your browser does not support JavaScript!</noscript></div>
      <style type=text/css>
      .eggTray {margin:10px 0px;padding:0px;}
      .ybr li  {border-bottom:0px #cccccc dotted; padding:0px 0px 10px 0px!important;}
      .pipesTitle {padding-top:0px;}
      .pipesDescription {display:true;}
      .ycdr, .ycdr a {color:#999999;}
      .widget .popular-posts ul {padding-left:0;}
      </style>

      Recent Posts widget settings

      - replace YOUR-BLOG with the url of your site or blog (ex: http://blogger.chipchuck.com) and look to have just one forward slash symbol "/" at the end of the url otherwise will not work
      - to disable the scroll bar, remove the 500 value
      - by default, this widget is set to display a maximum of 8 recent posts. To change this number, replace 8 with the number of posts that you want to show
      - to display only the post titles, change true to none and "0" from padding-top:0px with 10

      Step 4. Save your widget. And you're done!

      Saturday, April 28, 2012

      Google Translate Widget with Flags For Blogger

      The Google Translate Widget for Blogger allows the visitors to translate your site or blog in their own language.
      This widget also auto-detect your blog language and then translate it to the readers chosen language.

      It supports 12 different languages:
      English, French, German, Spanish, Italian, Dutch, Portuguese, Russian, Japanese, Korean, Arabic And Chinese.
      google translate for blogger

      How To Add The Google Translate Widget To Blogger

      Step 1. Go to your Blogger Dashboard >> Layout and click on "Add A Gadget" link



      Step 2. From the pop-up window, scroll down and choose HTML/JavaScript


       Step 3. Paste the code below in the empty box:

      <script type="text/javascript">
      function showHide(shID) {
          if (document.getElementById(shID)) {
              if (document.getElementById(shID+'-show').style.display != 'none') {
                  document.getElementById(shID+'-show').style.display = 'none';
                  document.getElementById(shID).style.display = 'block';
              }
              else {
                  document.getElementById(shID+'-show').style.display = 'inline';
                  document.getElementById(shID).style.display = 'none';
              }
          }
      }
      </script>

      <style>

       .google_translate img {
      margin: 10px 20px 0px 20px;
          height: 24px;
          width: 24px;
              }
              .google_translate:hover img {
      filter:alpha(opacity=0.30);
              -moz-opacity: 0.30;
              opacity: 0.30;
              border:0;
              }

      .more {
          display: none;
      a.showLink, a.hideLink {
          text-decoration: none;
          color: #0880C4;
          padding-left: 18px;
          background: transparent('down.gif') no-repeat left; }

      a.hideLink {
          background: transparent url('up.gif') no-repeat left;
      color: #0880C4;}

      a.showLink:hover, a.hideLink:hover {
      color: #0880C4;
       }

       </style>

       <div>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="English" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cen&hl=en'); return false;"><img alt="English" border="0" align="absbottom" title="English" height="24" src="https://1.bp.blogspot.com/-sXhoGx5s2dg/T5xOeRCOuYI/AAAAAAAAARo/ldYJIGQldwQ/s1600/United+Kingdom(Great+Britain).png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="French" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cfr&hl=en'); return false;"><img alt="French" border="0" align="absbottom" title="French" height="24" src="https://2.bp.blogspot.com/-aklFaq6pPeQ/T5xOV1mPbcI/AAAAAAAAARg/CcBmt1ptN88/s1600/France.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="German" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cde&hl=en'); return false;"><img alt="German" border="0" align="absbottom" title="German" height="24" src="https://1.bp.blogspot.com/-nX0ktPsJQTA/T5xOMiiOGQI/AAAAAAAAARY/VXhAPARvh9E/s1600/Germany.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Spain" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7ces&hl=en'); return false;"><img alt="Spain" border="0" align="absbottom" title="Spain" height="24" src="https://4.bp.blogspot.com/-QPXkbtHOD4c/T5xODxO-FVI/AAAAAAAAARQ/1jye5k8T0DI/s1600/Spain.png" style="cursor: pointer;margin-right:8px" width="24"/></a><a href="#" id="example-show" class="showLink"
      onclick="showHide('example');return false;">More</a>
      <div id="example" class="more">
       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Italian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cit&hl=en'); return false;"><img alt="Italian" border="0" align="absbottom" title="Italian" height="24" src="https://3.bp.blogspot.com/-0QwKU5U8K2k/T5xN5VZK2tI/AAAAAAAAARI/SvXac8-EQEg/s1600/Italy.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Dutch" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cnl&hl=en'); return false;"><img alt="Dutch" border="0" align="absbottom" title="Dutch" height="24" src="https://4.bp.blogspot.com/-vJtqiSEPK0A/T5xNup0Q3vI/AAAAAAAAARA/SyuRn3jZjgk/s1600/Netherlands.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
            <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Russian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cru&hl=en'); return false;"><img alt="Russian" border="0" align="absbottom" title="Russian" height="24" src="https://2.bp.blogspot.com/-Em4KegbEBmk/T5xNjs5f_NI/AAAAAAAAAQ4/yLtUCDesqGs/s1600/Russian+Federation.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Portuguese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cpt&hl=en'); return false;"><img alt="Portuguese" border="0" align="absbottom" title="Portuguese" height="24" src="https://2.bp.blogspot.com/-IVx5Fq_02dE/T5xNZIbiHzI/AAAAAAAAAQw/dvI6mI6z3Dw/s1600/Brazil.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
      <br />
       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Japanese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cja&hl=en'); return false;"><img alt="Japanese" border="0" align="absbottom" title="Japanese" height="24" src="https://2.bp.blogspot.com/-O932f9wBvk4/T5xNO_hx5uI/AAAAAAAAAQo/n8-iF7S_R8A/s1600/Japan.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Korean" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cko&hl=en'); return false;"><img alt="Korean" border="0" align="absbottom" title="Korean" height="24" src="https://3.bp.blogspot.com/-es7IkxUUK_4/T5xNGn7TXYI/AAAAAAAAAQg/jAp6OM-Zj9Q/s1600/South+Korea.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Arabic" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7car&hl=en'); return false;"><img alt="Arabic" border="0" align="absbottom" title="Arabic" height="24" src="https://3.bp.blogspot.com/-cx9e66I48yM/T5xM9L7uzoI/AAAAAAAAAQY/ftpOVX9YZEE/s1600/Saudi+Arabia.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Chinese Simplified" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7czh-cn&hl=en'); return false;"><img alt="Chinese Simplified" border="0" align="absbottom" title="Chinese Simplified" height="24" src="https://1.bp.blogspot.com/-eXup49w042c/T5xMxliSlmI/AAAAAAAAAQQ/v9efq8I4TI0/s1600/China.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
          <p><a href="#" id="example-hide" class="hideLink"
          onclick="showHide('example');return false;">Hide</p>
      </div>
           </div>

      Step 4. Now click on Save

      google translate, blogger widgets, gadgets for blogspot
      And you're done! Enjoy (:

      Simple Recent Posts Widget for Blogger/Blogspot

      The main advantage on this Recent Posts widget is that it will show not only post titles, but also post excerpts or snippets, and it's easy to customize or apply different style on it. To make it fit your own design, you will need to modify the CSS style - you can change the link or background color, the size and color of text/links.

      What you can do with this widget:
      - display post titles only
      - change the number of posts
      - change the number of characters of the post snippet/excerpt
      - show the post dates

      See the screenshot below:


      How to add Recent Posts Widget to Blogger

      1. Log in to your Blogger Dashboard > go to "Layout" and click the "Add a Gadget" link:


      2. From the pop-up window, scroll down and choose HTML/JavaScript from the list...


      3. Select & copy the code below the chosen widget and paste it into the HTML/JavaScript content box:

      Recent Posts Widget with Snippets

      <div id="hlrpsa">
      <script type="text/javascript">
      function showrecentposts(t){for(var e=0;e<numposts;e++){var n,r=t.feed.entry[e],i=r.title.$t;if(e==t.feed.entry.length)break;for(var s=0;s<r.link.length;s++)if("alternate"==r.link[s].rel){n=r.link[s].href;break}i=i.link(n);var a="...",d=r.published.$t,u=d.substring(0,4),o=d.substring(5,7),c=d.substring(8,10),l=new Array;if(l[1]="Jan",l[2]="Feb",l[3]="Mar",l[4]="Apr",l[5]="May",l[6]="Jun",l[7]="Jul",l[8]="Aug",l[9]="Sep",l[10]="Oct",l[11]="Nov",l[12]="Dec","content"in r)var m=r.content.$t;else if("summary"in r)var m=r.summary.$t;else var m="";var w=/<\S[^>]*>/g;if(m=m.replace(w,""),document.write('<div class="rctitle">'),standardstyling&&document.write("<br/>"),document.write(i),1==showpostdate&&document.write(" - "+l[parseInt(o,10)]+" "+c+" "+u),document.write('</div><div class="rcsumm">'),1==showpostsummary)if(standardstyling&&document.write(""),m.length<numchars)standardstyling&&document.write("<i>"),document.write(m),standardstyling&&document.write("</i>");else{standardstyling&&document.write(""),m=m.substring(0,numchars);var g=m.lastIndexOf(" ");m=m.substring(0,g),document.write(m+a),standardstyling&&document.write("")}document.write("</div>"),standardstyling&&document.write("")}standardstyling||document.write('<div class="bbwidgetfooter">'),standardstyling&&document.write(""),document.write(""),standardstyling||document.write("")}
      </script>
      <script type="text/javascript">
      var numposts = 5;var showpostdate = true;var showpostsummary = true;var numchars = 100;var standardstyling = true;
      </script>
      <script src="http://blog-address.blogspot.com/feeds/posts/default?orderby=published&amp;alt=json-in-script&amp;callback=showrecentposts">
      </script></div><a style="font-size: 9px; color: #CECECE; float: right; margin-top: 10px;" href="http://blogger.chipchuck.com/2012/04/recent-posts-widget-for-bloggerblogspot.html" rel="nofollow" >Recent Posts Widget</a>
      <noscript>Your browser does not support JavaScript!</noscript>
      <style type="text/css">
      .rctitle a{color:#000000;text-transform:capitalize;font-size:13px;}#hlrpsa {color: #999999; font-size: 12px;}.rcsumm {border-bottom:1px dotted #cccccc; padding-bottom:10px;margin-top:5px;}
      </style>

      Recent Posts Widget Showing Post Titles Only

      <div id="hlrpsb">
      <script type="text/javascript">
      function showrecentposts(t){for(var e=0;e<numposts;e++){var n,r=t.feed.entry[e],i=r.title.$t;if(e==t.feed.entry.length)break;for(var d=0;d<r.link.length;d++)if("alternate"==r.link[d].rel){n=r.link[d].href;break}i=i.link(n);var s=r.published.$t,a=s.substring(0,4),o=s.substring(5,7),l=s.substring(8,10),u=new Array;u[1]="Jan",u[2]="Feb",u[3]="Mar",u[4]="Apr",u[5]="May",u[6]="Jun",u[7]="Jul",u[8]="Aug",u[9]="Sep",u[10]="Oct",u[11]="Nov",u[12]="Dec",standardstyling||document.write(""),document.write('<div class="rctitles2">'),standardstyling&&document.write(""),document.write(i),standardstyling&&document.write(""),1==showpostdate&&document.write(" - "+l+" "+u[parseInt(o,10)]+" "+a),standardstyling||document.write("</div>"),document.write("</div>"),standardstyling&&document.write("")}standardstyling||document.write('<div class="bbwidgetfooter">'),standardstyling&&document.write(""),document.write(""),standardstyling||document.write("/div")}
      </script>
      <script type="text/javascript">var numposts = 10;var showpostdate = false;var standardstyling = true;</script>
      <script src="http://blog-address.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts"></script></div><a style="font-size: 9px; color: #CECECE; float: right; margin-top: 10px;" href="http://blogger.chipchuck.com/2012/04/recent-posts-widget-for-bloggerblogspot.html" rel="nofollow" >Recent Posts Widget</a>
      <noscript>Oops! Make sure JavaScript is enabled in your browser.</noscript>
      <style type=text/css>
      #hlrpsb a {color: #000000;font-size:13px;text-transform:capitalize;}.rctitles2 {padding-bottom:10px;margin-bottom:10px;border-bottom: 1px dotted #cccccc;}
      </style>

      How to customize the recent posts widget:

      • To set how many posts to display, change the 5 value for the recent posts widget with snippets and the 10 for the recent posts widget with post titles only.
      • If you want to display the post dates, change "false" to "true".
      • The recent posts widget with summary will display 100 characters; if you want more or less characters, change the "100" value.
      • To change the color of the links, modify the values in blue and for the font size, the values violet.
      • To change the color of the posts snippets modify the values in green and the values in orange for the font size.
      • Replace the http://blog-address.blogspot.com text with your URL.
      4. Save your widget... and that's it. Enjoy!

      Search This Blog

      Recent Post

      Recent Posts Widget

      Blog Archive