<?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>Quite Random &#187; Blogger Tutorials</title>
	<atom:link href="http://quiterandom.com/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://quiterandom.com</link>
	<description>Coding services, Blogger tutorials, free and premade templates, design tips, and much more!</description>
	<lastBuildDate>Thu, 20 May 2010 22:44:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Solutions for JavaScript Hosting in Blogger</title>
		<link>http://quiterandom.com/tutorials/solutions-for-js-hosting/</link>
		<comments>http://quiterandom.com/tutorials/solutions-for-js-hosting/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 00:20:25 +0000</pubDate>
		<dc:creator>Fernando Coello</dc:creator>
				<category><![CDATA[Blogger Tutorials]]></category>

		<guid isPermaLink="false">http://quiterandom.com/?p=914</guid>
		<description><![CDATA[There are lots of things that can’t easily be achieved in Blogger without the usage of special ‘scripts.’ As they are a growing solution for most of the features we’d like our Blogger blogs to have, we deal with a huge setback: ‘where to host them.’ We know Blogger only allows users to upload images [...]]]></description>
			<content:encoded><![CDATA[<p>There are lots of things that can’t easily be achieved in Blogger without the usage of special ‘scripts.’ As they are a <strong>growing</strong> solution for most of the features we’d like our Blogger blogs to have, we deal with a huge setback: ‘where to host them.’ We know Blogger only allows users to upload images and videos, but not other type of files.</p>
<p>As Blogger users, we like two things about it: it’s easy, and it’s free. But hosting isn’t, and the famous ‘free hosting services’ always have their own tricky terms related to the bandwidth consume and/or available space. Many of them are even just for ‘sharing’, and we’re not able to get from them valid, direct URLs to our hosted files.</p>
<p>I&#8217;ve listed some of the solutions we can apply until <strong>Google decides to give us the option of uploading other types of files.</strong></p>
<h3>1. Changing .js for .txt</h3>
<p>What we call &#8217;scripts&#8217; are only files with plain text. They have a <strong>.js</strong> extension, which is <strong>not</strong> exactly obligatory, and it&#8217;s the reason why many hosting services won&#8217;t let us upload them.</p>
<p>What we can do, then, is simply changing the .js extension for a .txt extension and upload these files to <a href="http://www.fileden.com/">Fileden</a>, for example; then, using the provided URLs like always.</p>
<pre>
&lt;script type="text/javascript" src="<strong style="color:red;">SCRIPT_URL.TXT</strong>" /&gt;
</pre>
<p>(We can upload this .txt files to Google Sites as well. <em>Awilli</em>, in one of this post&#8217;s comments, provides a useful link on how to do this: a tutorial from <a href="http://soswitcher.blogspot.com/2009/05/blogger-host-javascript-file-for-free.html">SOSwitcher</a>.)</p>
<h3>2. Using Google&#8217;s AJAX Libraries API</h3>
<p>Many of the scripts we use in our blogs usually <strong>only</strong> work with certain libraries, ie. <a href="http://www.prototypejs.org/">Prototype</a> or <a href="http://jquery.com/">jQuery</a>. These, and other general libraries can be loaded in our blogs with Google&#8217;s AJAX Libraries API, adding the following code before <code>&lt;/head&gt;</code> in our templates:</p>
<pre>
&lt;script src='http://www.google.com/jsapi'/&gt;
&lt;script&gt;
google.load(&quot;<strong style="color:green">library if available</strong>&quot;, &quot;<strong style="color:green">version</strong>&quot;);
&lt;/script&gt;
</pre>
<p>Here&#8217;s <a href="http://code.google.com/intl/en/apis/ajaxlibs/documentation/index.html#AjaxLibraries">a complete list of the available libraries, and their installation</a>.</p>
<h3>3. Adding scripts directly to our templates</h3>
<p>These kinds of code:</p>
<pre>
&lt;script src='<strong style="color:red;">SCRIPT_URL</strong>' type='text/javascript'&gt;&lt;/script&gt;
</pre>
<p>Would be replaced by:</p>
<pre>
&lt;script type='text/javascript'&gt;
<strong>//&lt;![CDATA[</strong>

<strong style="color:red;">SCRIPT_CONTENT</strong>
<strong>//]]&gt;</strong>
&lt;/script&gt;
</pre>
<p>We must take in consideration that adding <strong>long</strong> scripts directly to our templates can make it a little messy and confusing; this doesn&#8217;t mean that long scripts won&#8217;t work.</p>
<h3>4. Using Blogger&#8217;s &#8220;HTML/JavaScript&#8221; gadget</h3>
<p>Adding long scripts to our templates might result impractical. Also, changing its .js extension for a .txt one, because of its volume, would make it consume a lot of bandwidth. Here&#8217;s a good solution for that.</p>
<p>In our templates, we create a new Blogger gadget section adding the following code after <code>&lt;body&gt;</code>:</p>
<pre>
&lt;b:section class='<strong style="color:purple;">scripts-container</strong>' id='<strong style="color:purple;">scripts-container</strong>' /&gt;
</pre>
<p>Once this is done, from our Dashboards, in the &#8216;Elements Page,&#8217; we will see a new section above our template layout. We add a &#8220;HTML/JavaScript&#8221; gadget from there, with something like this:</p>
<pre>
&lt;script type='text/javascript'&gt;
<strong style="color:red;">SCRIPT_CONTENT</strong>
&lt;/script&gt;
</pre>
<p>We must avoid adding <strong>titles</strong> to these gadgets; however, if we&#8217;re going to add several scripts in different gadgets, we might&#8230; after adding this line before <code>&lt;/b:skin&gt;</code>:</p>
<pre>.scripts-container .widget h2 {display: none; visibility: hidden;}</pre>
<p>Also, it seems Blogger interprets all &#8220;&lt;&#8221; and &#8220;&gt;&#8221; appearing in the scripts not as expected. To solve this, look for these symbols and add a space before and after each of them. Here&#8217;s an example:</p>
<p><strong>Before</strong>: <code>for(var i=0;i&lt;a_rc;i++) {</code><br />
<strong>After</strong>: <code>for(var i=0;i &lt; a_rc;i++) {</code></p>
<h3> *** </h3>
<p><strong><a href="http://pages.google.com">Google Pages</a></strong> was kind of the perfect solution for all of this; however, this beta service is soon coming to an end. Google says they will merge both Google Pages and <a href="http://sites.google.com">Google Sites</a> so we can create sites in one second; but just imagine a good and trendy site with NO JavaScript at all&#8230; I wonder why Google never merged Blogger with Google Pages, as it did with Google Adsense and Google Friends.</p>
<p>I <em>could</em> have listed some of the free services we could use, but considering what has happened with <a href="http://hostfile.org">HostFile</a> (dead already), Google Pages (dying), and lately <a href="http://skydrive.live.com/">Skydrive</a> (not recommended), we can easily conclude that unless it is isn’t our own host, we will always have limitations.</p>
<h4>Reference</h4>
<p><strong>Vagabundia</strong> [<a href="http://vagabundia.blogspot.com/2009/03/repasando-alternativas-para-alojar.html">1</a>, <a href="http://vagabundia.blogspot.com/2009/03/solucionando-cosas-de-una-en-una.html">2</a>, <a href="http://vagabundia.blogspot.com/2009/03/solucionando-scripts-ultimos.html">3</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://quiterandom.com/tutorials/solutions-for-js-hosting/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Automatic Post Summaries</title>
		<link>http://quiterandom.com/tutorials/automatic-post-summaries/</link>
		<comments>http://quiterandom.com/tutorials/automatic-post-summaries/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 07:19:09 +0000</pubDate>
		<dc:creator>Fernando Coello</dc:creator>
				<category><![CDATA[Blogger Tutorials]]></category>

		<guid isPermaLink="false">http://quiterandom.com/?p=886</guid>
		<description><![CDATA[This tutorial was recently updated. There are plenty of &#8216;Read More&#8217; hacks for Blogger on the web; however, not all of them create automatic post summaries with thumbnails for each post. This is the type of hacks I used in my latest template, Whiteness. Since it has had quite a good reception for its simplicity, [...]]]></description>
			<content:encoded><![CDATA[<h2 style="font-style:italic; margin: 10px 0 0;">This tutorial was recently updated.</h2>
<p><img src="http://quiterandom.com/wp-content/uploads/2009/03/readmore.gif" alt="Read More hack" title="Read More hack" width="500" height="223" class="aligncenter size-full wp-image-890" /></p>
<p>There are plenty of &#8216;Read More&#8217; hacks for Blogger on the web; however, not all of them create <strong>automatic</strong> post summaries with thumbnails for each post. This is the type of hacks I used in my latest template, <a href="http://quiterandom.com/freebies/whiteness/">Whiteness</a>. Since it has had quite a good reception for its simplicity, its usability <em>and</em> its automatic &#8216;Read More&#8217; hack, I thought it would be a good idea to explain the script I used.</p>
<p><strong>Important:</strong> I am not, by any means, the original creator of the hack here presented. I first saw it in a post from <a href="http://www.bloggersphera.com/2009/01/resumo-do-post-hack-leia-mais.html">BloggerSphera</a> and have since worked on/with it.</p>
<h2>Installation</h2>
<p>There are two main HTML codes we need to add to our templates. These should be added from &#8216;Edit HTML,&#8217; in our Blogger Dashboards, <strong>with the widget templates expanded</strong>.</p>
<h4>The Script</h4>
<p>We first need to install the script. To do this, we must add the following code, before <code>&lt;/head&gt;</code>:</p>
<pre>
&lt;script src='<span style="color:red;">http://quiterandom.com/js/summaries/post-summaries.js</span >' type='text/javascript'/&gt;
&lt;script type='text/javascript'&gt;
<span style="color:green;">summary_noimg = 250;
summary_img = 250;</span>
&lt;/script&gt;
</pre>
<p>I’ve uploaded the script to my server, but we can always download it and upload it to our own host or free hosting service, or <a href="http://quiterandom.com/tutorials/solutions-for-js-hosting/">check other useful solutions</a>.</p>
<h4>The Summaries</h4>
<p>We must now replace the <em>default</em> post bodies for the actual <em>post summaries and thumbnails</em> (in all the pages different from the individual posts.)</p>
<p>Look for the following line:</p>
<pre>&lt;data:post.body/&gt;</pre>
<p>and change it for this:</p>
<pre>
    &lt;b:if cond='data:blog.pageType != &quot;item&quot;'&gt;
      &lt;div expr:id='&quot;summary-&quot; + data:post.id'&gt;&lt;data:post.body/&gt;&lt;/div&gt;
      &lt;script type='text/javascript'&gt;createSummaryAndThumb(&quot;summary-&lt;data:post.id/&gt;&quot;);&lt;/script&gt;

      &lt;a class='readmore' expr:href='data:post.url'&gt;<strong style="color:red;">Read more &#187;</strong>&lt;/a&gt;
    &lt;/b:if&gt;
    &lt;b:if cond='data:blog.pageType == &quot;item&quot;'&gt;&lt;data:post.body/&gt;&lt;/b:if&gt;
</pre>
<p>The highlighted text in red is the one appearing in the <strong>link</strong> next to the summaries. &#8216;Read More&#8217; is the most common phrase, but we can always change it for &#8216;View full post,&#8217; &#8216;More,&#8217; or any other text. We can even use images.</p>
<h2>Customization</h2>
<h4>The Summaries</h4>
<p>To determine the number of character to be shown in the post summaries, we must change the number next to the variables we added first (right below the script):</p>
<pre><span style="color:green;">summary_noimg = 250;</span> &mdash; Defines how many characters will be displayed in posts <strong>without</strong> thumbnails.
<span style="color:green;">summary_img = 250;</span> &mdash; Defines how many characters will be displayed in posts <strong>with</strong> thumbnails.</pre>
<h4>The Thumbnails</h4>
<p>In order to style the thumbnails, we need to copy and customize the following code, right before <code>]]&lt;/b:skin&gt;</code>:</p>
<pre>.post .post-body <strong>img.post-thumbnail</strong> {
float: <span style="color:purple;">left;</span>     /*Defines whether the thumbnail will float to the left, to the right, or not at all.*/
height: <span style="color:blue;">120px;</span>     /*Defines the height of the thumbnail.*/
margin: 0 5px 10px 0;     /*Defines the margin.*/
width: <span style="color:blue;">120px;</span>     /*Defines the width of the thumbnail.*/
}</pre>
<h4>The &#8216;Read More&#8217; links</h4>
<p>To style the &#8216;Read More&#8217; links, we need to copy and customize the following code, right before <code>]]&lt;/b:skin&gt;</code>:</p>
<pre>a.readmore {
/* CSS properties go here */
}</pre>
<h2>Demo</h2>
<p><a href="http://randomness-whiteness.blogspot.com">You can take a look at the result right here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://quiterandom.com/tutorials/automatic-post-summaries/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Tabbed Navigation System</title>
		<link>http://quiterandom.com/tutorials/tabbed-navigation-system/</link>
		<comments>http://quiterandom.com/tutorials/tabbed-navigation-system/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 06:09:48 +0000</pubDate>
		<dc:creator>Fernando Coello</dc:creator>
				<category><![CDATA[Blogger Tutorials]]></category>

		<guid isPermaLink="false">http://quiterandom.com/?p=103</guid>
		<description><![CDATA[A tabbed navigation system is always good for organization, especially when the space is very reduced. In this post, we will learn how to implement the easiest script I’ve found for this (via Blogger Buster), anywhere in our blogs and even use it with Blogger’s Feed, Labels and Blog Archive widgets in our sidebars, as [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft bordernone size-full wp-image-675" title="Tabbed system" src="http://quiterandom.com/wp-content/uploads/2009/03/tabs.gif" alt="Tabbed system" width="227" height="219" />A tabbed navigation system is always good for organization, especially when the space is very reduced. In this post, we will learn how to implement the easiest script I’ve found for this (via <a href="http://www.bloggerbuster.com/2008/08/tabbed-sidebar-navigation-for-recent.html">Blogger Buster</a>), <strong>anywhere</strong> in our blogs and even use it with Blogger’s Feed, Labels and Blog Archive widgets in our sidebars, as explained in <a href="http://www.bloggerbuster.com">Amanda</a>’s original post.</p>
<p>I had tried three different scripts before this one: <a href="http://livepipe.net/projects/control_tabs/">Control.Tabs</a>, <a href="http://tetlaw.id.au/view/blog/fabtabulous-simple-tabs-using-prototype/">Fabtabulous</a>, and <a href="http://www.sunsean.com/idTabs/">idTabs</a>. The first two needed the Prototype library, and idTabs worked with jQuery. I was satisfied with the results; however, they were either too heavy or they worked with other external JavaScript libraries. Differently, this script is relatively fast and does not require any external JavaScript library.</p>
<p><strong>Note:</strong> I strongly recommend you to backup your template, before adding anything.</p>
<h2>Installation</h2>
<p>We first need to <strong>install</strong> the script. To do this, we must add the following code, before <code>&lt;/head&gt;</code>:</p>
<pre>&lt;script src='<span style="color: red;">http://quiterandom.com/js/domtab/domtab.js</span>' type='text/javascript'&gt; &lt;/script&gt;</pre>
<p>I’ve uploaded the script to my server, but we can always download it and upload it to our own host or free hosting service.</p>
<h2>Customization</h2>
<h4>General</h4>
<p>In order to style the tabs, we need to copy and customize the following code, right before <code>]]&lt;/b:skin&gt;</code>.</p>
<p>Note that the following styling includes, basically: background, border and text colors; margin and padding measures; as well as floating and aligning properties. All other styling will match with the one <strong>already set</strong> in your current template, so you do not have to worry about how your headings, links, images, text, etc. will look inside the containers.</p>
<pre><strong>/*main container*/</strong>
div.domtab {margin: 0; padding: 0;}

<strong>/*tabs*/</strong>
ul.domtabs {float: left; margin: 0; padding: 0;}

ul.domtabs li {
background: #999;
float: left;
list-style: none;
margin: 0 2px 0 0;
padding: 2px 3px;
text-align: center;
}

ul.domtabs li:hover, ul.domtabs li.active {background: #CCC;}
  ul.domtabs li a {color: #333; font-weight: bold; text-decoration: none;}

<strong>/*tabs containers*/</strong>
div.domtab div.tab-container {
border: 3px solid #ccc;
clear: both;
display: block;
padding: 10px;
}</pre>
<h4>Colors</h4>
<p>We can, of course, change the following colors, based on our needs.</p>
<p><img style="border: none;" src="http://quiterandom.com/wp-content/uploads/2009/03/ccc.gif" alt="" /> #CCC — Used as background when the tabs are hovered and/or active, and as the border color for the containers.</p>
<p><img style="border: none;" src="http://quiterandom.com/wp-content/uploads/2009/03/999.gif" alt="" /> #999 — Used as the default tab background color.</p>
<p><img style="border: none;" src="http://quiterandom.com/wp-content/uploads/2009/03/333.gif" alt="" /> #333 — Used as the default tab text color.</p>
<h4>Widths</h4>
<p><strong>DO</strong> keep in mind that if the tabs appear on top of each other, it’s probably due to the width of the sidebar, or container, since the individual tabs do <strong>NOT</strong> have a fixed width. In this example, three tabs fit perfectly in a 220px-wide sidebar, but we can’t, for example, expect six tabs to appear in the same line.</p>
<h2>Usage</h2>
<h4>General explanation</h4>
<p>This script requires the following to work properly. A main container which will <em>contain</em> (a) a list with the tabs, and (b) a container for <strong>each</strong> tab, where the content will <em>obviously</em> be displayed.</p>
<pre>&lt;div class='<span style="color: purple;">domtab</span>'&gt;

&lt;ul class='<span style="color: purple;">domtabs</span>'&gt;
  &lt;li&gt;&lt;a href='#<strong>tab1</strong>'&gt;<span style="color: red;">TAB 1</span>&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href='#<strong>tab2</strong>'&gt;<span style="color: green;">TAB 2</span>&lt;/a&gt;&lt;/li&gt;

  &lt;li&gt;&lt;a href='#<strong>tab3</strong>'&gt;<span style="color: blue;">TAB 3</span>&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class='<span style="color: purple;">tab-container</span>'&gt;
  <strong>&lt;a id='tab1' name='tab1'&gt;&lt;/a&gt;</strong>

<span style="color: red;">Content for TAB 1.</span>
&lt;/div&gt;

&lt;div class='<span style="color: purple;">tab-container</span>'&gt;
  <strong>&lt;a id='tab2' name='tab2'&gt;&lt;/a&gt;</strong>
<span style="color: green;">Content for TAB 2.</span>
&lt;/div&gt;

&lt;div class='<span style="color: purple;">tab-container</span>'&gt;
  <strong>&lt;a id='tab3' name='tab4'&gt;&lt;/a&gt;</strong>
<span style="color: blue;">Content for TAB 3.</span>
&lt;/div&gt;

&lt;/div&gt;</pre>
<p>1. The main container (<code>&lt;div&gt;</code>) should have the class <strong>domtab</strong>.</p>
<p>2. The list (<code>&lt;ul&gt;</code>) with the tabs should have the class <strong>domtabs</strong>, and each link (<code>&lt;a&gt;</code>) in the list should point to the ID of each tab container.</p>
<p>3. Each container should have the class <strong>tab-container</strong> and an identifier (anchor) inside of it, with a <strong>unique</strong> name and ID.</p>
<h3>Recent Posts, Labels and Archives Widget</h3>
<p>Based on the explanation above, the things we must change to make this widget work are basically the unique IDs and the <strong>content</strong> for each tab (which, in this case, will be replaced by Blogger sections and widgets).</p>
<p>1. Look for the following line:</p>
<pre>&lt;b:section class='sidebar' id='sidebar' preferred='yes'&gt;</pre>
<p>2. Right before it, paste the code below:</p>
<pre>&lt;div class='<span style="color: purple;">domtab</span>'&gt;

&lt;ul class='<span style="color: purple;">domtabs</span>'&gt;
  &lt;li&gt;&lt;a href='#<strong>recent</strong>'&gt;<span style="color: red;">Recent</span>&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href='#<strong>cat</strong>'&gt;<span style="color: green;">Categories</span>&lt;/a&gt;&lt;/li&gt;

  &lt;li&gt;&lt;a href='#<strong>arc</strong>'&gt;<span style="color: blue;">Archives</span>&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class='<span style="color: purple;">tab-container</span>'&gt;
  <strong>&lt;a id='recent' name='recent'&gt;&lt;/a&gt;</strong>

  <span style="color: red;">&lt;b:section class='sidebar-tab' id='sidebar-tabs-1' preferred='yes'&gt;
    <em>&lt;b:widget id='Feed99' locked='false' title='' type='Feed'/&gt;</em>
  &lt;/b:section&gt;</span>
&lt;/div&gt;

&lt;div class='<span style="color: purple;">tab-container</span>'&gt;
  <strong>&lt;a id='cat' name='cat'&gt;&lt;/a&gt;</strong>

  <span style="color: green;">&lt;b:section class='sidebar-tab' id='sidebar-tabs-2' preferred='yes'&gt;
    <em>&lt;b:widget id='Label99' locked='false' title='' type='Label'/&gt;</em>
  &lt;/b:section&gt;</span>
&lt;/div&gt;

&lt;div class='<span style="color: purple;">tab-container</span>'&gt;
  <strong>&lt;a id='arc' name='arc'&gt;&lt;/a&gt;</strong>

  <span style="color: blue;">&lt;b:section class='sidebar-tab' id='sidebar-tabs-3' preferred='yes'&gt;
    <em>&lt;b:widget id='BlogArchive99' locked='false' title='' type='BlogArchive'/&gt;</em>
  &lt;/b:section&gt;</span>
&lt;/div&gt;

&lt;/div&gt;</pre>
<p>3. Save your template.</p>
<p>4. Go to the <strong>Elements Page</strong>. Once there, you should see something like this:</p>
<p><img class="aligncenter bordernone size-full wp-image-721" title="Tabs Widget" src="http://quiterandom.com/wp-content/uploads/2009/03/tabswidget.gif" alt="Tabs Widget" width="231" height="127" /></p>
<p>Edit the Feed widget with your Feed URL, and you’re done.</p>
<p><img class="aligncenter bordernone size-full wp-image-720" title="Feed Widget" src="http://quiterandom.com/wp-content/uploads/2009/03/feedwidget.gif" alt="Feed Widget" width="523" height="145" /></p>
<p><strong>Note:</strong> If you can’t edit this widget, feel free to delete it and add it again from there.</p>
<h2>Demo</h2>
<p><a href="http://randomness-tests.blogspot.com">You can take a look at the result right here.</a></p>
<h2>Reported Bug</h2>
<p>Unfortunately, this script makes the post area disappear when a post’s comment link is accessed (i.e. http://<em>blog</em>.blogspot.com/2001/01/<em>post</em>.html<strong style="color: red;">#comments</strong>). The only solution I can come up with is <strong>changing the comment link for the post link</strong>. That way, the post <em>and</em> the comments will be displayed normally.</p>
<p>To do this, from your HTML Editor, <strong>after expanding the widget templates</strong>, look for the following code:</p>
<pre>data:post.addCommentUrl</pre>
<p>You will get two results. Change them for:</p>
<pre>data:post.url</pre>
<p>And you’ll be done.</p>
]]></content:encoded>
			<wfw:commentRss>http://quiterandom.com/tutorials/tabbed-navigation-system/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nice Link Titles</title>
		<link>http://quiterandom.com/tutorials/nice-link-titles/</link>
		<comments>http://quiterandom.com/tutorials/nice-link-titles/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 17:01:00 +0000</pubDate>
		<dc:creator>Fernando Coello</dc:creator>
				<category><![CDATA[Blogger Tutorials]]></category>

		<guid isPermaLink="false">http://quiterandom.com/2008/10/nice-link-titles.html</guid>
		<description><![CDATA[NiceTitle.js is a relatively simple script that creates a div-container which pops up when a link, with the title attribute, is hovered. This container shows what is written in the title attribute, plus the URL the link directs to. Installation We first need to install the script, which can be found here. To do this, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://quiterandom.com/wp-content/uploads/2008/10/nicetitles.gif" alt="" title="Nice Link Titles" width="363" height="101" class="alignleft size-full wp-image-1104" /><a href="http://www.kryogenix.org/code/browser/nicetitle/">NiceTitle.js</a> is a relatively simple script that creates a div-container which pops up when a link, with the <em>title</em> attribute, is hovered. This container shows what is written in the title attribute, plus the URL the link directs to.</p>
<h2>Installation</h2>
<p>We first need to install the script, which can be found <a href="http://www.kryogenix.org/code/browser/nicetitle/nicetitle.js">here</a>. To do this, we must add the following code, before <code>&lt;/head&gt;</code>:</p>
<pre>&lt;script type="text/javascript" src="<strong><span style="color: red;">URL_nicetitle.js</span></strong>"&gt;&lt;/script&gt;</pre>
<h2>Customization</h2>
<p>In order to style the container displayed when the links are hovered, we need to copy and customize the following code, right before <code>]&lt;/b:skin&gt;</code>:</p>
<pre><strong>div.nicetitle</strong> {
background-color: #A38531;
color: #fff;
font: bold 13px "Trebuchet MS", Verdana, Arial, sans-serif;
padding: 4px;
position: absolute; top: 0; left: 0;
text-align: left;
width: 25em;
z-index: 20;
}

<strong>div.nicetitle p</strong> {
margin: 0;
padding: 0 3px;
}

<strong>div.nicetitle p.destination</strong> {
font-size: 9px;
padding-top: 3px;
text-align: left;
}</pre>
<p>a) <em>div.nicetitle{}</em> is the main container that pops up when the link is hovered. You can change its background (color or image), its font, border properties and width.</p>
<p>b) <em>div.nicetitle p{}</em> is the paragraph inside the main container. There aren&#8217;t really too many things to customize, but you can apply some padding and margins.</p>
<p>c) <em>div.nicetitle p.destination{}</em> is the URL displayed below each link title. You can either opt to reduce its font-size, or simply not to display it (by adding <code>display: none;</code>).</p>
<h2>Usage</h2>
<p>Do not forget that for the script to display this container, you must add the <strong>title</strong> attribute to the links you want. Here&#8217;s an example:</p>
<pre>&lt;a href="site_URL" title="<span style="color:green;">Text to be displayed</span>"&gt;Link Text&lt;/a&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://quiterandom.com/tutorials/nice-link-titles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Different images for each post author</title>
		<link>http://quiterandom.com/tutorials/different-images-for-each-post-author/</link>
		<comments>http://quiterandom.com/tutorials/different-images-for-each-post-author/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 19:15:00 +0000</pubDate>
		<dc:creator>Fernando Coello</dc:creator>
				<category><![CDATA[Blogger Tutorials]]></category>

		<guid isPermaLink="false">http://quiterandom.com/2008/09/different-images-for-each-post-author.html</guid>
		<description><![CDATA[In blogs where there is more than one author, some distinction often becomes necessary. A good way of achieving this is by displaying each author&#8217;s personal image right next to his or her post title. This is what I will explain in this post. Though this effect can be done with JavaScript (as explained -in [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-282" title="Images for each blog author" src="http://quiterandom.com/wp-content/uploads/2009/01/difimgpostauthor.png" alt="" width="367" height="295" /></p>
<p>In blogs where there is more than one author, some distinction often becomes necessary. A good way of achieving this is by displaying each author&#8217;s personal image right next to his or her post title. </p>
<p>This is what I will explain in this post. Though this effect can be done with JavaScript (as explained -in Spanish- in <a href="http://elescaparatederosa.blogspot.com/2008/09/imagen-propia-en-las-entradas-para-cada.html">El Escaparate</a>), it can also be done just by adding Blogger conditional tags.</p>
<div style="clear:both;"> </div>
<h2>Installation</h2>
<p>From our Template Editor (Layout, Edit HTML) in our Blogger Dashboards, we must look for the following code:</p>
<pre>&lt;b:includable id='post' var='post'&gt;
&lt;div class='post hentry uncustomized-post-template'&gt;
<span style="color: #ff0000;"><strong> &lt;a expr:name='data:post.id'/&gt;</strong></span>
</pre>
<p>And immediately after the line in red, add the following lines:</p>
<pre>&lt;b:if cond='data:post.author == "<strong style="color:green;">Author1_Username</strong>"'&gt;

&lt;span class="author"&gt;&lt;img src="<strong style="color:purple;">Image1_URL</strong>"/&gt;&lt;/span&gt;
&lt;/b:if&gt;

&lt;b:if cond='data:post.author == "<strong style="color:green;">Author2_Username</strong>"'&gt;
&lt;span class="author"&gt;&lt;img src="<strong style="color:purple;">Image2_URL</strong>"/&gt;&lt;/span&gt;

&lt;/b:if&gt;</pre>
<p>(You can repeat this code and keep modifying it, in case your blog has more than two blog authors.)</p>
<p>This code is case sensitive. So, <strong>Fernando</strong> <span style="text-decoration:underline;">is not the same as</span> <strong>fernando</strong> or <strong>FERNANDO</strong>. The username we have to insert in the code above must match exactly the one displayed in our Blogger Profile. Also, the ideal image size is around the 30&#215;30 &#8211; 50&#215;50 pixels.</p>
<h2>Customization</h2>
<p>In order to style the image, we need to copy and customize the following code, right before <code>]]&lt;/b:skin&gt;</code>:</p>
<pre>.author img {
padding: 0;
float: <strong style="color: red;">left</strong>;
border: none;     /*We may add some border to the images.*/
<em>margin: 0 10px 10px 0;</em>
}
</pre>
<p>The <strong>float</strong> property, as well as the <strong>margin</strong>, might change according to where we want the images to be displayed.</p>
<h2>Demo</h2>
<p><a href="http://randomness-tests.blogspot.com">You can take a look at the result right here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://quiterandom.com/tutorials/different-images-for-each-post-author/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
