<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BTemplates Blog &#187; Tutorials</title>
	<atom:link href="http://blog.btemplates.com/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.btemplates.com</link>
	<description>All about Blogger</description>
	<lastBuildDate>Fri, 30 Sep 2011 08:30:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Customizing Blogger templates easily with Firebug</title>
		<link>http://blog.btemplates.com/customizing-blogger-templates-easily-firebug/</link>
		<comments>http://blog.btemplates.com/customizing-blogger-templates-easily-firebug/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 07:19:43 +0000</pubDate>
		<dc:creator>Francisco</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.btemplates.com/?p=286</guid>
		<description><![CDATA[Customize a template is one of the first challenges for those who start a blog. To do this, nothing can save us of learning the basics of HTML and CSS, but there are some tools that can make this easier, as Firebug, a extension for Firefox and Chrome. One of the simplest tools, but also more [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-287" title="firebug" src="http://blog.btemplates.com/wp-content/uploads/2011/09/firebug.jpg" alt="" width="490" height="155" /></p>
<p>Customize a template is one of the first challenges for those who start a blog. To do this, nothing can save us of learning the basics of HTML and CSS, but there are some tools that can make this easier, as <a href="http://getfirebug.com/">Firebug</a>, a <a href="http://blogandweb.com/productos-google/extensiones-chrome-y-firefox-para-bloggers-y-desarrolladores/">extension for Firefox and Chrome</a>.</p>
<p>One of the simplest tools, but also more useful, in Firebug is <em>Inspected</em>, as its name implies, lets you navigate through each element of a website and know how it is configured and related to other elements.</p>
<p>This little guide will focus mainly on modifying the CSS code to adapt a design to our needs. CSS in Blogger is within the same template, between the codes <code>&lt;b:skin&gt;</code> and <code>&lt;/b:skin&gt;</code>.</p>
<h3>Customizing the CSS of a web element with Firebug.</h3>
<p>To customize any feature of a web element from a Blogger template you simply:</p>
<p><strong>1.</strong> Install Firebug in your browser: <a href="https://addons.mozilla.org/en-US/firefox/addon/firebug/">Firefox</a> or <a href="https://chrome.google.com/webstore/detail/bmagokdooijbeehmkpknfglimnifench">Chrome</a>. Personally I recommend to use Firefox, is more complete and quick, but applies to both the content of this tutorial.</p>
<p><strong>2.</strong> Click the button for Firebug in the toolbar <img class="alignnone size-full wp-image-288" title="firebug-button" src="http://blog.btemplates.com/wp-content/uploads/2011/09/firebug-button.png" alt="" width="42" height="22" />, then click the button to Inspect <img class="alignnone size-full wp-image-289" title="firebug-inspect" src="http://blog.btemplates.com/wp-content/uploads/2011/09/firebug-inspect.png" alt="" width="16" height="15" /> and place the cursor right over the element to customize, it can be text, image, video, flash or anything, and click on it.</p>
<p><strong>3.</strong> In the right Firebug panel, with the tab &#8220;style&#8221; active, shows all the styles that affect the element.</p>
<p>Styles are shown as a CSS style sheet, however, Firebug, sort and standardized the properties alphabetically.</p>
<p>It&#8217;s easy to recognize the following information: selectors, properties and the CSS rule location (code line and file that contains it).</p>
<p><img class="aligncenter size-full wp-image-290" title="firebug-css-rules" src="http://blog.btemplates.com/wp-content/uploads/2011/09/firebug-css-rules.png" alt="" width="500" height="194" /></p>
<p><strong>4. Live tests.</strong><br />
<span id="more-286"></span>Something very interesting of Firebug is that you can modify any CSS property and see the results directly applied on the page. You only need to click on the property or value to change it and see what happens directly on the page.</p>
<p><img class="aligncenter size-full wp-image-291" title="firebug-edit" src="http://blog.btemplates.com/wp-content/uploads/2011/09/firebug-edit.png" alt="" width="352" height="95" /></p>
<p>For properties that can only take certain values​​, Firebug lets explore them just clicking on the value and use the up and down keys of the keyboard.</p>
<p><img class="aligncenter size-full wp-image-292" title="firebug-properties" src="http://blog.btemplates.com/wp-content/uploads/2011/09/firebug-properties.gif" alt="" width="214" height="164" /></p>
<p>And in the same way for numeric values:</p>
<p><img class="aligncenter size-full wp-image-293" title="firebug-numeric" src="http://blog.btemplates.com/wp-content/uploads/2011/09/firebug-numeric.gif" alt="" width="214" height="164" /></p>
<p>Another really useful option is to disable the properties to see how an element behaves without them, simply click on the red circle to the left of each property.</p>
<p><img class="aligncenter size-full wp-image-294" title="firebug-cancel" src="http://blog.btemplates.com/wp-content/uploads/2011/09/firebug-cancel.gif" alt="" width="214" height="164" /></p>
<p>Find the background image of an element is also useful when you are <a href="http://blog.btemplates.com/the-easiest-way-to-modify-a-template/">customizing a template</a>, for it is only necessary to be placed on the element, clicking, and the panel of &#8220;Style&#8221; will appear the selector that contains the image, usually in property <code>background</code> or <code>background-image</code>.</p>
<p><img class="aligncenter size-full wp-image-296" title="firebug-background" src="http://blog.btemplates.com/wp-content/uploads/2011/09/firebug-background1.png" alt="" width="493" height="185" /></p>
<p>Once you know you&#8217;ve come to the desired result in the tests, you need to apply those same changes to the styles in your template. Firebug saves <strong>never</strong> the changes, you should make this part of your hand.</p>
<p>In other words, if you&#8217;ve added a property in Firebug, you should add that same property to your CSS code, if you&#8217;ve made ​​a modification, it must be done in the styles of your template.</p>
<h3>Screencast</h3>
<p>With this introduction, you can see Firebug in action in the official screencast.</p>
<p><iframe src="http://cdnakmi.kaltura.org/apis/html5lib/mwEmbed/mwEmbedFrame.php?src%5B%5D=http%3A%2F%2Fgetfirebug.com%2Fvideo%2FIntro2FB.ogv&amp;src%5B%5D=http%3A%2F%2Fgetfirebug.com%2Fvideo%2FIntro2FB.mp4&amp;poster=Intro2FB.jpg&amp;skin=mvpcf&amp;durationHint=409.3089" frameborder="0" width="500" height="283"></iframe></p>
<h3>Conclusion</h3>
<p>Firebug is a very intuitively tool, so some recommendations: Try and try, you will learn a lot about CSS and the tool itself, but without the risk of affecting your design. Read the <a href="http://getfirebug.com/wiki/index.php/Main_Page">official guide</a>, where you can learn to take better advantage of the extension. And finally, learn at least basic <a href="http://www.w3schools.com/css/">CSS</a> and <a href="http://www.w3schools.com/html/">HTML</a>, it will make any design task less frustrating.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.btemplates.com/customizing-blogger-templates-easily-firebug/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Add links to a pages based menu on Blogger</title>
		<link>http://blog.btemplates.com/add-links-to-a-pages-based-menu-on-blogger/</link>
		<comments>http://blog.btemplates.com/add-links-to-a-pages-based-menu-on-blogger/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 23:20:43 +0000</pubDate>
		<dc:creator>Francisco</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Widgets]]></category>
		<category><![CDATA[Menu]]></category>
		<category><![CDATA[Pages]]></category>

		<guid isPermaLink="false">http://blog.btemplates.com/?p=262</guid>
		<description><![CDATA[The pages widget on Blogger is very useful for use as menu, however, it has a weakness: you can&#8217;t add links directly from the panel, but this is possible from the code. Step by step: 1. Go to your template code (Desktop → Design → Edit HTML) and expand widget templates. 2. Search the pages [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong>pages widget</strong> on Blogger is very useful for use as <strong>menu</strong>, however, it has a weakness: you can&#8217;t add links directly from the panel, but this is possible from the code.</p>
<p>Step by step:</p>
<p><strong>1.</strong> Go to your template code (<em>Desktop → Design → Edit HTML</em>) and expand widget templates.</p>
<p><strong>2.</strong> Search the pages widget code, it looks more or less as follows:</p>
<pre><code>&lt;b:widget id='PageList1' locked='true' title='Pages' type='PageList'&gt;
&lt;b:includable id='main'&gt;
  &lt;b:if cond='data:title'&gt;&lt;h2&gt;&lt;data:title/&gt;&lt;/h2&gt;&lt;/b:if&gt;
  &lt;div class='widget-content'&gt;
    &lt;ul&gt;
      &lt;b:loop values='data:links' var='link'&gt;
        &lt;b:if cond='data:link.isCurrentPage'&gt;
          &lt;li class='selected'&gt;&lt;a expr:href='data:link.href'&gt;&lt;data:link.title/&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;b:else/&gt;
          &lt;li&gt;&lt;a expr:href='data:link.href'&gt;&lt;data:link.title/&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;/b:if&gt;
      &lt;/b:loop&gt;
    &lt;/ul&gt;
    &lt;b:include name='quickedit'/&gt;
  &lt;/div&gt;
&lt;/b:includable&gt;
&lt;/b:widget&gt;</code></pre>
<p>To facilitate the search, can search with your browser: <em>id = &#8216;PageList</em></p>
<p><strong>3.</strong> Once you locate the code, there are two places where you can put new links:</p>
<ul>
<li><strong>Before</strong> <code>&lt;ul&gt;</code>. The link will be the first one in the menu. </li>
<li><strong>After</strong> <code>&lt;/ul&gt;</code>. The link will be the last one in the menu. </li>
</ul>
<p>As this is an HTML list, the link will follow this format:</p>
<pre><code>&lt;li&gt;&lt;a href='http://mysite.com/mylink/'&gt;My link&lt;/a&gt;&lt;/li&gt;</code></pre>
<p>You can add as many links as the design permits. Always taking care of opening and closing tags correctly.</p>
<p><strong>4.</strong> Save the changes.</p>
<p>In this way you can add links to a important label, an external site, the feed url or any other link.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.btemplates.com/add-links-to-a-pages-based-menu-on-blogger/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to create a rollover button using images and CSS</title>
		<link>http://blog.btemplates.com/how-to-create-a-rollover-button-using-images-and-css/</link>
		<comments>http://blog.btemplates.com/how-to-create-a-rollover-button-using-images-and-css/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 05:55:47 +0000</pubDate>
		<dc:creator>Francisco</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Images]]></category>

		<guid isPermaLink="false">http://blog.btemplates.com/?p=224</guid>
		<description><![CDATA[I think it&#8217;s always interesting give our buttons an animation effect. As in this tutorial, the RSS subscription button. This time we will make an exercise to create a small character from the paper, through Adobe Illustrator, to its implementation on HTML and CSS. At the bottom of the page we leave a file with [...]]]></description>
			<content:encoded><![CDATA[<p>I think it&#8217;s always interesting give our buttons an animation effect. As in this tutorial, the RSS subscription button.</p>
<p>This time we will make an exercise to create a small character from the paper, through <strong>Adobe Illustrator</strong>, to its implementation on HTML and CSS. At the bottom of the page we leave a file with the images and the code for you, so you can implement it on your web if you want. (<a href="http://blogandweb.com/wp-content/demos/botonrss/">See demo</a>)</p>
<h4>Vectors and picture</h4>
<p>Vectors have great advantages and latest versions of Illustrator are amazing, our designs will be more than colored spots.</p>
<p>I won&#8217;t deny the fact that knowing some drawing basics is helpful, but definitely the web is a summary with images to take ideas from, to see different techniques. To begin on making our projects, drawing helps, but good ideas are always better.</p>
<h4>From sketch to Illustrator</h4>
<p>Let&#8217;s begin sketching our character. This will help us to have an clearer idea on how to start. As I said before, you can take ideas from images you have seen before and you think they are interesting.</p>
<p><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="sketch-to-Illustrator-1" src="http://blog.btemplates.com/wp-content/uploads/2010/11/sketch-to-Illustrator-1.png" border="0" alt="sketch-to-Illustrator-1" width="500" height="309" /></p>
<p><span id="more-224"></span></p>
<p>I can say I like to making it this way, sketching. I usually trace on Illustrator directly but at least I can get a clearer idea and I know what to do. A while ago I spent a lot of time in front of computer without having a clear idea on what to draw and because of that I lost time. Some sketches finished that.</p>
<p>We will start with basic shapes for head and ears, we&#8217;ll draw three circles together and then apply Pathfinder (<em>Shift+Ctrl+F9 or Window → Pathfinder</em>) and apply Unite.</p>
<p>We&#8217;ll trace eyes, two black, little circles will be enough, we&#8217;ll put them and center them, and then we&#8217;ll make hair.</p>
<p><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="sketch-to-Illustrator-2" src="http://blog.btemplates.com/wp-content/uploads/2010/11/sketch-to-Illustrator-2.png" border="0" alt="sketch-to-Illustrator-2" width="500" height="419" /></p>
<p>Now we&#8217;ll just color it and unite shapes.</p>
<p><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="sketch-to-Illustrator-3" src="http://blog.btemplates.com/wp-content/uploads/2010/11/sketch-to-Illustrator-3.png" border="0" alt="sketch-to-Illustrator-3" width="500" height="296" /></p>
<p>This is merely a guide. You should be able to create any character you want. I&#8217;m just showing you a boy.</p>
<p>Now the interesting thing: the smile which will change. At first, we&#8217;ll make a simple smile (closed mouth); a half a circle will be enough, then we&#8217;ll make a bright smile. We duplicate our layer with the simple smile character and in the duplicated layer we do the following;</p>
<p><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="sketch-to-Illustrator-4" src="http://blog.btemplates.com/wp-content/uploads/2010/11/sketch-to-Illustrator-4.png" border="0" alt="sketch-to-Illustrator-4" width="500" height="759" /></p>
<h4>RSS icon and strokes</h4>
<p>We&#8217;ll make our feed RSS icon which is the main reason for doing this illustration.  We&#8217;re going to put it behind the character and in the final image the button will be released, so it will create a movement effect.</p>
<p><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="sketch-to-Illustrator-5" src="http://blog.btemplates.com/wp-content/uploads/2010/11/sketch-to-Illustrator-5.png" border="0" alt="sketch-to-Illustrator-5" width="500" height="348" /></p>
<p>Now let&#8217;s make the final touches to our button, select the character, unite all the shapes using Pathfinder, fill it with any color and apply a thick stroke to the shape. Do the same to the RSS icon.</p>
<p><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="sketch-to-Illustrator-6" src="http://blog.btemplates.com/wp-content/uploads/2010/11/sketch-to-Illustrator-6.png" border="0" alt="sketch-to-Illustrator-6" width="500" height="346" /></p>
<p>We&#8217;re going to make a sparkle that comes from behind the character. Draw a vertical stripe and apply Transform effect (Effects → Distor &amp; Transform).</p>
<p><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="sketch-to-Illustrator-7" src="http://blog.btemplates.com/wp-content/uploads/2010/11/sketch-to-Illustrator-7.png" border="0" alt="sketch-to-Illustrator-7" width="500" height="355" /></p>
<p>Expand the shape (Object → Expand Appearance) and apply Unite. Adjust some ends and add a gradient.</p>
<p><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="sketch-to-Illustrator-8" src="http://blog.btemplates.com/wp-content/uploads/2010/11/sketch-to-Illustrator-8.png" border="0" alt="sketch-to-Illustrator-8" width="500" height="448" /></p>
<p>We&#8217;re finally add some text to make more obvious the rollover image, so we have now two images like these:</p>
<p><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="sketch-to-Illustrator-9" src="http://blog.btemplates.com/wp-content/uploads/2010/11/sketch-to-Illustrator-9.jpg" border="0" alt="sketch-to-Illustrator-9" width="396" height="207" /></p>
<h4>Implementing the button</h4>
<p>From Illustrator export both images. The result, two images in web format like PNG8, in example. To make possible use them in a hover, both images must be the same size and be perfectly aligned, vertically and horizontally, and then join them together. In other words, if you put one over the other, their shapes should match.</p>
<p>We have put both images one above the other to use them as a CSS sprite.</p>
<p><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border-width: 0px;" title="sketch-to-Illustrator-10" src="http://blog.btemplates.com/wp-content/uploads/2010/11/sketch-to-Illustrator-10.png" border="0" alt="sketch-to-Illustrator-10" width="166" height="358" /></p>
<p>For the HTML this code is enough:</p>
<pre><code>&lt;a href='http://btemplates.com/feed/' class='botonrss'&gt;Feed RSS&lt;/a&gt;</code></pre>
<p>The CSS will give the &#8216;hover&#8217; effect, so when you pass the mouse pointer over the image, it will show the second image, giving the appearance of animation.</p>
<pre><code>a.botonrss {
    width:166px;
    height:180px; /* Image size */
    text-indent:-9999px;
    overflow:hidden; /* Hiding the link text */
    display:block;
    background:url(images/rss-boton.png) no-repeat 0 0; /* Setting the image as a background */
}
a.botonrss:hover {
    background: url(images/rss-boton.png) no-repeat 0 -180px; /* When passing the mouse over, the image will be 'raised' */
}</code></pre>
<p>Now, we just need to see the <a href="http://blogandweb.com/wp-content/demos/botonrss/">demo working</a>.</p>
<h4>Implement it on Blooger or WordPress</h4>
<p>It&#8217;s really easy to implement it on <a title="Blogger" href="http://btemplates.com/">Blogger</a> or WordPress. The HTML code can be added to any widget on the sidebar. On WordPress, the CSS code is added to the style.css file and on Blogger after this code:</p>
<pre><code>]]&gt;&lt;/b:skin&gt;</code></pre>
<p>Don&#8217;t forget to change the URL for the one of your feed and the image routh in the CSS.</p>
<h4>Download</h4>
<p><a href="http://blogandweb.com/wp-content/download/botonrss.zip">Download HTML code and images</a>.</p>
<h4>Conclusion</h4>
<p>In this tutorial we learned how to create an &#8216;animated&#8217; button starting from the paper. Although tt may require some work, the final thing worth the effort.</p>
<p>In the same way, if you liked this button to use it on your website, download it and implement it. We released it under <a href="http://creativecommons.org/licenses/by-sa/2.5/mx/">Creative Commons</a> License, and if you want to link us giving proper credit, we will appreciate it in advance. <img src='http://blog.btemplates.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>By the way: this is the first tutorial we Ulises and Francisco make together, -mainly Ulises. We hope you have enjoy it like we did!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.btemplates.com/how-to-create-a-rollover-button-using-images-and-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Friendlier Dates on Blogger</title>
		<link>http://blog.btemplates.com/friendlier-dates-on-blogger/</link>
		<comments>http://blog.btemplates.com/friendlier-dates-on-blogger/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 07:24:17 +0000</pubDate>
		<dc:creator>Francisco</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Date]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://blog.btemplates.com/?p=209</guid>
		<description><![CDATA[It&#8217;s friendlier to interpret relative dates or the time passed between two dates (i. e. Posted 2 days ago) rather than an actual date. This kind of dates is often used by services like Twitter or Facebook (see demo). You can also easily create this kind of dates on Blogger by adding two javascripts to [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s friendlier to interpret <em>relative dates</em> or the time passed between two dates (i. e. Posted 2 days ago) rather than an actual date. This kind of dates is often used by services like <a href="http://twitter.com/btemplates">Twitter</a> or <a href="http://facebook.com/bloggertemplates">Facebook</a> (<a href="http://btemplates.com/2010/blogger-template-design-disease/demo/">see demo</a>).</p>
<p><img src="http://blog.btemplates.com/wp-content/uploads/2010/10/friendlier-dates-blogger.png" alt="" title="friendlier-dates-blogger" width="500" height="105" class="aligncenter size-full wp-image-210" /></p>
<p>You can also easily create this kind of dates on Blogger by adding two javascripts to the template.</p>
<h4>Friendlier Dates on Blogger</h4>
<p><strong>1. </strong>Go to the template code editor (<em>Dashboard → Design → Edit HTML → Expand Widget Templates</em>) and search for this code:</p>
<pre><code>]]&gt;&lt;/b:skin&gt;</code></pre>
<p>And then add the following script <strong>after it</strong>:</p>
<pre><code>&lt;script type=&#039;text/javascript&#039;&gt;
/* Friendlier Dates on Blogger: http://blog.btemplates.com/209 */
function timeAgo(date1,date2,granularity){var self=this;periods=[];periods[&amp;#39;week&amp;#39;]=604800;periods[&amp;#39;day&amp;#39;]=86400;periods[&amp;#39;hour&amp;#39;]=3600;if(!granularity){granularity=5;}
(typeof(date1)==&amp;#39;string&amp;#39;)?date1=new Date(date1).getTime()/1000:date1=new Date().getTime()/1000;(typeof(date2)==&amp;#39;string&amp;#39;)?date2=new Date(date2).getTime()/1000:date2=new Date().getTime()/1000;if(date1&amp;gt;date2){difference=date1-date2;}else{difference=date2-date1;}
output=&amp;#39;&amp;#39;;for(var period in periods){var value=periods[period];if(difference&amp;gt;=value){time=Math.floor(difference/value);difference%=value;output=output+time+&amp;#39; &amp;#39;;if(time&amp;gt;1){output=output+period+&amp;#39;s &amp;#39;;}else{output=output+period+&amp;#39; &amp;#39;;}}
granularity--;if(granularity==0){break;}}
return output + &amp;#39; ago.&amp;#39;;}
$(document).ready(function(){});
&lt;/script&gt;</code></pre>
<p><strong>2.</strong> Now search for this:</p>
<pre><code>&lt;data:post.dateHeader/&gt;</code></pre>
<p><small><strong>Notice:</strong> make sure that &quot;<em>Expand Widget Templates</em>&quot; is checked; otherwise you won&#8217;t find the code.</small></p>
<p>And <strong>replace it</strong> with:</p>
<pre><code>&lt;script type='text/javascript'&gt;document.write(timeAgo(&amp;#39;&lt;data:post.dateHeader/&gt;&amp;#39;));&lt;/script&gt;</code></pre>
<p><strong>3.</strong> The last step is to change the date format so it can be compatible with the scripts. Go to <em>Dashboard → Settings → Formatting → Date Header Format</em> and change the date format to the type 7/18/2010 (the sixth one from top to bottom). Save the settings.</p>
<p>Done! You can see the result on our <a href="http://btemplates.com/2010/blogger-template-design-disease/demo/">demo</a>.</p>
<h4>Script to get the time passed between two dates</h4>
<p>This useful javascript function can be used in any other development. It requires two dates or one as parameters. If two dates are given, it will calculate the time between them; if it&#8217;s one date, it will calculate the time passed to current date.</p>
<pre><code>function timeAgo(date1, date2, granularity){

	var self = this;

	periods = [];
	periods['week'] = 604800;
	periods['day'] = 86400;
	periods['hour'] = 3600;
	periods['minute'] = 60;
	periods['second'] = 1;

	if(!granularity){
		granularity = 5;
	}

	(typeof(date1) == 'string') ? date1 = new Date(date1).getTime() / 1000 : date1 = new Date().getTime() / 1000;
	(typeof(date2) == 'string') ? date2 = new Date(date2).getTime() / 1000 : date2 = new Date().getTime() / 1000;

	if(date1 &gt; date2){
		difference = date1 - date2;
	}else{
		difference = date2 - date1;
	}

	output = '';

	for(var period in periods){
		var value = periods[period];

		if(difference &gt;= value){
			time = Math.floor(difference / value);
			difference %= value;

			output = output +  time + ' ';

			if(time &gt; 1){
				output = output + period + 's ';
			}else{
				output = output + period + ' ';
			}
		}

		granularity--;
		if(granularity == 0){
			break;
		}
	}

	return output + ' ago.';
}</code></pre>
<p><small><strong>Notice:</strong> The above function for Blogger has been compressed to load faster.</small></p>
<p>You can also find the PHP version on the article &quot;<a href="http://blogandweb.com/wordpress/fechas-amigables-wordpress-php/">Friendlier Dates on WordPress</a>&quot; (spanish).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.btemplates.com/friendlier-dates-on-blogger/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to create a Blogger search</title>
		<link>http://blog.btemplates.com/how-to-create-a-blogger-search/</link>
		<comments>http://blog.btemplates.com/how-to-create-a-blogger-search/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 17:00:00 +0000</pubDate>
		<dc:creator>Francisco</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Search]]></category>

		<guid isPermaLink="false">http://blog.btemplates.com/how-to-create-a-blogger-search</guid>
		<description><![CDATA[The blogs hosted on Blogger have by default an internal search located in the navbar, however, it isn&#8217;t possible to customize it or change it in order to make it fit our layout. In the other hand, with HTML and XML we can recreate this internal search and customize it any way we want with [...]]]></description>
			<content:encoded><![CDATA[<p>The blogs hosted on Blogger have by default an <strong>internal search</strong> located in the navbar, however, it isn&#8217;t possible to customize it or change it in order to make it fit our layout. In the other hand, with HTML and XML we can recreate this internal search and customize it any way we want with CSS stylesheets.</p>
<h4>HTML/XML structure</h4>
<p>As every search box, it is necessary arrange it as a form with two inputs with the blog&#8217;s data to make the search successful. The code is as follows:</p>
<pre><code>&lt;div id='search'&gt;
&lt;form expr:action='data:blog.homepageUrl + &amp;quot;search/&amp;quot;' id='searchform' method='get'&gt;
	&lt;div&gt;
		&lt;input class='searchtext' id='q' name='q' type='text'/&gt;
		&lt;input class='searchsubmit' type='image' name='submit' src='http://sitio-de-hosting.com/search.gif'/&gt;
	&lt;/div&gt;
&lt;/form&gt;
&lt;/div&gt;</code></pre>
<p>The first &quot;input&quot; is the text box in which the user will put his/her query, the second is the submit button, which allows (you guessed it) submit the query in the first &quot;input&quot; to process it. This second &quot;input&quot; comes defined by a image (it may be an <a title="Blogger Icons" href="http://blog.btemplates.com/blogger-blogspot-icons">icon</a> as well) which is why you only have to put in the address to our image on the <em>src</em> attribute, you can get this address by uploading this image to a free hosting service like Imageshack or Photobucket. That&#8217;s the only thing you have to modify in the code above.</p>
<p>This code can be added just before the above code:</p>
<p><em>Dashboard → Layout → Edit HTML</em> </p>
<pre><code>&lt;div id='sidebar-wrapper'&gt;</code></pre>
<p>to show it on the top of the sidebar, but it works on any other location.</p>
<h4>CSS Stylesheets</h4>
<p>Starting from the classes and ID&#8217;s we can apply styles to the form: a background, borders, text format, padding, etc&#8230; with CSS. This is an example: </p>
<pre><code>/* Search.
main-wrapper: form */

#search form {
	border:1px solid #999999;
	background:#E5E5E5;
	padding:10px;
	margin:0 10px 15px;
	position:relative;
}

/* Text box */

.searchtext {
	padding:2px 5px;
	color:#999;
	font-size:11px;
	line-height:15px;
	height:15px;
	width:87%;
	border:2px solid #BBDAFD;
}

/* submit button */

.searchsubmit {
	position:absolute;
	right:10px;
	top:10px;
}</code></pre>
<p>And the result is something like this: </p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="search-blogger" border="0" alt="search-blogger" src="http://blog.btemplates.com/wp-content/uploads/2010/01/searchblogger.png" width="269" height="45" /> </p>
<p>This is just an example, but it is ready to use just by modifying the input&#8217;s image address, background colors and borders, width and marggins, etc&#8230; The CSS code is always located before: </p>
<pre><code>]]&gt;&lt;/b:skin&gt;</code></pre>
<p>It&#8217;s simple and looks great fixing this important part of our blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.btemplates.com/how-to-create-a-blogger-search/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Adding a sidebar to a Blogger template</title>
		<link>http://blog.btemplates.com/adding-a-sidebar-to-a-blogger-template-2/</link>
		<comments>http://blog.btemplates.com/adding-a-sidebar-to-a-blogger-template-2/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 17:16:00 +0000</pubDate>
		<dc:creator>Francisco</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Sidebar]]></category>

		<guid isPermaLink="false">http://blog.btemplates.com/adding-a-sidebar-to-a-blogger-template-2</guid>
		<description><![CDATA[How to add a new sidebar to a Blogger template is one of the most common questions between the users of the platform for blogs from Google. Adding a second sidebar varies in complexity according to the design in question, so, while some require only a few lines of CSS modification, others will need a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How to add a new sidebar to a Blogger template</strong> is one of the most common questions between the users of the platform for blogs from Google. Adding a second sidebar varies in complexity according to the design in question, so, while some require only a few lines of CSS modification, others will need a total refurbishment that may make it more convenient to change the design. </p>
<p>Broadly speaking the process is as follows: </p>
<ol>
<li>Analyze the structure and style of the template. </li>
<li>Adding a new editable area, ie the area to add new gadgets. </li>
<li>Modify styles. </li>
</ol>
<p>To follow this without issues this and any other tutorial that involves making changes in the structure of a blog or website is very advisable to know some html and CSS. So: <strong></strong></p>
<h4>Analyze the structure and style of the template</h4>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="blogger-sidebar-1" border="0" alt="blogger-sidebar-1" src="http://blog.btemplates.com/wp-content/uploads/2010/01/bloggersidebar1.png" width="300" height="250" /> </p>
<p>For the majority of the templates, and specially Blogger ones, have a very similar structure, a header with title and description, a wrapper with the main column, a sidebar, and a footer with credits and some other information. </p>
<p>In this case our interest is the wrapper in which we have the content and the sidebar, starting from the Blogger code (Design/Edit HTML) it looks something like this:</p>
<pre><code>&lt;div id='content-wrapper'&gt;
	&lt;div id='main-wrapper'&gt;
		&lt;b:section class='main' id='main' showaddelement='no'&gt;
		&lt;b:widget id='Blog1' locked='true' title='Blog Entries' type='Blog'/&gt;
		&lt;/b:section&gt;
	&lt;/div&gt;

	&lt;div id='sidebar-wrapper'&gt;
		&lt;b:section class='sidebar' id='sidebar' preferred='yes'&gt;
			&lt;!-- Sidebar's widgets and gadgets code --&gt;
		&lt;/b:section&gt;	

	&lt;/div&gt;
&lt;/div&gt;</code></pre>
<p>This varies a little from one template to the otherplate but broadly speaking is very similar to this. Both <em>main-wrapper</em> and <em>sidebar-wrapper</em> are defined by CSS styles which determine their width, depth and some other features. So, first things first, search this features looking for something like this: </p>
<pre><code>#main-wrapper {
float:left;
width:620px;
/*.... more attributes ... */
}
#sidebar-wrapper {
float:right;
width:300px;
/*.... more attributes ... */
}</code></pre>
<p>Note: It is likely that you won&#8217;t find them all together or exactly the same and sometimes, more than once. </p>
<p>Here we need to be aware of the width of each element, to add a new bar we&#8217;ll need to change the distribution. By adding the width of the example code we have a 920px total, which will be the available space for the main wrapper and the sidebars. </p>
<h4>Add a new editable area.</h4>
<p>Adding a new editable area in Blogger is very simple, these are defined by &quot;section&quot; elements that when included into the code they may contain gadgets (page elements). The code for the new editable area is something like: </p>
<pre><code>&lt;b:section class='sidebar' id='sidebar2' preferred='yes'&gt;&lt;/b:section&gt;</code></pre>
<p>And to add a new editable area, we just need to add this code just after the existing editable area: </p>
<pre><code>&lt;div id='content-wrapper'&gt;
	&lt;div id='main-wrapper'&gt;
		&lt;b:section class='main' id='main' showaddelement='no'&gt;
		&lt;b:widget id='Blog1' locked='true' title='Entradas del blog' type='Blog'/&gt;
		&lt;/b:section&gt;
	&lt;/div&gt;

	&lt;div id='sidebar-wrapper'&gt;
		&lt;!-- Existing editable area --&gt;
		&lt;b:section class='sidebar' id='sidebar' preferred='yes'&gt;
			&lt;!-- Sidebar's gadgets and widgets code --&gt;
		&lt;/b:section&gt;	

		&lt;!-- New editable area --&gt;
		&lt;b:section class='sidebar' id='sidebar2' preferred='yes'&gt;&lt;/b:section&gt;		

	&lt;/div&gt;
&lt;/div&gt;</code></pre>
<p>We have to be careful with the <strong>ID</strong> of the new area, in must not exist in any other &quot;section&quot; element, that&#8217;s why in the example it is shown as &quot;sidebar2&quot;. The class cannot be repeated and in case of sidebars it is even convenient to be that way. As it is a new area, it doesn&#8217;t need to have gadget code, these will be integrated automatically when we add a new gadget from &quot;Page Elements&quot;. </p>
<p>Now we have a editable zone but as the template is not prepared it may be shown corrupted, so we need to do some changes. </p>
<h4>Modify sytles</h4>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="blogger-sidebar-2" border="0" alt="blogger-sidebar-2" src="http://blog.btemplates.com/wp-content/uploads/2010/01/bloggersidebar2.png" width="300" height="250" /> </p>
<p>We already know the total available width and we have an editable area, so now we have to assign width to each element. Following the example; <em>main-wrapper</em> gets reduced to 540px and <em>sidebar-wrapper</em>, which now contains both sidebars, gets enlarged to 380px. Fitting styles as follows: </p>
<pre><code>#main-wrapper {
float:left;
width:540px;
/*.... attributes ... */
}
#sidebar-wrapper {
float:right;
width:380px;
/*.... attributes ... */
}</code></pre>
<p>This way the available space for both sidebars is 380px. The most common thing to do is to give them the same width, so they will use 50% of the space each. Starting from the IDs of each editable zone we now assign the width of each on and its location (left &#8211; right) in the [i]sidebar-wrapper[/i], by adding these styles: </p>
<pre><code>#sidebar {
width:50%;
float:left;
/*.... any other attributes you may find necessary like: padding, margin, etc ... */
}
#sidebar2 {
width:50%;
float:right;
/*.... any other attributes you may find necessary like: padding, margin, etc ... */
}</code></pre>
<p>With this done now we have 2 sidebars 190px wide each, able to support gadgets.</p>
<h4>Observations</h4>
<p>Some templates may present issues while changing the sidebar&#8217;s or main wrapper&#8217;s width, specifically those based on fixed images which obviously will not change their size by reducing width. In this case you may edit those images with Photoshop to fit them to the new width. </p>
<h4>Conclusion</h4>
<p>All in all, this process might get a bit difficult, mostly if you haven&#8217;t got too much knowledge on CSS or if the template has a complex structure. The only thing we can recommend in this case is <a href="http://blog.btemplates.com/tag/css">learning some CSS</a> or <a href="http://btemplates.com/blogger-templates/3-columns/">look for a 3-column template</a> and customize it. Opinions? Questions? Doubts? Fire them off in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.btemplates.com/adding-a-sidebar-to-a-blogger-template-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to show short URL&#8217;s on Blogger</title>
		<link>http://blog.btemplates.com/how-to-show-short-urls-on-blogger/</link>
		<comments>http://blog.btemplates.com/how-to-show-short-urls-on-blogger/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 18:33:00 +0000</pubDate>
		<dc:creator>Francisco</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Bitly]]></category>
		<category><![CDATA[Shorturl]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://blog.btemplates.com/how-to-show-short-urls-on-blogger</guid>
		<description><![CDATA[Twitter has made it mandatory to make use of each one of the characters we use to spread ideas in a few words and using short URL&#8217;s to give us a bit more room. Considering Twitter is getting every time a more valuable source for traffic, it really pays off to give our readers an [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.btemplates.com/tag/twitter" target="_blank">Twitter</a> has made it mandatory to make use of each one of the characters we use to spread ideas in a few words and using <strong>short URL&#8217;s</strong> to give us a bit more room. Considering <a href="http://twitter.com/btemplates" target="_blank">Twitter</a> is getting every time a more valuable source for traffic, it really pays off to give our readers an easier alternative when they want to share our contents by providing short URL&#8217;s. </p>
<p>Now, <a href="http://code.google.com/p/bitly-api/wiki/JavascriptClientApiDocumentation#shorten" target="_blank">using bit.ly&#8217;s API</a>, Twitter&#8217;s default service, we can create and publish short URL&#8217;s for every entry on Blogger. </p>
<h4>Step by Step</h4>
<ol>
<li>To show a short URL at the bottom of every entry, do this search with the gadgets expanded:
<pre><code>&lt;div class='post-footer-line post-footer-line-3'&gt;

&lt;/div&gt;</code></pre>
<p>They might also be <code>post-footer-line-1</code> or <code>post-footer-line-2</code>, just be careful you open and close the tags the right way. </p>
</li>
<li>Inside any of the 3 <em>footer</em> lines, paste this code:
<pre><code>&lt;b:if cond='data:blog.pageType == &quot;item&quot;'&gt;&lt;form id='shorturl'/&gt;&lt;/b:if&gt;</code></pre>
</li>
<li>Right before the closing tag:
<pre><code>&lt;/head&gt;</code></pre>
<p>Paste the following script: </p>
<pre><code>&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;http://bit.ly/javascript-api.js?version=latest&amp;amp;login=bturls&amp;amp;apiKey=R_37db93397f2c5d6b49a0f3d778d2e142&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
	BitlyClient.addPageLoadEvent(function(){
		BitlyCB.myShortenCallback = function(data) {
			// this is how to get a result of shortening a single url
			var result;
			for (var r in data.results) {
				result = data.results[r];
				result['longUrl'] = r;
				break;
			}
			document.getElementById(&quot;shorturl&quot;).innerHTML = &quot;Share this link: &amp;lt;input type='text' value='&quot; + result['shortUrl'] + &quot;' name='bitlyurl'/&amp;gt;&quot;;
		}
		BitlyClient.shorten(document.location, 'BitlyCB.myShortenCallback');
	});
&lt;/script&gt;</code></pre>
</li>
<li>As an option, you can give it your own style, in order to match your blog&#8217;s layout. For example:
<pre><code>form#shorturl {
color:#666;
font-size:11px
}

#shorturl input {
color:#999;
border:1px inset #CDCDCD;
padding:1px 5px;
}</code></pre>
<p>Just remember that the styles go right before the closing tag: </p>
<pre><code>&lt;/b:skin&gt;</code></pre>
</li>
<li>As a result, with the given style sample, in every individual page it looks like this:
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="bitly-blogger-shorturl" border="0" alt="bitly-blogger-shorturl" src="http://blog.btemplates.com/wp-content/uploads/2010/01/bitlybloggershorturl.png" width="248" height="28" />&#160; </p>
<p>Providing a <strong>short URL</strong> instead of the original URL to tweet makes it cool to use in any other social networks where a long URL is not very aesthetic, not only Twitter.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.btemplates.com/how-to-show-short-urls-on-blogger/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Guides: How to offer e-mail subscriptions step-by-step</title>
		<link>http://blog.btemplates.com/guides-how-to-offer-e-mail-subscriptions-step-by-step/</link>
		<comments>http://blog.btemplates.com/guides-how-to-offer-e-mail-subscriptions-step-by-step/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 10:18:00 +0000</pubDate>
		<dc:creator>Francisco</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[feedburner]]></category>
		<category><![CDATA[Subscriptions]]></category>

		<guid isPermaLink="false">http://blog.btemplates.com/guides-how-to-offer-e-mail-subscriptions-step-by-step</guid>
		<description><![CDATA[E-mail subscriptions aren&#8217;t dead, on the contrary, many people prefer to keep up-to-date this way and depending of the topic the ratings can be more or less important. In this guide we&#8217;ll show you how to activate this service until the point of creating a custom subscribe-form step-by-step for Blogger and, by the way, WordPress. [...]]]></description>
			<content:encoded><![CDATA[<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="email-suscription" border="0" alt="email-suscription" src="http://blog.btemplates.com/wp-content/uploads/2009/12/emailsuscription.png" width="500" height="123" /></p>
<p><strong>E-mail subscriptions</strong> aren&#8217;t dead, on the contrary, many people prefer to keep up-to-date this way and depending of the topic the ratings can be more or less important. In this guide we&#8217;ll show you how to activate this service until the point of creating a custom subscribe-form step-by-step for <strong>Blogger</strong> and, by the way, <strong>WordPress</strong>. </p>
<h4>Activate e-mail subscriptions on FeedBurner</h4>
<p>There are multiple online services to create e-mail subscriptions starting from the blog&#8217;s RSS address, in this case and considering the service&#8217;s popularity we&#8217;ll talk about FeedBurner, and it is very likely most of you have already moved your feeds there, if not, starting with a Google account you can <a href="http://feedburner.com">create a FeedBurner one</a>. </p>
<p>To activate it, in your website&#8217;s panel go to the &quot;<em>Publicize</em>&quot; tab and then to the e-mail subscriptions option, here you&#8217;re given some generic code to offer e-mail subscription with a form or link, but as we&#8217;re going to customize it later right now we just need to click &quot;<em>Active</em>&quot;.</p>
<h4>Setting up e-mails by content</h4>
<p>The subscribed users will get an e-mail daily with you blog&#8217;s new stuff and with FeedBurner you can configure several parameters, we already talked you into including the post&#8217;s title in the subscriptions and now we&#8217;ll look into this and many other options. </p>
<p>These options are located in &quot;<em>Publicize ? Email Subscriptions ? Email Branding</em>&quot;</p>
<p><strong>Email title or theme</strong> </p>
<p>Here you can determine the email&#8217;s title with our content. We have two fields, first one is for when our email has just one article, and the second one is for when there is more than one. We also have 3 variables we can make use of:</p>
<p><em>${latestItemTitle}</em> – Title of your last article.     <br /><em>${n}</em> – Total number of articles per email.     <br /><em>${m}</em> – Email&#8217;s article count minus one. For example: if an email has 3 articles, m = 2.     </p>
<p>So for example, for the first field we can define the next formatting: </p>
<pre><code>${latestItemTitle} | Your Blog's Name</code></pre>
<p>And for the second field, activating the option <em>Change Subject when an email has 2 or more items</em>, we&#8217;ll use this next format: </p>
<pre><code>${latestItemTitle} and ${m} more articles | Your Blog's Name</code></pre>
<p><strong>Logo&#8217;s URL</strong> </p>
<p>To make a real mark you have the option to add your logo to every email, a 150 to 250 px in width picture in neutral colors can help you accomplish the task. </p>
<p><strong>Typography Format</strong> </p>
<p>We&#8217;re also given to adjust color, size and typography for the articles contained on the email. In my opinion default values are pretty readable and only by a personal exception it won&#8217;t be necessary to modify them. </p>
<p>Now save the changes for the options to apply in the next venues. </p>
<p><strong>Sender address</strong> </p>
<p>By default, the address shown on the sent emails is the one you registered with in feedburner, and not always this is the best option. The panel to change the sender address is found in: </p>
<p><em>Publicize ? Email subscriptions ? Communication Preferences. </em></p>
<p>The ideal would be an address like this one: </p>
<pre><code>no-reply@mydomain.com</code></pre>
<p>In this same panel are located the options to customize the activation message to the users, it is really important to check this out. </p>
<h4>Offer email subscriptions on your blog</h4>
<p>There are two ways to offer email subscriptions to your readers: </p>
<ul>
<li>A link, which once clicked opens on a new window showing a form to type in the email address and an anti-spam captcha. </li>
<li>Directly a form, which once filled opens a new window to fill in an anti-spam captcha </li>
</ul>
<p>In both cases opens a new window, so just pick one up according the space you have available, next up we&#8217;ll show you the HTML code to insert them and the CSS to add some style. </p>
<p><strong>Subscription link</strong> </p>
<p>The subscription link has no major complications, the code is this one: </p>
<pre><code>&lt;a href=&quot;http://feedburner.google.com/fb/a/mailverify?uri=YourFeedBurnerURI&quot; class=&quot;mailsubscription&quot;&gt;Free Email Subscription&lt;/a&gt;</code></pre>
<p>Where <code>YourFeedBurnerURI</code> comes from your FeedBurner&#8217;s URL, for example, our RSS address is: <a href="http://feeds.feedburner.com/btemplatesblog">http://feeds.feedburner.com/btemplatesblog</a>, <code>YourFeedBurnerURI</code> would be <code>btemplatesblog</code>. And to add some style, it&#8217;ll be enough with the assigned class, the CSS: </p>
<pre><code>a.mailsuscription {

}</code></pre>
<p>Something really common is to add a mini icon to this link to make it stand out. <strong></strong></p>
<p><strong>Subscription Form</strong> </p>
<p>The subscription form is not so different from any other, so it is customizable as far as our CSS knowledge can take us, the basic HTML to add the form is as follows: </p>
<pre><code>&lt;form action=&quot;http://feedburner.google.com/fb/a/mailverify&quot; method=&quot;post&quot; onsubmit=&quot;window.open('http://feedburner.google.com/fb/a/mailverify?uri=YourFeedBurnerURI', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true&quot; id=&quot;fmailsubscription&quot;&gt;

&lt;div&gt;
	&lt;p&gt;Subscribe via email:&lt;/p&gt;
	&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;emailfield&quot;/&gt;&lt;/p&gt;

	&lt;input type=&quot;hidden&quot; value=&quot;YourFeedBurnerURI&quot; name=&quot;uri&quot;/&gt;
	&lt;input type=&quot;hidden&quot; name=&quot;loc&quot; value=&quot;en_US&quot;/&gt;

	&lt;input type=&quot;submit&quot; value=&quot;Subscribe&quot; id=&quot;mailsubmit&quot;/&gt;
&lt;/div&gt;
&lt;/form&gt;</code></pre>
<p>Then again we have to replace <code>YourFeedBurnerURI</code> with our own URL. Contrary to the code provided by FeedBurner, this code validates correctly and is easier to appreciate the structure and add style. For example, these next CSS styles: </p>
<pre><code>#fmailsubscription {

}

#fmailsuscription p {
margin:10px 0;
}

input#emailfield {
color:#999999;
float:left;
font-size:12px;
height:12px;
padding:2px;
width:65%;
}

input#mailsubmit {
background:#EEEEEE none repeat scroll 0 0;
border:1px outset #CDCDCD;
float:right;
font-size:10px;
padding:2px;
text-align:center;
width:25%;
}</code></pre>
<p>With these styles, the result is:</p>
<p><img  title="email-suscription-form" src="http://blog.btemplates.com/wp-content/uploads/2009/12/emailsuscriptionform.png" width="233" height="70" /> </p>
<p>You can adapt this styles to match your blog&#8217;s layout. </p>
<p><strong>For Blogger and WordPress</strong> <strong>HTML.</strong> </p>
<p><strong>HTML.</strong> The same for both, you can add a html widget on the sidebar.</p>
<p><strong>CSS.</strong> In WordPress the styles are in the <em>style.css</em> file and in Blogger just right before the closing tag: </p>
<pre><code>]]&gt;&lt;/b:skin&gt;</code></pre>
<h4>Suggestions for the email subscription</h4>
<ul>
<li>Put the icon or form in a visible and accessible place. </li>
<li>Make sure to mention the subscription is free of charge, and users can unsubscribe whenever they want. </li>
<li>Confirm and reinvite the subscribers who never activated their subscriptions. </li>
<li>If you have a category that stands out among others, make sure to offer a subscription only for it. </li>
</ul>
<h4>Subscribe to BTemplates Blog</h4>
<p>Speaking of subscriptions, are you subscribed to our content? no? Well, now its the time to do so, you can choose between <a href="http://feeds.feedburner.com/btemplatesblog">the RSS Feed</a> or <a href="http://feedburner.google.com/fb/a/mailverify?uri=btemplatesblog">email subscription</a> <img src='http://blog.btemplates.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.btemplates.com/guides-how-to-offer-e-mail-subscriptions-step-by-step/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Change the message next to the number of comments on Blogger</title>
		<link>http://blog.btemplates.com/change-the-message-next-to-the-number-of-comments-on-blogger-2/</link>
		<comments>http://blog.btemplates.com/change-the-message-next-to-the-number-of-comments-on-blogger-2/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 22:33:00 +0000</pubDate>
		<dc:creator>Francisco</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Comments]]></category>
		<category><![CDATA[Layout]]></category>

		<guid isPermaLink="false">http://blog.btemplates.com/change-the-message-next-to-the-number-of-comments-on-blogger-2</guid>
		<description><![CDATA[By default, every post we publish on Blogger has a link with the number of comments (if it&#8217;s enabled, of course), and it says something like &#34;0 Comments&#34;, and this isn&#8217;t the best presentation. Another problem comes when the post has just one comment, and the link shows &#34;1 Comments&#34;, which is not logical at [...]]]></description>
			<content:encoded><![CDATA[<p>By default, every post we publish on Blogger has a link with the number of comments (if it&#8217;s enabled, of course), and it says something like &quot;0 Comments&quot;, and this isn&#8217;t the best presentation. Another problem comes when the post has just one comment, and the link shows &quot;1 Comments&quot;, which is not logical at all. Finally, when the post has more than one comment, the link get a little bit of sense. But don&#8217;t worry about it, cause now we&#8217;re gonna teach you how to fix it. </p>
<p><strong>1. </strong>Go to the “Layout” tab, also called “Design” from the desktop, and then go to “Edit HTML”. After this, check the “Expand widgets template” box.</p>
<p><em> Dashboard → Layout → Edit HTML → Expand widgets template</em></p>
<p><strong>2. </strong>Search for the following code:</p>
<p>
<pre><code>&lt;b:if cond='data:post.allowComments'&gt;
&lt;a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'&gt;&lt;b:if cond='data:post.numComments == 1'&gt;
1 &lt;data:top.commentLabel/&gt;
&lt;b:else/&gt;
&lt;data:post.numComments/&gt; &lt;data:top.commentLabelPlural/&gt;
&lt;/b:if&gt;
&lt;/a&gt;
&lt;/b:if&gt;</code></pre>
</p>
<p>And replace it with the following:</p>
<p><pre><code>&lt;b:if cond='data:post.allowComments'&gt; &lt;a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'&gt; &lt;b:if cond='data:post.numComments == 0'&gt; <span style="font-weight: bold">Leave your comment</span> &lt;/b:if&gt; &lt;b:if cond='data:post.numComments == 1'&gt; <span style="font-weight: bold">1 Comment</span> &lt;/b:if&gt; &lt;b:if cond='data:post.numComments &gt; 1'&gt; &lt;data:post.numComments/&gt; <span style="font-weight: bold">Comments</span> &lt;/b:if&gt; &lt;/a&gt; &lt;/b:if&gt;</code></pre>
</p>
<p><strong>3. </strong>Now search for the following code:</p>
<p><pre><code>&lt;b:if cond='data:post.allowComments'&gt;
&lt;h4&gt;
&lt;b:if cond='data:post.numComments == 1'&gt;
1 &lt;data:commentLabel/&gt;:
&lt;b:else/&gt;
&lt;data:post.numComments/&gt; &lt;data:commentLabelPlural/&gt;:
&lt;/b:if&gt;
&lt;/h4&gt;</code></pre>
</p>
<p>And replace it with this: </p>
<p><pre><code>&lt;b:if cond='data:post.allowComments'&gt; &lt;h4&gt; &lt;b:if cond='data:post.numComments == 0'&gt; <span style="font-weight: bold">Leave your comment</span> &lt;/b:if&gt; &lt;b:if cond='data:post.numComments == 1'&gt; <span style="font-weight: bold">1 Comment:</span> &lt;/b:if&gt; &lt;b:if cond='data:post.numComments &gt; 1'&gt; &lt;data:post.numComments/&gt; <span style="font-weight: bold">Comments:</span> &lt;/b:if&gt; &lt;/h4&gt;</code></pre>
</p>
<p>Both of the replacements are because of the link will show up twice: on main page and on each post&#8217;s page. The bold text can be changed for anythig you want tho show. </p>
<p>Vía: <a href="http://blogandweb.com/blogger/cambiar-el-mensaje-que-acompana-al-numero-de-comentarios-en-blogger/">blogandweb.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.btemplates.com/change-the-message-next-to-the-number-of-comments-on-blogger-2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Blogger&#8217;s Cheat Sheet</title>
		<link>http://blog.btemplates.com/bloggers-cheat-sheet/</link>
		<comments>http://blog.btemplates.com/bloggers-cheat-sheet/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 08:52:45 +0000</pubDate>
		<dc:creator>Francisco</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cheat sheet]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Layout]]></category>

		<guid isPermaLink="false">http://blog.btemplates.com/bloggers-cheat-sheet</guid>
		<description><![CDATA[Most of us, when we start a blog we do it with Blogger, a simple interface and it is very easy to start a new blog, but trouble starts to appear once we try to manipulate the blog&#8217;s layout, CSS and XML of the template might seem a bit complex right from the start, however, [...]]]></description>
			<content:encoded><![CDATA[<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Blogger-Cheat-Sheet" border="0" alt="Blogger-Cheat-Sheet" src="http://blog.btemplates.com/wp-content/uploads/2009/12/BloggerCheatSheet.jpg" width="500" height="315" /> </p>
<p>Most of us, when we start a blog we do it with Blogger, a simple interface and it is very easy to start a new blog, but trouble starts to appear once we try to manipulate the blog&#8217;s layout, CSS and XML of the template might seem a bit complex right from the start, however, they aren&#8217;t that much after fighting a bit with it and looking at the general structure. And precisely as a helping hand to understand the Blogger templates&#8217; general structure, we&#8217;ve created a <strong>Blogger Cheat Sheet</strong> specially focused on classes and identifiers that most of <a href="http://btemplates.com">blogger templates</a> use. </p>
<h3>What&#8217;s the point?</h3>
<p> Essentially this:
<ul>
<li>Change elements in an existent template. </li>
<li>Adequate a layout from another platform. </li>
<li>Create a new Blogger layout. </li>
</ul>
<h3>Download</h3>
<ul>
<li><a href="http://blog.btemplates.com/wp-content/uploads/2009/12/Blogger-Cheat-Sheet.zip">Blogger Cheat Sheet (PDF, english)</a> </li>
<li><a title="Blogger" href="http://blogandweb.com/wp-content/download/Blogger-Cheat-Sheet.zip">Chuleta Blogger (PDF, español)</a> </li>
</ul>
<h3>How to use it?</h3>
<p>Using this guide requires at least basic knowledge on CSS and according to it you&#8217;ll be able to modify certain things. </p>
<p><strong>Changing elements.</strong></p>
<p>You just need to look for the class or ID in the cheat sheet related to the part we wish to modify and change the CSS attributes on the template. </p>
<p><em>Example:</em> Change the blog&#8217;s title color. </p>
<p>Looking up in the cheat sheet, the class related to the blog&#8217;s title is h1.title, look for the class in the CSS code, if it does exist just modify the color code, otherwise add a new class: </p>
<pre><code>h1.title {
color:#000;
/* other attributes */
}</code></pre>
<p><strong>Adequate a layout from another platform.</strong> </p>
<p>Here the cheat sheet helps us finding the Blogger equivalent for each element. <em>Example:</em> In a WordPress theme the entry title has a class called <em>.tit</em>, just copy the class and attributes and rename in Blogger as <em>.post-title</em>. </p>
<p>This is a very basic example, obviously adapting a whole template requires a bit more knowledge on CSS, because not always you do have an equivalent and the structure has to be changed. </p>
<p><strong>Create a new layout.</strong> </p>
<p>Based on this cheat sheet you might create a CSS and HTML structure which allows to code without working directly on Blogger, or maybe just the CSS structure and doing the work online. </p>
<h3>Help and corrections</h3>
<p>This cheat sheet is basic, and because of that we think it might be very useful for a lot of people, if you think so we will be really thankful if you help us spreading it, on your blog, digg or anyway you can think of. And in case you have corrections to make or just an opinion, then have your say on the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.btemplates.com/bloggers-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: enhanced
Database Caching 4/44 queries in 0.031 seconds using disk: basic
Object Caching 557/666 objects using disk: basic

Served from: blog.btemplates.com @ 2012-02-12 10:24:57 -->
