<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.2" -->
<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/"
	>

<channel>
	<title>pootato.org &#187; Tutorials</title>
	<link>http://pootato.org</link>
	<description>Tutorials for your website</description>
	<pubDate>Mon, 26 May 2008 19:56:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>
	<language>en</language>
			<item>
		<title>Coding a layout</title>
		<link>http://pootato.org/tutorials/html/coding-a-layout/</link>
		<comments>http://pootato.org/tutorials/html/coding-a-layout/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 19:42:31 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/html/coding-a-layout/</guid>
		<description><![CDATA[Edit: Added display: inline; to #text and #sidebar because of IE6 bugs.
You reached the coding part of the tutorial. The first part is here, it explains how to make this simple layout in Photoshop. We&#039;re going to code the simple layout we made here. First, let&#039;s prepare our HTML file. Put all the codes we&#039;ll [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Edit:</strong> Added <samp>display: inline;</samp> to <samp>#text</samp> and <samp>#sidebar</samp> because of IE6 bugs.</p>
<p>You reached the coding part of the tutorial. The first part is <a href="http://pootato.org/tutorials/photoshop/making-a-simple-layout/">here</a>, it explains how to make <a href="/examples/simplelayout/coding.php?cssfile=style5">this simple layout</a> in Photoshop. We&#039;re going to code the simple layout we made here. First, let&#039;s prepare our HTML file. Put all the codes we&#039;ll need first. Between <samp>&lt;head&gt;</samp> and <samp>&lt;/head&gt;</samp>, don&#039;t forget to link the HTML file to style.css that we will create afterwards:</p>
<p><code> &lt;link rel="stylesheet" href="<strong>style.css</strong>&#034; type=&#034;text/css&#034; media=&#034;screen&#034; /&gt; </code></p>
<p> <a href="http://pootato.org/tutorials/html/coding-a-layout/#more-126" class="more-link">(more&#8230;)</a></p>
<p class="akst_link"><a href="http://pootato.org/?p=126&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_126" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/html/coding-a-layout/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Making a simple layout</title>
		<link>http://pootato.org/tutorials/photoshop/making-a-simple-layout/</link>
		<comments>http://pootato.org/tutorials/photoshop/making-a-simple-layout/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 13:41:16 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/photoshop/making-a-simple-layout/</guid>
		<description><![CDATA[The old tutorial is really out of date and the layout was ugly so here is a new one, to make a simple and minimalist layout. Open a new file. 800*600px is enough, if you need a wider layout, choose the width you need. Let&#039;s fill it with a solid color. Click on Create new [...]]]></description>
			<content:encoded><![CDATA[<p>The old tutorial is really out of date and the layout was ugly so here is a new one, to make a simple and minimalist layout. Open a new file. 800*600px is enough, if you need a wider layout, choose the width you need. Let&#039;s fill it with a solid color. Click on <strong>Create new fill layer</strong> <img src="/schemas/ps/buttons/adjlay.jpg" alt="New fill layer button" /> in the Layers window and select &#034;<strong>Solid Color</strong>&#034;.</p>
<div class="hr">
<hr /></div>
<p><a href="/schemas/ps/layout2/001.jpg" rel='lightbox[making-a-simple-layout]'><img src="/schemas/ps/layout2/001_.jpg" alt="x" class="left" border="0" height="94" width="200" /></a>Create a new layer <img src="/schemas/ps/buttons/new.jpg" alt="New layer button" /> and make a big selection with the selection tool <img src="/schemas/ps/buttons/select.jpg" alt="x" border="0" height="19" width="23" />, for example, <strong>750*600px</strong>. And fill it with white. We have this so far.</p>
<div class="hr">
<hr /></div>
<p><a href="/schemas/ps/layout2/003.jpg" rel='lightbox[making-a-simple-layout]'><img src="/schemas/ps/layout2/003_.jpg" alt="x" class="left" border="0" height="94" width="200" /></a>Now, double click on your white layer to go to the Layer Style. We&#039;re going to add some drop shadow, check &#034;<strong>Drop Shadow</strong>&#034;. I set the distance to 0, and the size to 8px. (<a href="/schemas/ps/layout2/002.jpg" rel='lightbox[making-a-simple-layout]'>View settings</a>)</p>
<p> <a href="http://pootato.org/tutorials/photoshop/making-a-simple-layout/#more-125" class="more-link">(more&#8230;)</a></p>
<p class="akst_link"><a href="http://pootato.org/?p=125&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_125" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/photoshop/making-a-simple-layout/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CSS Progress Bar</title>
		<link>http://pootato.org/tutorials/css/css-progress-bar/</link>
		<comments>http://pootato.org/tutorials/css/css-progress-bar/#comments</comments>
		<pubDate>Tue, 21 Aug 2007 13:58:19 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/css/css-progress-bar/</guid>
		<description><![CDATA[This is a CSS trick originally from Man Bytes Hollywood article &#034;Track your progress (or Lack thereof)&#034;.
Step 1: prepare your images
Your image must be an horizontally repeating background. Of course, you can choose to use no image at all and only a solid color. Too lazy to make a background? I&#039;ve prepared two for you:
 [...]]]></description>
			<content:encoded><![CDATA[<p>This is a CSS trick originally from Man Bytes Hollywood article &#034;<a href="http://www.davidanaxagoras.com/2005/04/16/track-your-progress-or-lack-thereof/">Track your progress (or Lack thereof)</a>&#034;.</p>
<h2>Step 1: prepare your images</h2>
<p>Your image must be an horizontally repeating background. Of course, you can choose to use no image at all and only a solid color. Too lazy to make a background? I&#039;ve prepared two for you:</p>
<p><img src="http://pootato.org/schemas/2007/08/progress_blue.gif" alt="Blue progress bar background" /> <img src="http://pootato.org/schemas/2007/08/progress_pink.gif" alt="Pink progress bar background" /></p>
<h2>Step 2: the HTML code</h2>
<p>This is very simple, we use two divs, one to make the border, it will have a fixed width, and one inside, to display the progress. To change the progress, change its width! :)</p>
<p><code>&lt;div class="prog-border"&gt;<br />
&lt;div class="prog-bar" style="width: <strong>x</strong>%;&#034;&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;</code></p>
<h2>Step 3: styling all this</h2>
<p>Now, the most important, the CSS! In your stylesheet, add this:</p>
<p><code><strong>.prog-border</strong> {<br />
width: 200px;<br />
height: 20px;<br />
background: #FFF;<br />
padding: 3px;<br />
border: 1px solid #DDD;<br />
}<br />
<strong>.prog-bar</strong> {<br />
height: 20px;<br />
background: url(<em>progress_bar_background.gif</em>) repeat-x; /* use the color or the background you want! */<br />
}</code></p>
<p>We&#039;re done! You should have this:</p>
<div style="border: 1px solid #dddddd; padding: 3px; width: 200px; height: 20px">
<div style="background: transparent url('http://pootato.org/schemas/2007/08/progress_pink.gif') repeat-x scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; height: 20px; width: 45%"></div>
</div>
<p class="akst_link"><a href="http://pootato.org/?p=121&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_121" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/css/css-progress-bar/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CSS Rollovers</title>
		<link>http://pootato.org/tutorials/css/css-rollovers/</link>
		<comments>http://pootato.org/tutorials/css/css-rollovers/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 14:31:08 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/css/css-rollovers/</guid>
		<description><![CDATA[This is the little trick I use to make my menus rollovers. To start, let&#039;s make a simple rollover. See it in action on this page. Note that we use only one image to make the rollover. You just need to put the second image below the first one in your graphic editor and save. [...]]]></description>
			<content:encoded><![CDATA[<p>This is the little trick I use to make my menus rollovers. To start, let&#039;s make a simple rollover. See it in action <a href="http://pootato.org/examples/rollover.html" target="_blank">on this page</a>. Note that we use only one image to make the rollover. You just need to put the second image below the first one in your graphic editor and save. Let&#039;s insert the HTML codes first:</p>
<p><code>&lt;a href="http://domain.com" <strong>class=&#034;rollover&#034;</strong>&gt;<em>&lt;var&gt;</em>Rollover<em>&lt;/var&gt;</em>&lt;/a&gt;</code></p>
<p>Do not forget to add a class and to insert the link text between <samp>&lt;var&gt;</samp> and <samp>&lt;/var&gt;</samp> ! Then, the css:</p>
<p><code><strong>var</strong> {<br />
visibility: hidden; /* this will hide the text link */<br />
}<br />
<strong>a.rollover</strong> {<br />
display: block; /* needed to set link dimensions */<br />
width: 180px; /* width of your image */<br />
height: 50px; /* height of your image, divided by two, we need to hide the second image */<br />
background: url(<em>IMAGE.JPG</em>) no-repeat; /* image url */<br />
text-decoration: none; /* to hide the link underline */<br />
}<br />
<strong>a:hover.rollover</strong> {<br />
background: url(<em>IMAGE.jpg</em>) no-repeat <strong>0px -50px</strong>; /* On mouseover, we show the second image, by adjusting background position! */<br />
}</code></p>
<p><img src="http://pootato.org/schemas/2007/08/rollovergrid.jpg" alt="Grid" class="left" />As you can see, I&#039;ve added some values to <samp>a:hover.rollover</samp>: <samp>0px -50px</samp> this is the <strong>background-position</strong> property. It&#039;s like the image &#034;coordinates&#034;. The image dimension is 180px*100px but it is equally divided in two parts. When the mouse is not over, we need to show the top image, we do not set the background position because default values are 0px 0px, which is the top image &#034;coordinates&#034;. When the mouse is over, we need to show the second image and as you can see on the grid, its &#034;coordinates&#034; are 0px -50px ! :) Okay, I suck at explaining. XD</p>
<p>Let&#039;s do something more complex, like an entire menu. This is the HTML code of our menu, I&#039;ve put the links in a div:</p>
<p><code>&lt;div id="menu"&gt;<br />
&lt;a href="linkone.html" class="one"&gt;&lt;var&gt;one&lt;/var&gt;&lt;/a&gt;<br />
&lt;a href="linktwo.html" class="two"&gt;&lt;var&gt;two&lt;/var&gt;&lt;/a&gt;<br />
&lt;a href="linkthree.html" class="three"&gt;&lt;var&gt;three&lt;/var&gt;&lt;/a&gt;<br />
&lt;a href="linkfour.html" class="four"&gt;&lt;var&gt;four&lt;/var&gt;&lt;/a&gt;<br />
&lt;/div&gt;</code></p>
<p>Note that the links classes are all different, this is necessary! This is the image we&#039;ll use:</p>
<div class="center"><img src="http://pootato.org/schemas/2007/08/menuroll.jpg" alt="Menu rollover" /></div>
<p>Let&#039;s see it in a grid so that we can set the background-position easily for each link:</p>
<div class="center"><img src="http://pootato.org/schemas/2007/08/menurollgrid.jpg" alt="Menu rollover grid" /></div>
<p>Alright, CSS time! First, let&#039;s style our menu div. Set its dimension to 400*50px:</p>
<p><code><strong>#menu</strong> {<br />
width: 400px;<br />
height: 50px;<br />
}</code></p>
<p>Now, hide the text link:</p>
<p><code><strong>var</strong> {<br />
visibility: hidden;<br />
}</code></p>
<p>And for all links, hide the underline, set their height to 50px, and we&#039;ll need to add the float property, to align them correctly (because we &#034;transformed them into blocks&#034; to set their dimensions with display:block;):</p>
<p><code><strong>#menu a</strong> {<br />
text-decoration: none;<br />
display: block;<br />
float: left;<br />
height: 50px;<br />
}</code></p>
<p>Now, let&#039;s add styles for each link using classes:</p>
<p><code><strong>a.one</strong> {<br />
width: 100px;<br />
background: url(image.jpg) no-repeat <em>0px 0px</em>;<br />
}<br />
<strong>a.two</strong> {<br />
width: 100px;<br />
background: url(image.jpg) no-repeat <em>-100px 0px</em>;<br />
}<br />
<strong>a.three</strong> {<br />
width: 100px;<br />
background: url(image.jpg) no-repeat <em>-200px 0px</em>;<br />
}<br />
<strong>a.four</strong> {<br />
width: 100px;<br />
background: url(image.jpg) no-repeat <em>-300px 0px</em>;<br />
}</code></p>
<p>Note that background position is different for each class, since we need to display different parts of the image. See the grid. For example, link four image starts at 300px from the left, but in the CSS, we need to add <em>minus</em> 300px.</p>
<p>Now let&#039;s set the background-position when someone mouse over the links. We&#039;ll keep the &#034;x&#034; position but change the &#034;y&#034; ones, by adding <samp>-50px</samp> to display the second image (green).</p>
<p><code><strong>a:hover.one</strong> {<br />
background: url(image.jpg) no-repeat <em>0px -50px</em>;<br />
}<br />
<strong>a:hover.two</strong> {<br />
background: url(image.jpg) no-repeat <em>-100px -50px</em>;<br />
}<br />
<strong>a:hover.three</strong> {<br />
background: url(image.jpg) no-repeat <em>-200px -50px</em>;<br />
}<br />
<strong>a:hover.four</strong> {<br />
background: url(image.jpg) no-repeat <em>-300px -50px</em>;<br />
}</code></p>
<p>We&#039;re done! You can see the rollover in action <a href="http://pootato.org/examples/menurollover.html" target="_blank">on this page</a>.</p>
<p>Note: There is a file embedded within this post, please visit this post to download the file.</p>
<p class="akst_link"><a href="http://pootato.org/?p=113&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_113" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/css/css-rollovers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fading drop shadows</title>
		<link>http://pootato.org/tutorials/photoshop/fading-drop-shadows/</link>
		<comments>http://pootato.org/tutorials/photoshop/fading-drop-shadows/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 17:56:46 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/photoshop/fading-drop-shadows/</guid>
		<description><![CDATA[This tutorial will explain you how to make drop shadows on some part of your image only. For example, I have my blank background and an other layer on it, white too. (I&#039;ve put a light grey border so that you can see it.) Duplicate this layer and put it below the original one.


Double click [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/schemas/ps/shadow01.jpg" alt="x" class="left" /><img src="/schemas/ps/shadow02.jpg" alt="x" class="right" />This tutorial will explain you how to make drop shadows on some part of your image only. For example, I have my blank background and an other layer on it, white too. (I&#039;ve put a light grey border so that you can see it.) Duplicate this layer and put it below the original one.</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/shadow04.jpg" alt="x" class="left" />Double click on the layer copy to go to the <a href="/schemas/ps/shadow03.jpg" rel='lightbox[fading-drop-shadows]'>layer style</a>. Add some drop shadow (check &#034;Drop Shadow&#034;) and modify the settings so that it looks good. I set the distance to 0 on mine.</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/shadow04.jpg" alt="x" class="left" />Double click on the layer copy to go to the <a href="/schemas/ps/shadow03.jpg" rel='lightbox[fading-drop-shadows]'>layer style</a>. Add some drop shadow (check &#034;Drop Shadow&#034;) and modify the settings so that it looks good. I set the distance to 0 on mine.</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/shadow05.jpg" alt="x" class="left" /><img src="/schemas/ps/shadow06.jpg" alt="x" class="right" />Press <kbd>Ctrl + T</kbd> to free transform it. Drag the corners as you like, while pressing <kbd>Ctrl</kbd>.</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/shadow07.jpg" alt="x" class="left" />Here is the result :)</p>
<div class="hr">
<hr /></div>
<p class="akst_link"><a href="http://pootato.org/?p=112&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_112" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/photoshop/fading-drop-shadows/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Make a paper clip</title>
		<link>http://pootato.org/tutorials/photoshop/make-a-paper-clip/</link>
		<comments>http://pootato.org/tutorials/photoshop/make-a-paper-clip/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 17:39:11 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/photoshop/make-a-paper-clip/</guid>
		<description><![CDATA[  Here is a quick way to create an almost realistic paper clip! :) First, you need the paper clip shape that is included with Photoshop. If you don&#039;t have it, download it from here. Select the custom shape tool  (U) and choose the paper clip shape. Press shift while dragging, so that [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/schemas/ps/clip02.jpg" alt="x" class="left" /> <img src="/schemas/ps/clip01.jpg" alt="x" class="right" /> Here is a quick way to create an almost realistic paper clip! :) First, you need the paper clip shape that is included with Photoshop. If you don&#039;t have it, <a href="/schemas/ps/objects.zip">download it from here</a>. Select the custom shape tool <img src="/schemas/ps/buttons/shape.jpg" alt="x" /> (U) and choose the paper clip shape. Press shift while dragging, so that the proportions of your paper clip are correct.</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/clip03.jpg" alt="x" class="left" /> Now, double click on your shape layer to go to the layer style and check &#034;Bevel and Emboss&#034;. I&#039;ve highlighted the setting to change on <a href="/schemas/ps/clip04.jpg" rel='lightbox[make-a-paper-clip]'>this screenshot</a>. That is to say, the <strong>depth</strong>, the <strong>gloss contour</strong>, the <strong>opacity</strong> of highlight mode and the <strong>color</strong> and <strong>blending mode</strong> of shadow mode. Note that you should adjust the depth to the size of your paper clip!</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/clip05.jpg" alt="x" class="left" /> Let&#039;s add some little drop shadow to it. Still in the layer style, check &#034;<strong>Drop shadow</strong>&#034;. I set the <strong>distance</strong> to 0, and the <strong>size</strong> to 1, and the <strong>opacity</strong> to 50%.</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/clip06.jpg" alt="x" class="left" /> <img src="/schemas/ps/clip07.jpg" alt="x" class="right" /> Here are other example of clips and how to use them :) You have to delete the &#034;inner&#034; parts of it. (See image on the right) Remember that the setting depends of the size of the clip, so you may not get the same results as me if you apply my settings!</p>
<div class="hr">
<hr /></div>
<p class="akst_link"><a href="http://pootato.org/?p=111&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_111" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/photoshop/make-a-paper-clip/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Layout preview</title>
		<link>http://pootato.org/tutorials/php/layout-preview/</link>
		<comments>http://pootato.org/tutorials/php/layout-preview/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 10:55:06 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/php/layout-preview/</guid>
		<description><![CDATA[Ever wondered how I did the preview thing for my designs page? You&#039;ll need to do 3 pages:
- A page with your logo (keep it small),
- The page that will merge the 2 other pages,
- The page(s) with the layout preview, or anything else you want to use this script for.
Let&#039;s make the first page, [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wondered how I did the preview thing for my designs page? You&#039;ll need to do 3 pages:<br />
- A page with your logo (keep it small),<br />
- The page that will merge the 2 other pages,<br />
- The page(s) with the layout preview, or anything else you want to use this script for.</p>
<p>Let&#039;s make the first page, with your logo. I&#039;ll use mine in the example:</p>
<p><img src="http://pootato.org/images/preview.gif" alt="x" border="0" height="60" width="260" /></p>
<p>And here we go with the code:</p>
<p><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;<strong>YOUR TITLE</strong>&lt;/title&gt;<br />
&lt;meta http-equiv=&#034;Content-Type&#034; content=&#034;text/html; charset=iso-8859-1&#034;    /&gt;<br />
&lt;meta http-equiv=&#034;imagetoolbar&#034; content=&#034;false&#034; /&gt;<br />
&lt;style type=&#034;text/css&#034;&gt;<br />
body { background-color: #<em>E4EDF4</em>; background-repeat: <em>no-repeat</em>;  margin: <em>0</em>px; padding: <em>0</em>px;}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;img src=&#034;<strong>LOGO-URL</strong>&#034; alt=&#034;" border=&#034;0&#034;  /&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></p>
<p>Save this page as <strong>header.php</strong></p>
<p>Now, let&#039;s make the page that will merge the 2 others, this is where the php makes its entry. We&#039;re going to use frames.</p>
<p><code>&lt;?<br />
$siteurl = "<strong>http://your-domain.com</strong>&#034;;<br />
if ($url) {<br />
$sitedir = &#034;<strong>http://your-domain.com/layout/directory/</strong><em>$url</em>&#034;;<br />
// Don&#039;t delete $url !!!<br />
}<br />
else {<br />
header(&#034;Location: $siteurl&#034;);<br />
}<br />
?&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;<strong>YOUR TITLE</strong>&lt;/title&gt;<br />
&lt;meta http-equiv=&#034;Content-Type&#034; content=&#034;text/html; charset=iso-8859-1&#034;    /&gt;<br />
&lt;meta http-equiv=&#034;imagetoolbar&#034; content=&#034;false&#034; /&gt;<br />
&lt;/head&gt;<br />
&lt;frameset frameborder=&#034;0&#034; rows=&#034;<strong>LOGO IMAGE HEIGHT (a number)</strong>,*&#034;&gt;<br />
&lt;frame src=&#034;<strong>http://your-domain.com/</strong>header.php&#034; scrolling=&#034;no&#034;&gt;<br />
&lt;frame src=&#034;&lt;?php echo $sitedir; ?&gt;&#034;&gt;<br />
&lt;noframes&gt;<br />
&lt;body&gt;<br />
Viewing this page requires a browser capable of displaying frames.<br />
&lt;/body&gt;<br />
&lt;/noframes&gt;<br />
&lt;/frameset&gt;<br />
&lt;/html&gt;</code></p>
<p>Save this as <strong>view.php</strong> and voila!</p>
<p>Now what&#039;s left is to create your layout directory (put its url in $sitedir).    Inside that folder, create a new folder for each layout (no space!), for example:<br />
-/layout001/<br />
-/image.jpg<br />
-/index.html<br />
-/layout002/<br />
-/image.jpg<br />
-/index.html</p>
<p>Your layout page must be named <strong>index.html</strong> or .htm!</p>
<p>To make a link to the final preview page, do this:</p>
<p><code>&lt;a href="<strong>http://your-domain.com/view.php?url=layout001</strong>&#034;&gt;Preview Layout 001&lt;/a&gt;</code></p>
<p>Hope it works!</p>
<p class="akst_link"><a href="http://pootato.org/?p=105&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_105" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/php/layout-preview/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Slicing a layout</title>
		<link>http://pootato.org/tutorials/photoshop/slicing-a-layout/</link>
		<comments>http://pootato.org/tutorials/photoshop/slicing-a-layout/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 10:39:06 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/photoshop/slicing-a-layout/</guid>
		<description><![CDATA[You&#039;ve probably read the first part of this tutorial. Now that you have your design, you will have to save it and slice it, right?


You will have to show the rulers. Go to [ View &#62; Rulers ] (Ctrl + R)


 Take the move tool (V)  click on the top ruler and drag the [...]]]></description>
			<content:encoded><![CDATA[<p>You&#039;ve probably read the first part of this tutorial. Now that you have your design, you will have to save it and slice it, right?</p>
<div class="hr">
<hr /></div>
<p><a href="/schemas/ps/layout/051.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/051_.jpg" alt="x" class="left" border="0" height="120" width="152" /></a>You will have to show the rulers. Go to <strong>[ View &gt; Rulers ]</strong> (<kbd>Ctrl + R</kbd>)</p>
<div class="hr">
<hr /></div>
<p><a href="/schemas/ps/layout/052.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/052_.jpg" alt="x" class="left" border="0" height="120" width="152" /></a> <a href="/schemas/ps/layout/053.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/053_.jpg" alt="x" class="right" border="0" height="120" width="152" /></a>Take the move tool (<kbd>V</kbd>) <img src="/schemas/ps/buttons/move.jpg" alt="x" border="0" height="19" width="23" /> click on the top ruler and drag the guide to your layout. In the screenshot, the guide is the red line. It&#039;s red there, but it can be blue, green or whatever in your Photoshop, depending on your configuration. Well, repeat this step and divide your layout. (See the second screenshot)</p>
<div class="hr">
<hr /></div>
<p>Here is a little explanation for the numbers:</p>
<ul>
<li><strong>01</strong> to <strong>06</strong>: layout images.</li>
<li><strong>07</strong>: this is where your contents will be.</li>
<li><strong>08</strong>: this is your menu</li>
<li><strong>09</strong> to <strong>12</strong>: layout images.</li>
<li><strong>13</strong> to <strong>16</strong>: this is the background, in fact, I will merge all these into one picture.</li>
</ul>
<p>You may have noticed it, I haven&#039;t numbered some cells at the right. It&#039;s because I will merge them.</p>
<div class="hr">
<hr /></div>
<p><a href="/schemas/ps/layout/054.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/054_.jpg" alt="x" class="left" border="0" height="120" width="152" /></a>Well, now, take the slice tool (<kbd>K</kbd>) <img src="/schemas/ps/buttons/slice.jpg" alt="x" border="0" height="19" width="23" /> and click on &#034;slices from guides&#034;.</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/layout/055.jpg" alt="x" class="left" border="0" height="120" width="152" /> <a href="/schemas/ps/layout/056.gif" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/056_.gif" alt="x" class="left" border="0" height="120" width="152" /></a> <a href="/schemas/ps/layout/057.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/057_.jpg" alt="x" class="right" border="0" height="120" width="152" /></a>You will have to edit those slices. Take the Slice select tool <img src="/schemas/ps/buttons/sliceedit.jpg" alt="x" />. You will have to delete the following slices: #17, #18, #19, #20. (See second screenshot animation.) Then, click on slice #16 and enlarge it. (See third screenshot.)</p>
<div class="hr">
<hr /></div>
<p><a href="/schemas/ps/layout/058.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/058_.jpg" alt="x" class="left" border="0" height="120" width="152" /></a> <a href="/schemas/ps/layout/059.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/059_.jpg" alt="x" class="right" border="0" height="120" width="152" /></a>Okay, it&#039;s ready to be saved. Go to <strong>[ File &gt; Save for Web ]</strong> (<kbd>Alt + Shift + Ctrl + S</kbd>). A window will pop up. Select the entire layout.</p>
<div class="hr">
<hr /></div>
<p><a href="/schemas/ps/layout/060.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/060_.jpg" alt="x" class="left" border="0" height="120" width="152" /></a>Put those settings&#8230;(click the screenshot to enlarge).</p>
<div class="hr">
<hr /></div>
<p><a href="/schemas/ps/layout/061.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/061_.jpg" alt="x" class="left" border="0" height="120" width="152" /></a>Click on the blue arrow <img src="/schemas/ps/buttons/arrow.jpg" alt="x" border="0" height="15" width="14" /> and select <strong>Edit Output Settings</strong>. Another window will pop up. There&#039;s a drop down menu and it&#039;s written &#034;HTML&#034;, I will skip this, click on it and select &#034;<strong>Saving Files</strong>&#034;. If you know how to use it, feel free to set it up yourself but I advise you to do it like that:</p>
<p>Then, press OK and in the previous window, press SAVE. A window will pop up, choose the directory where you want to save your files and press SAVE.</p>
<div class="hr">
<hr /></div>
<p><a href="/schemas/ps/layout/062.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/062_.jpg" alt="x" class="left" border="0" height="120" width="152" /></a>Ookaay! Now, check in your directory, the files should be there! ;) You can delete the HTML page generated by Photoshop. Here is what your folder should look like:</p>
<div class="hr">
<hr /></div>
<p><a href="/schemas/ps/layout/063.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/063_.jpg" alt="x" class="left" border="0" height="120" width="152" /></a> <a href="/schemas/ps/layout/064.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/064_.jpg" alt="x" class="left" border="0" height="120" width="152" /></a> <a href="/schemas/ps/layout/065.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/065_.jpg" alt="x" class="right" border="0" height="120" width="152" /></a>Unfortunately, it&#039;s not over, that&#039;s the problem when we use patterns&#8230; We have to &#034;fix&#034; some graphics. Open <strong>08.jpg</strong>. Take the move tool (<kbd>V</kbd>) <img src="/schemas/ps/buttons/move.jpg" alt="x" border="0" height="19" width="23" /> again and make guides. Take the slice tool (<kbd>K</kbd>) <img src="/schemas/ps/buttons/slice.jpg" alt="x" border="0" height="19" width="23" /> and click on &#034;slices from guides&#034;.</p>
<div class="hr">
<hr /></div>
<p><a href="/schemas/ps/layout/066.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/066_.jpg" alt="x" class="left" border="0" height="120" width="152" /></a>Return to <strong>[ File &gt; Save for Web ]</strong> (<kbd>Alt + Shift + Ctrl + S</kbd>). Do the same thing as before, but in the Saving Files settings, put the same values as the screenshot.</p>
<p>Save it in your <em>images</em> directory. You should now have a.jpg, b.jpg, &#8230; i.jpg! You can delete <strong>08.jpg</strong> or keep it.</p>
<div class="hr">
<hr /></div>
<p><a href="/schemas/ps/layout/067.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/067_.jpg" alt="x" class="left" border="0" height="120" width="152" /></a>Now, open <strong>16.jpg</strong>. It&#039;s the background, it will repeat, if you want it to show up correctly, take the selection tool (<kbd>M</kbd>) <img src="/schemas/ps/buttons/select.jpg" alt="x" border="0" height="19" width="23" /> and select a part as below.</p>
<div class="hr">
<hr /></div>
<p><a href="/schemas/ps/layout/068.jpg" rel='lightbox[slicing-a-layout]'><img src="/schemas/ps/layout/068_.jpg" alt="x" class="left" border="0" height="120" width="152" /></a>Go to <strong>[ Image &gt; Crop ]</strong> and save (<kbd>Ctrl + S</kbd>).</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/layout/069.jpg" alt="x" class="left" border="0" height="193" width="123" /> <img src="/schemas/ps/layout/070.jpg" alt="x" class="right" border="0" height="193" width="123" />Open <strong>04.jpg</strong>, take the selection tool (<kbd>M</kbd>) <img src="/schemas/ps/buttons/select.jpg" alt="x" border="0" height="19" width="23" /> and select it like me. Go to <strong>[ Image &gt; Crop ]</strong> Go to <strong>[ File &gt; Save as ]</strong> (<kbd>Shift + Ctrl + S</kbd>) and save it as <strong>05.jpg</strong>, replace the current one.</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/layout/071.jpg" alt="x" class="left" border="0" height="193" width="123" /> <img src="/schemas/ps/layout/072.jpg" alt="x" class="right" border="0" height="193" width="123" />Open <strong>14.jpg</strong>, take the selection tool (<kbd>M</kbd>) <img src="/schemas/ps/buttons/select.jpg" alt="x" border="0" height="19" width="23" /> and select it like me. Go to <strong>[ Image &gt; Crop ]</strong> Go to <strong>[ File &gt; Save as ]</strong> (<kbd>Shift + Ctrl + S</kbd>) and save it as <strong>15.jpg</strong>, replace the current one.</p>
<div class="hr">
<hr /></div>
<p>God, it&#039;s finally over! :D <del>Now, you can read the next part about coding! :)</del></p>
<p>(attn) I have removed that next part because it&#039;s really out of date, sorry!</p>
<p class="akst_link"><a href="http://pootato.org/?p=104&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_104" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/photoshop/slicing-a-layout/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Making a layout (obsolete)</title>
		<link>http://pootato.org/tutorials/photoshop/making-a-layout/</link>
		<comments>http://pootato.org/tutorials/photoshop/making-a-layout/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 10:15:17 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/photoshop/making-a-layout/</guid>
		<description><![CDATA[(attn) This tutorial is old! Totally out of date. Check new version.

This is the first part of the tutorial, the designing part. I divided this tutorial into 3 parts: designing, slicing and saving and coding (coding part is too out of date). Of course, reading this doesn&#039;t mean you will be able to make a [...]]]></description>
			<content:encoded><![CDATA[<p style="color: red">(attn) <strong>This tutorial is old! Totally out of date. <a href="http://pootato.org/tutorials/photoshop/making-a-simple-layout/">Check new version</a>.<br />
</strong></p>
<p>This is the first part of the tutorial, the designing part. I divided this tutorial into 3 parts: <strong>designing</strong>, <strong>slicing and saving</strong> and <del>coding</del> (coding part is too out of date). Of course, reading this doesn&#039;t mean you will be able to make a gorgeous layout! [ Besides, the layout we&#039;re making isn&#039;t that&#8230;pretty. :( ] It&#039;s just some <strong>methods</strong>, tips and organization. :) Well, you can click on some thumbnails to enlarge them and see some notes.</p>
<p> <a href="http://pootato.org/tutorials/photoshop/making-a-layout/#more-103" class="more-link">(more&#8230;)</a></p>
<p class="akst_link"><a href="http://pootato.org/?p=103&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_103" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/photoshop/making-a-layout/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Make a flower</title>
		<link>http://pootato.org/tutorials/photoshop/make-a-flower/</link>
		<comments>http://pootato.org/tutorials/photoshop/make-a-flower/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 10:10:07 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/photoshop/make-a-flower/</guid>
		<description><![CDATA[Make a new document (Ctrl + N) and fill  it with a gradient. Take care: the white should always be below the other layer.
Créez un nouveau document (Ctrl + N) et remplissez-le  d&#039;un dégradé mais faîtes attention: le blanc doit être en bas.


Go to [ Filter &#62; Distort &#62; Wave ] set the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/schemas/ps/flo_01.jpg" alt="x" class="left" />Make a new document (<kbd>Ctrl + N</kbd>) and fill <img src="/schemas/ps/buttons/fill.jpg" alt="x" /> it with a gradient. Take care: the white should always be below the other layer.</p>
<p class="fr">Créez un nouveau document (<kbd>Ctrl + N</kbd>) et remplissez-le <img src="/schemas/ps/buttons/fill.jpg" alt="x" /> d&#039;un dégradé mais faîtes attention: le blanc doit être en bas.</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/flo_02.jpg" alt="x" class="left" />Go to <strong>[ Filter &gt; Distort &gt; Wave ]</strong> set the number of generators to <em>10</em> and the type to <em>Square</em>.</p>
<p class="fr">Allez à <strong>[ Filtre &gt; Déformation &gt; Onde ]</strong> mettez <em>10</em> pour les générateurs et choisissez la forme <em>Rectangulaire</em>.</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/flo_03.jpg" alt="x" class="left" />Go to <strong>[ Filter &gt; Distort &gt; Polar Coordinates ]</strong> and set it to <em>Rectangular to polar</em>.</p>
<p class="fr">Allez à <strong>[ Filtre &gt; Déformation &gt; Coordonnées Polaires ]</strong> et choisissez <em>Rectangulaire en polaire</em>.</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/flo_04.jpg" alt="x" class="left" />Go to <strong>[ Filter &gt; Distort &gt; Twirl ]</strong> and set the angle to <em>75°</em>.</p>
<p class="fr">Allez à <strong>[ Filtre &gt; Déformation &gt; Tourbillon ]</strong> et mettez un angle de <em>75°</em>.</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/flo_05.jpg" alt="x" class="left" />Duplicate the layer, go to <strong>[ Layer &gt; Duplicate Layer ]</strong> or press <kbd>Ctrl + J</kbd>. Go to <strong>[ Filter &gt; Distort &gt; Twirl ]</strong> and this time, set the angle to <em>-150°</em>. (The opposite of the previous angle, x2. Example, if your previous angle was 50°, this time, the angle should be -100°.)</p>
<p class="fr">Dupliquez le calque, allez à <strong>[ Calque &gt; Dupliquer le calque ]</strong> ou appuyez <kbd>Ctrl + J</kbd>. Allez à <strong>[ Filtre &gt; Déformation &gt; Tourbillon ]</strong> et cette fois, choisissez un anglais de <em>-150°</em>. (L&#039;opposé de l&#039;angle précédent multiplié par 2. Par exemple, si votre angle précédent était 50°, cette fois, ça devrait être -100°.)</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/flo_06.jpg" alt="x" class="left" />Set the blending mode to <em>Multiply</em>.</p>
<p class="fr">Changez le mode de fusion à <em>Produit</em>.</p>
<div class="hr">
<hr /></div>
<p><img src="/schemas/ps/flo_07.jpg" alt="x" class="left" />Here is the result! Have fun!</p>
<p class="fr">Voilà! Amusez-vous bien!</p>
<div class="hr">
<hr /></div>
<p class="akst_link"><a href="http://pootato.org/?p=102&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_102" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/photoshop/make-a-flower/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
