Show recent comments on Blogger

Thursday, October 28, 2010

Thanks to a feed, it’s possible to add the recent comments to our blog in a very simple way. Just follow these steps:
  1. Go to your blog, and select the “Layout” tab.
  2. Choose the place where you wanna put the comments, and click “Add a Gadget”.
  3. Select the “Feed” element, and click “Add to blog”.
  4. The next step is to add the feed’s URL, in this case is the one that has the comments of our own blog. This address is like this:
  5. http://YOURBLOG.blogspot.com/feeds/comments/default
    Where YOURBLOG is that part of your blog’s address.
  6. The next step is to configure:
  7. Title: the title to show on top of comments. Number of items: in this case it’s the number of comments. Item date: show comment’s date. Item sources/authors: show comment’s author.
  8. Save the changes and that’s it.
This will be enough to show the last comments. The look will depend of the place you insert them into. With this method you can add any content with feed format, doesn’t matter if it’s not from Blogger.
READ MORE

Moving widgets (gadgets) from an old template to a new one!

The most common problem at the time of uploading a new template is that we “lose our widgets”. Is there a way of installing a new template without having to get rid of our beloved widgets? The answer is yes, and yes, it’s simple :) .

1. Go to Layout> Edit HTML and without checking the “Expand widget templates” box, look for this piece of code:
<b:section class='sidebar' id='sidebar' preferred='yes'>
Below that line you will find your template’s widgets:
<b:widget id='BlogArchive1' locked='false' title='Blog Archives'
type='BlogArchive'/>
<b:widget id='Profile1' locked='false' title='My Profile'
type='Profile'/>
2. Copy those widgets and keep them save (wherever).
3. Upload the new template.
Blogger will warn you that your widgets are going to be deleted. Do NOT continue.
4. Go to the same piece of code where you took your widgets from:
<b:section class='sidebar' id='sidebar' preferred='yes'>
And paste the widgets you copied, below. In the end, the whole code should look like this:
<b:section class='sidebar' id='sidebar' preferred='yes'>
<b:widget id='BlogArchive1' locked='false' title='Blog Archives'
type='BlogArchive'/>
<b:widget id='Profile1' locked='false' title='My Profile'
type='Profile'/>
</b:section>
READ MORE

QuickT :: How to show only labels with more than X posts!

1. Go to Layout> Edit HTML and do NOT check the “Expand widget templates” box:

2. Look for this line of code:
<b:widget id='Label1' locked='false' title='Labels' type='Label'/>
3. Replace it with the following code:

<b:widget id='Label1' locked='false' title='Labels' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
  <h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<ul>
<b:loop values='data:labels' var='label'>
    <b:if cond='data:label.count &gt; 2'>
    <li>
      <b:if cond='data:blog.url == data:label.url'>
        <data:label.name/>
      <b:else/>
        <a expr:href='data:label.url'>
          <data:label.name/>
        </a>
      </b:if>
      (<data:label.count/>)
    </li>
   </b:if>
</b:loop>
</ul>
  <b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>
4. In the first line highlighted in red, you decide the minimum number of posts a label needs to have in order to be displayed in your Labels’ widget/gadget.
READ MORE

 
 
 

Label

Label

Labels