<?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>PVM Garage &#187; Coding</title>
	<atom:link href="http://www.pvmgarage.com/tags/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pvmgarage.com</link>
	<description>Web Design and Development with passion. Free template, tutorials, html, css, freebies for web and graphic designer</description>
	<lastBuildDate>Fri, 03 Feb 2012 07:40:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Create Depth And Nice 3D Ribbons Only Using CSS3</title>
		<link>http://www.pvmgarage.com/2010/01/how-to-create-depth-and-nice-3d-ribbons-only-using-css3/</link>
		<comments>http://www.pvmgarage.com/2010/01/how-to-create-depth-and-nice-3d-ribbons-only-using-css3/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 11:43:33 +0000</pubDate>
		<dc:creator>Piervincenzo Madeo</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/en/?p=1296</guid>
		<description><![CDATA[In this last period on PV.M Garage we have described many trends of the modern Web Design and many techniques for creating stunning and impressive web sites.
In one of our tutorials we learned how to realize a nice 3D ribbon and how to play with the drop shadow in Photoshop to simulate depth in a web design layout. This is a widespread trends in recent web design: creating a 3D perception in a website and simulating a &#8220;world&#8221; in three ...]]></description>
			<content:encoded><![CDATA[<p>In this last period on PV.M Garage we have described many <a href="http://www.pvmgarage.com/en/tags/inspiration/">trends of the modern Web Design</a> and many techniques for creating stunning and impressive web sites.<br />
In <a href="http://www.pvmgarage.com/en/2009/09/design-a-clean-and-fresh-company-website-in-photoshop/">one of our tutorials</a> we learned how to realize a nice 3D ribbon and how to play with the drop shadow in Photoshop to simulate depth in a web design layout. This is a widespread trends in recent web design: <strong>creating a 3D perception</strong> in a website and simulating a &#8220;world&#8221; in three dimensions are two great ways for the designers to play with their skills.<br />
Thanks to useful graphic softwares (2D) we can easily create 3D elements, like ribbons and shadows, but we can also reproduce 3D scene using perspective, focus, color shading and opacity. There is also the possibility of using 3D softwares, like Blender, to create some 3D objects and images that we can use in our designs. There is an interesting article on <a href="http://blog.creativityden.com/">CreativityDen</a> about <a href="http://blog.creativityden.com/the-six-fundamental-ways-of-adding-depth-to-your-designs/">the fundamental ways of adding depth in web design works</a>; it explains six basic techniques to simulate the 3D perception in our works and I suggest an attentive reading.</p>
<p>Many beautiful web sites have a wonderful, balanced, three-dimensional perception and it&#8217;s clear that this kind of layouts use, in a clever way, images (generally in the <em>background</em> property), lines and some CSS techniques to create the illusion of depth (there is a brilliant post, by Henry Jones on <a href="http://www.webdesignledger.com">Web Design Ledger</a>, about <a href="http://webdesignledger.com/tips/adding-depth-with-pixel-perfect-line-work">the use of 1px line to simulate the depth</a>). Below some examples.</p>
<h3>DesignM.ag</h3>
<p><a href="http://www.designm.ag" title="designm.ag"><img src="http://www.pvmgarage.com/contenuti/2010/01/designmag.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></a> </p>
<h3>Blogof.FrancescoMugnai.com</h3>
<p><a href="http://www.blogof.francescomugnai.com" title="Blogof.FrancescoMugnai.com"><img src="http://www.pvmgarage.com/contenuti/2010/01/mugnai.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></a> </p>
<h3>Yoast.com</h3>
<p><a href="http://yoast.com" title="Yoast.com"><img src="http://www.pvmgarage.com/contenuti/2010/01/yoast.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></a> </p>
<h3>From-The-Couch.com</h3>
<p><a href="http://from-the-couch.com/" title="From-The-Couch.com"><img src="http://www.pvmgarage.com/contenuti/2010/01/couch.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></a> </p>
<p>Wait, wait, wait. We are web designers, right? We have two great allies to realize our daily projects: HTML and CSS.<br />
The improvements for these languages have been considerable and now the question in my mind is: could we build 3D elements and create depth only using HTML and CSS?<br />
Barack Obama could say &#8220;Yes, we can!&#8221;</p>
<p>Sure? Yes, <strong>it&#8217;s possible to create a simple and nice (3D) layout playing with some CSS3 properties</strong>, only using code and without the help of Photoshop.</p>
<h2>We Want to Make 3D Elements Without Images</h2>
<p>There are some properties of the CSS3 languages that can help us to accomplish this mission.<br />
We will use <a href="http://www.w3.org/TR/2005/WD-css3-background-20050216/#the-box-shadow">box-shadow</a> to create a drop-shadow with <em>RGBa</em>, a color model that allows an optimized contrast with any kind of backgrounds.<br />
RGBa is the standard RGB model (0,0,0 &#8211; 255,255,255) and it adds the last option (a) for the opacity. We can use this model also for other properties and it works with the new browser. </p>
<pre>
background: rgba(196,89,30,0.65);
</pre>
<pre>
-moz-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
-khtml-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
-webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
</pre>
<p>Other great new property: <a href="http://www.w3.org/TR/2009/CR-css3-background-20091217/#the-border-radius">border-radius</a>, that allows us to add nice rounded corners on box-items.</p>
<pre>
-moz-border-radius: 10px; /*radius of 10px*/
-khtml-border-radius: 10px;
-webkit-border-radius: 10px;
</pre>
<p>We will also use particular borders to create useful triangles for building a nice ribbon. Below the CSS code to draw an arrow (read <a href="http://www.dinnermint.org/css/creating-triangles-in-css/">Creating Triangles in CSS</a> to know more about this techinque).  </p>
<pre>
.triangle {
	border-color: transparent #7d90a3 transparent transparent;
	border-style:solid;
	border-width:15px;
	height:0px;
	width:0px;
}
</pre>
<p>The arrow is useful to reproduce the depth for some 3D elements, like a ribbon. Box-shadow helps us to create depth through shadows. Border-radius, instead, is just to add rounded corners where we want to utilize this solution.<br />
See the image below to deduce how we will use the CSS triangles, the shadows and the rounded corners.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3dexp.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p>We will create a simple menu, through an unordered list, using the <a href="http://www.w3.org/TR/css3-2d-transforms/#transform-property">transform</a> property for the single items of the list to make a nice effect.</p>
<pre>
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
</pre>
<p>Below you can see the final result of our efforts. You can also download the archive with the source files and see the live demo.<br />
<a href="http://www.pvmgarage.com/downloads/ribbon"><img src="http://www.pvmgarage.com/contenuti/2010/01/ribbonrev.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></a></p>
<div style="float: left; width:185px; height: 64px; margin-right: 15px; margin-top:0px;"><a href="http://www.pvmgarage.com/downloads/ribbon" target="_blank"><img style="border:none; background: transparent; padding:0px;" src="http://www.pvmgarage.com/en/pvmenglishcontent4984/themes/pvmgarage_fresh/images/anteprima-but.jpg" alt="Download Source" /></a></div>
<div style="float: left; width:185px; height: 64px;"><a href="http://www.pvmgarage.com/downloads/ribbon.zip"><img style="border:none; background: transparent; padding:0px;" src="http://www.pvmgarage.com/en/pvmenglishcontent4984/themes/pvmgarage_fresh/images/downloadbut.jpg" alt="Download Source" /></a></div>
<div style="width: 100%; clear: both; height: 45px;"></div>
<h2>How To Make a CSS Based 3D Layout</h2>
<p>First of all we set up our files. We create a new folder with <em>index.html</em> and <em>style.css</em>. </p>
<p>We prepare the HTML document.</p>
<pre>
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;CSS Ribbon&lt;/title&gt;
&lt;link href="style.css" rel="stylesheet" type="text/css" /&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;!-- 3D Stuff --&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Take a look at the following image to understand how we will realize the &#8220;structure&#8221; in our <em>index.html</em> file.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3dpx.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p>Well, as you have just seen in the picture we need a main container (centered), a bubble for the contents, and three elements for the ribbon: a rectangle and two triangles.</p>
<pre>
&lt;div id="container"&gt; &lt;!-- Main Container --&gt;    

&lt;div class="bubble"&gt; &lt;!-- Bubble --&gt;
&lt;div class="rectangle"&gt;&lt;h2&gt;3D CSS Ribbon&lt;/h2&gt;&lt;/div&gt; &lt;!-- Rectangle with a title --&gt;
&lt;div class="info"&gt;
&lt;h2&gt;I Have Used Only CSS, friends!&lt;/h2&gt;
&lt;p&gt;
For this tutorial I have used some new properties of the CSS3. You can realize a nice 3D effect using only CSS, it's really fantastic.&lt;br /&gt;It doesn't work with IE!
&lt;/p&gt;
&lt;p&gt;
&lt;a href="#"&gt;Go to the tutorial!&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
</pre>
<p>The CSS code to style the basic elements (container, bubble and rectangle) is the following.</p>
<pre>
/* Reset */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, font, img, ul, li {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}

:focus {
	outline: 0;
}
/* // Reset */

body {
	background: url(bck.jpg); /* image for body made with Photoshop using noise filter (gaussian monochromatic) on #ccc */
	font-family: Georgia, Verdana, “Lucida Sans Unicode”, sans-serif;
	font-size: 12px;
	color: #999;
}

h2 {
	font-style: italic;
	font-weight: normal;
	line-height: 1.2em;
}

div#container {
	margin: 50px auto 0px auto; /* centered */
	width: 400px;
}

.bubble {
	clear: both;
	margin: 0px auto;
	width: 350px;
	background: #fff;
	-moz-border-radius: 10px;
  -khtml-border-radius: 10px;
  -webkit-border-radius: 10px;
	-moz-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
  -khtml-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
  -webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
	position: relative;
	z-index: 90; /* the stack order: displayed under ribbon rectangle (100) */
}

.rectangle {
	background: #7f9db9;
	height: 50px;
	width: 380px;
	position: relative;
	left:-15px;
	top: 30px;
	float: left;
	-moz-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
  -khtml-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
  -webkit-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
	z-index: 100; /* the stack order: foreground */
}

.rectangle h2 {
	font-size: 30px;
	color: #fff;
	padding-top: 6px;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
	text-align: center;
}
</pre>
<p>Below the result of these statements.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3d1.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p>We add the two classes to make and place the triangles in <em>style.css</em>&#8230; and we also add the style for the content (class <em>info</em>).</p>
<pre>
&lt;div id="container"&gt;

&lt;div class="bubble"&gt;
&lt;div class="rectangle"&gt;&lt;h2&gt;3D CSS Ribbon&lt;/h2&gt;&lt;/div&gt;
&lt;div class="triangle-l"&gt;&lt;/div&gt; &lt;!-- Left triangle --&gt;
&lt;div class="triangle-r"&gt;&lt;/div&gt; &lt;!-- Right triangle --&gt;
&lt;div class="info"&gt;
&lt;h2&gt;I Have Used Only CSS, friends!&lt;/h2&gt;
&lt;p&gt;
For this tutorial I have used some new properties of the CSS3. You can realize a nice 3D effect using only CSS, it's really fantastic.&lt;br /&gt;It doesn't work with IE!
&lt;/p&gt;
&lt;p&gt;
&lt;a href="#"&gt;Go to the tutorial!&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
</pre>
<p>We add the two classes to make and place the triangles in <em>style.css</em>&#8230; and the style for the content (class <em>info</em>).</p>
<pre>
.triangle-l {
	border-color: transparent #7d90a3 transparent transparent;
	border-style:solid;
	border-width:15px;
	height:0px;
	width:0px;
	position: relative;
	left: -30px;
	top: 65px;
	z-index: -1; /* displayed under bubble */
}

.triangle-r {
	border-color: transparent transparent transparent #7d90a3;
	border-style:solid;
	border-width:15px;
	height:0px;
	width:0px;
	position: relative;
	left: 350px;
	top: 35px;
	z-index: -1; /* displayed under bubble */
}

.info {
	padding: 60px 25px 35px 25px;
}

.info h2 {
	font-size: 20px;
}

.info p {
	padding-top: 10px;
	font-size: 14px;
	line-height: 22px;
}

.info p a {
	color: #c4591e;
	text-decoration: none;
}

.info p a:hover {
	text-decoration: underline;
}
</pre>
<p>Here the result.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3d2.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p>We create a nice menu on the top. Below the markup.</p>
<pre>
&lt;div id="container"&gt;

&lt;div class="menu"&gt;
&lt;ul&gt;
&lt;li class="l1"&gt;&lt;a href="#"&gt;CSS3&lt;/a&gt;&lt;/li&gt;
&lt;li class="l2"&gt;&lt;a href="#"&gt;is really&lt;/a&gt;&lt;/li&gt;
&lt;li class="l3"&gt;&lt;a href="#"&gt;powerful&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span&gt;by PV.M Garage&lt;/span&gt;
&lt;/div&gt;

&lt;div class="bubble"&gt;
&lt;div class="rectangle"&gt;&lt;h2&gt;3D CSS Ribbon&lt;/h2&gt;&lt;/div&gt;
&lt;div class="triangle-l"&gt;&lt;/div&gt;
&lt;div class="triangle-r"&gt;&lt;/div&gt;
&lt;div class="info"&gt;
&lt;h2&gt;I Have Used Only CSS, friends!&lt;/h2&gt;
&lt;p&gt;
For this tutorial I have used some new properties of the CSS3. You can realize a nice 3D effect using only CSS, it's really fantastic.&lt;br /&gt;It doesn't work with IE!
&lt;/p&gt;
&lt;p&gt;
&lt;a href="#"&gt;Go to the tutorial!&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
</pre>
<p>The style for our top-menu.</p>
<pre>
.menu {
	position: relative;
	top:3px;
	left: 50px;
	z-index: 80; /* the stack order: displayed under bubble (90) */
}

.menu ul li {
	-webkit-transform: rotate(-45deg); /* rotate the list item */
	-moz-transform: rotate(-45deg); /* rotate the list item */
	width: 50px;
	overflow: hidden;
	margin: 10px 0px;
	padding: 5px 5px 5px 18px;
	float: left;
	background: #7f9db9;
	text-align: right;
}

.menu ul li a {
	color: #fff;
	text-decoration: none;
	display:block;
}

.menu ul li.l1 {
	background: rgba(131,178,51,0.65);
}

.menu ul li.l1:hover {
	background: rgb(131,178,51);
}

.menu ul li.l2 {
	background: rgba(196,89,30,0.65);
}

.menu ul li.l2:hover {
	background: rgb(196,89,30);
}

.menu ul li.l3 {
	background: rgba(65,117,160,0.65);
}

.menu ul li.l3:hover {
	background: rgb(65,117,160);
}

.menu span {
	margin: 15px 80px 0px 0px;
	float:right;
}
</pre>
<p>Here you can se the simple menu.<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3d3.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p>Our 3D layout is ready. It&#8217;s so sexy, I hope you find the final result attractive and inspiring. </p>
<h2>Conclusions</h2>
<p>I think this kind of solution is useful to improve the performance of the website holding a great 3D effect. There is great question: Internet Explorer and Opera have some problems with CSS3. But this is not an impediment because we are looking to the future. So, if you are browsing the web with IE, please consider to install <a href="http://www.mozilla-europe.org/en/firefox/">Mozilla Firefox</a> or <a href="http://www.google.com/chrome/">Google Chrome</a> or <a href="http://www.apple.com/safari/download/">Safari</a>. Some screenshots from different browsers (Windows 7 OS).<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3dexplorer.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2010/01/3dopera.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2010/01/3dchrome.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2010/01/3dsafari.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
<p><img src="http://www.pvmgarage.com/contenuti/2010/01/3dfirefox.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /> </p>
<p>Finally, it’s a good idea to validate the code.</p>
<h3>W3C Validation</h3>
<p>Response: “This document was successfully checked as XHTML 1.0 Strict!”<br />
<img src="http://www.pvmgarage.com/contenuti/2010/01/3dvalidation.jpg" alt="How To Create Depth And A Nice 3D Ribbon Only Using CSS3" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2010/01/how-to-create-depth-and-nice-3d-ribbons-only-using-css3/feed/</wfw:commentRss>
		<slash:comments>370</slash:comments>
		</item>
		<item>
		<title>Useful Suggestions To Secure And Speed Up Your WordPress Blog</title>
		<link>http://www.pvmgarage.com/2009/12/useful-suggestions-to-secure-and-speed-up-your-wordpress-blog/</link>
		<comments>http://www.pvmgarage.com/2009/12/useful-suggestions-to-secure-and-speed-up-your-wordpress-blog/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 17:00:52 +0000</pubDate>
		<dc:creator>ricardo</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/en/?p=1136</guid>
		<description><![CDATA[WordPress is the most used blogging system and, thanks to the great community that works to enhance its features, nowadays it is used as full content management system. WordPress rocks, dude!
For these reasons it is (maybe) one of the most hacked CMS. In some cases a website proudly powered by WP could be slow without a correct configuration and administration.
There are some tricks that allow us to boost our WordPress installation in a few minutes. Below there is a list ...]]></description>
			<content:encoded><![CDATA[<p>WordPress is <a href="http://wordpress.org/download/counter/">the most used blogging system</a> and, thanks to the great community that works to enhance its features, nowadays it is used as full content management system. WordPress rocks, dude!<br />
For these reasons it is (maybe) one of the most hacked CMS. In some cases a website proudly powered by WP could be slow without a correct configuration and administration.</p>
<p><strong>There are some tricks that allow us to boost our WordPress installation in a few minutes. Below there is a list of useful tips to secure and speed up your blog system</strong>. Take your time for reading, they are very simple and they could be helpful to save your time in the future.</p>
<h2>Make Back-Up</h2>
<p>A simple and basic rule that can save you in many cases. Remember to frequently back up your website root folder (with all files) and database, so you can restore your site anytime.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/12/wp_secure1.jpg" alt="Useful Suggestions To Secure And Speed Up Your WordPress Blog" /></p>
<p>You can use PhpMyAdmin to make a quick copy of your SQL DB. Enter in your database structure, go to <em>export</em>, select all tables in SQL format (don&#8217;t forget to check &#8220;Add DROP TABLE&#8221;, I also use a GZIP compression).</p>
<h2>Use the last version of WordPress</h2>
<p>It&#8217;s essential to update your WordPress to fix bugs and security issues. You can use Automatic Upgrade (<em>Tools -> Upgrade</em> in your admin area), or a  Three Step Manual Upgrade, to know more about how to stay updated you can read <a href="http://codex.wordpress.org/Upgrading_WordPress">Upgrading WordPress</a>.</p>
<h2>Use a Solid Password and Protect your WP-Admin Folder</h2>
<p>WordPress installation creates a default admin user with a random password. Are you still using the random default password? Change it and choose a new strong password, immediately!<br />
It is a good thing to change the default username for the admistrator. In <em>Users</em> section of the admin area you can manage your profile.</p>
<p>Protect the wp-admin Directory with a server-side password. Put a <em>.htaccess</em> file in the directory that you want to protect. Below the code of the <em>.htaccess</em>. </p>
<pre  class="brush: plain;">
AuthName "WP-Admin"
AuthType Basic
AuthUserFile /path/to/passwd  #(the path to .htpasswd)
Require valid-user
</pre>
<p>Use <a href="http://www.htaccesstools.com/htpasswd-generator/">htpasswd</a> to create a passwd file (<em>.htpasswd</em>) and put it in a non-web accessible directory (htpasswd -c /path/to/passwd username).</p>
<h2>Protect wp-config.php</h2>
<p>First of all you should set up secret keys in your <em>wp-config.php</em>. Why? Begining from the 2.6 version, WordPress includes a new set of security features for passwords and password hashing and cookie security and, if you want to increase the security of your site, you can use <a href="http://api.wordpress.org/secret-key/1.1/">this generator</a> to add secret keys.</p>
<pre class="brush: php;">
define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');
</pre>
<p>Wp-Config contains sensible data and for this reason you must protect this file in your <em>.htaccess</em>.</p>
<pre class="brush: plain;">
# protect wpconfig.php
&lt;files wp-config.php&gt;
Order deny,allow
deny from all
&lt;/files&gt;
</pre>
<h2>Block Search Engine Access to the WP- Folder</h2>
<p>The WP- folders don&#8217;t need to be indexed by search engines, so to block their access to these system folders you can write in your robots.txt file the following line.</p>
<pre class="brush: plain;">
Disallow: /wp-*
</pre>
<h2>Bad Behavior Plugin</h2>
<p><a href="http://wordpress.org/extend/plugins/bad-behavior/">Bad Behavior</a> complements other link spam solutions by acting as a gatekeeper, preventing spammers from ever delivering their junk, and in many cases, from ever reading your site in the first place. This keeps your site&#8217;s load down, makes your site logs cleaner, and can help prevent denial of service conditions caused by spammers.</p>
<p>Bad Behavior also transcends other link spam solutions by working in a completely different, unique way. Instead of merely looking at the content of potential spam, Bad Behavior analyzes the delivery method as well as the software the spammer is using. In this way, Bad Behavior can stop spam attacks even when nobody has ever seen the particular spam before.</p>
<h2>Login Lock-Down Plugin</h2>
<p><a href="http://www.bad-neighborhood.com/login-lockdown.html">Login LockDown</a> tabulates the IP address and timestamp of every failed WordPress login attempt, so, when a certain number of attempts are detected within a short period of time from the same IP range, the plugin disables all requests from that range. This can prevent brute force password attack.</p>
<h2>Secure WordPress</h2>
<p><a href="http://wordpress.org/extend/plugins/secure-wordpress/">Secure WordPress</a> is a little help to secure your WordPress installation. It removes Error information on login page; adds index.html to plugin directory, removes the wp-version, except in admin area.</p>
<h2>Optimize Images on your Server</h2>
<p>Images are important for the great impact on the design of a website, but if the pictures on our webpages aren&#8217;t optimized we could have some troubles with the load time and bandwith of the website.</p>
<p>So you should use a good compression for your image, depending on your software, to find the right balance between quality and dimension of the file.<br />
Rcently I&#8217;ve read a good article on <a href="http//www.webdesignerwall.com/">Web Designer Wall</a> about the image&#8217;s compression using two different software, <a href="http://www.webdesignerwall.com/general/fireworks-vs-photoshop-compression/">Fireworks vs Photoshop Compression</a>.</p>
<h2>Enable GZIP Compression</h2>
<p>Compression is a quick and effective way to save bandwidth and speed up your website. Apache allows the compression through <em>mod_deflate</em> and adding the following code in you <em>.htaccess</em> you will enable the GZIP compression of your webpages.</p>
<pre class="brush: plain;">
# BEGIN GZIP
&lt;ifmodule mod_deflate.c&gt;
AddOutputFilterByType DEFLATE text/xml text/css application/x-javascript application/javascript
&lt;/ifmodule&gt;
# END GZIP
</pre>
<p>Test your compression using <a href="http://www.gidnetwork.com/tools/gzip-test.php">GZIP-Test</a>.</p>
<h2>Minify CSS and Compress Javascript files</h2>
<p>To minify your CSS (and speed up your website), you can use one of the available tools, such as <a href="http://www.styleneat.com/">Styleneat</a>, or php library, such as <a href="http://code.google.com/p/minify/">Minify</a>.</p>
<p>Something else to do is to put all of your JavaScript into a single file and load it in the bottom of the page (<em>footer.php</em>).</p>
<p>Yo can use <a href="http://getfirebug.com/">Firebug</a> with <a href="http://code.google.com/intl/it-IT/speed/page-speed/download.html">Page Speed</a> on Mozilla Firefox to test and optimize your webpages.</p>
<h2>Reduce the Number of Links to External Websites</h2>
<p>External websites and scripts can take a lot of time to load depending on the server connection. You should limit widgets and connections to other sites, in fact, reducing the number of hostnames from which resources are served, we can minimize the number of DNS resolutions and the RTT delays.</p>
<p>Caution! Reducing the number of unique hostnames has the potential to reduce the parallel downloads in the page and this may increase response times. You should find the right balance.</p>
<p><a href="http://code.google.com/intl/it-IT/speed/page-speed/download.html">Page Speed</a> can help you in this &#8220;mission&#8221;.</p>
<h2>Optimize and Repair Database</h2>
<p>Periodically you should optimize your database. go to the Database Structure for your WordPress installation, check all tables, select the Optimise Tables option and repair.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/12/wp_secure2.jpg" alt="Useful Suggestions To Secure And Speed Up Your WordPress Blog" /></p>
<p>There is a plug-in that allows the database optimization from the admin area of WordPress, <a href="http://wordpress.org/extend/plugins/wp-optimize/">WP-Optimize</a>. </p>
<h2>Turn Off Post Revisions</h2>
<p>To turn off Post Revisions feature (if you don&#8217;t need it), add this following code to <em>wp-config.php</em>:</p>
<pre class="brush: plain;">
define('WP_POST_REVISIONS', false);
</pre>
<h2>Remove Unused Plugins</h2>
<p>Browse your list of plugins you’re using and try to optimize your WordPress deleting unused plugins. If you have more than 15 plugins active on your blog, ask yourself if you really need them and delete the less useful ones.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/12/wp_secure3.jpg" alt="Useful Suggestions To Secure And Speed Up Your WordPress Blog" /></p>
<p>Remember this words, many things don&#8217;t need plugins but ten minutes of reflection, php skills, fantasy to integrate directly into your theme a great feature!</p>
<h2>WP Super Cache Plugin</h2>
<p><a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache Plugin</a> generates static html files from your dynamic WordPress blog. After a html file is generated your webserver will serve that file instead of processing the comparatively heavier and more expensive WordPress PHP scripts. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2009/12/useful-suggestions-to-secure-and-speed-up-your-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
		<item>
		<title>Become A WordPress Theme Developer Who Rocks In Four Steps (and 50+ readings)</title>
		<link>http://www.pvmgarage.com/2009/10/become-a-wordpress-theme-developer-who-rocks-in-four-steps-and-50-readings/</link>
		<comments>http://www.pvmgarage.com/2009/10/become-a-wordpress-theme-developer-who-rocks-in-four-steps-and-50-readings/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 13:07:05 +0000</pubDate>
		<dc:creator>Piervincenzo Madeo</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Theme]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/en/?p=995</guid>
		<description><![CDATA[It has been proved. You can become a &#8220;RockStar&#8221; developing WordPress themes. Think at the audience, think at the creative process&#8230; in my opinion a great WP theme is like a great rock song.
In my experience I&#8217;ve developed some themes for this great blogging platform and  when I start a new WordPress-based project my mind automatically thinks at the development of the website in four steps (once the concept is set). My brain sends me the following orders: first, ...]]></description>
			<content:encoded><![CDATA[<p>It has been proved. You can become a &#8220;RockStar&#8221; developing WordPress themes. Think at the audience, think at the creative process&#8230; <strong>in my opinion a great WP theme is like a great rock song</strong>.<br />
In my experience I&#8217;ve developed some themes for this great blogging platform and  when I start a new WordPress-based project my mind automatically thinks at the development of the website in four steps (once the concept is set). My brain sends me the following orders: first, design the general web-layout in Photoshop; second, convert the mockup to a (x)html/css webpage; third, develope the theme for WP; fourth, hack your template. My brain often is a strange company.</p>
<p>The steps are clear and in this post you can find some useful tutorials and excellent readings to really <strong>become a star as WordPress Themes Designer</strong>.<br />
I tested many of the following tutorials, and they help me to improve my skills. My brain thanks.</p>
<h2>First Step: Design Your Layout in Photoshop</h2>
<p>Below there are the top tutorials for learning how to design a perfect web-layout. They show how to create the essential elements for a WordPress-based website using amazing techniques in PhotoShop.</p>
<h3>How to Make an Impressive Blog Layout in Photoshop</h3>
<p><a href="http://sixrevisions.com/tutorials/photoshop-tutorials/how-to-make-an-impressive-blog-layout-in-photoshop/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img01.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Create an Elegant Photoshop (PSD) Template for Wordpress</h3>
<p><a href="http://psdtemplate.com/psd-tutorials/create-an-elegant-photoshop-psd-template-for-wordpress.html"><img src="http://www.pvmgarage.com/contenuti/2009/10/img02.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Create a wordpress interface in Photoshop</h3>
<p><a href="http://www.grafpedia.com/tutorials/create-a-wordpress-interface-in-photoshop"><img src="http://www.pvmgarage.com/contenuti/2009/10/img03.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>How to Create a Unique Wordpress Theme</h3>
<p><a href="http://www.grafpedia.com/tutorials/create-unique-wordpress-theme"><img src="http://www.pvmgarage.com/contenuti/2009/10/img04.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Creating a tech blog layout in Adobe Photoshop</h3>
<p><a href="http://psdvibe.com/2009/06/22/creating-a-tech-blog-layout-in-adobe-photoshop/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img05.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Wordpress Layout #5</h3>
<p><a href="http://hv-designs.co.uk/2009/07/02/wordpress-layout-5/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img06.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Create a Vibrant Modern Blog Design in Photoshop</h3>
<p><a href="http://www.blog.spoongraphics.co.uk/tutorials/create-a-vibrant-modern-blog-design-in-adobe-photoshop"><img src="http://www.pvmgarage.com/contenuti/2009/10/img07.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Create a Magic Night Themed Web Design from Scratch in Photoshop</h3>
<p><a href="http://psd.tutsplus.com/tutorials/interface-tutorials/create-a-magic-night-themed-web-design-from-scratch-in-photoshop/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img08.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Creating A Professional Magazine Web Layout</h3>
<p><a href="http://kailoon.com/creating-a-professional-magazine-web-layout/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img09.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>How to Create a Sleek and Textured Web Layout in Photoshop</h3>
<p><a href="http://sixrevisions.com/tutorials/photoshop-tutorials/how-to-create-a-sleek-and-textured-web-layout-in-photoshop/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img11.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>How to Create a &#8220;Worn Paper&#8221; Web Layout Using Photoshop</h3>
<p><a href="http://sixrevisions.com/tutorials/photoshop-tutorials/how-to-create-a-worn-paper-web-layout-using-photoshop/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img10.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>#71: Building a Website (1 of 3): Photoshop Mockup</h3>
<p><a href="http://css-tricks.com/video-screencasts/71-building-a-website-photoshop-mockup/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img12.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h2>Second Step: PSD-to-HTML Conversion</h2>
<p>I understand, maybe you are bored switching from Photoshop to a blank page that needs your skills to become a perfect (x)html/css web-layout. Don&#8217;t worry, below you can find more information to speed and to improve your techniques in psd-to-html conversion.</p>
<h3>How to Convert a Photoshop Mockup to XHTML/CSS</h3>
<p><a href="http://line25.com/tutorials/how-to-convert-a-photoshop-mockup-to-xhtml-css"><img src="http://www.pvmgarage.com/contenuti/2009/10/img13.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Styling Post Headings That Stick Out</h3>
<p><a href="http://www.sohtanaka.com/web-design/styling-post-headings-that-stick-out/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img14.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Animated Navigation with CSS &#038; jQuery</h3>
<p><a href="http://www.sohtanaka.com/web-design/animate-navigation-with-css-jquery/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img15.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Tips for Developing Semi-Liquid Layouts</h3>
<p><a href="http://www.sohtanaka.com/web-design/semi-liquid-layouts-tutorial-tips/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img16.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>#72: Building a Website (2 of 3): HTML/CSS Conversion</h3>
<p><a href="http://css-tricks.com/video-screencasts/72-building-a-website-2-of-3-htmlcss-conversion/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img17.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>SportNewsPvm Coded, How To Plan A Web Layout For A WordPress Theme</h3>
<p><a href="http://www.pvmgarage.com/en/2009/07/sportnewspvm-coded-how-to-plan-a-web-layout-for-a-wordpress-theme/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img18.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>MakingSEO coded, Free CSS Template with PSD-to-HTML tips</h3>
<p><a href="http://www.pvmgarage.com/en/2009/09/makingseo-coded-free-css-template-with-psd-to-html-tips/#content"><img src="http://www.pvmgarage.com/contenuti/2009/10/img19.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>How to Code a Grunge Web Design from Scratch</h3>
<p><a href="http://sixrevisions.com/tutorials/web-development-tutorials/how-to-code-a-grunge-web-design-from-scratch/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img20.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h2>Third Step: WordPress Rocks!</h2>
<p>You are ready &#8220;to get in the zone&#8221;. Read the following posts to discover the techniques and tricks to build a great WordPress theme.</p>
<h3>#73: Building a Website (3 of 3): WordPress Theme</h3>
<p><a href="http://css-tricks.com/video-screencasts/73-wordpress-theme/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img21.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>How To Create a WordPress Theme: The Ultimate WordPress Theme Tutorial</h3>
<p><a href="http://themeshaper.com/wordpress-themes-templates-tutorial/#toc"><img src="http://www.pvmgarage.com/contenuti/2009/10/img22.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>How to Create a Wordpress Theme from Scratch</h3>
<p><a href="http://net.tutsplus.com/site-builds/how-to-create-a-wordpress-theme-from-scratch/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img23.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>How to write your own wordpress theme</h3>
<p><a href="http://www.eruanna.net/how-to-write-your-own-wordpress-theme/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img24.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Build a Newspaper Theme With WP_Query and the 960 CSS Framework</h3>
<p><a href="http://net.tutsplus.com/working-with-cmss/build-a-newspaper-theme-with-wp_query-and-the-960-css-framework/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img25.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Styling Your Wordpress Comments</h3>
<p><a href="http://www.darrenhoyt.com/2007/08/18/styling-your-wordpress-comments/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img26.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>So you want to create WordPress themes huh?</h3>
<p><a href="http://www.wpdesigner.com/2007/02/19/so-you-want-to-create-wordpress-themes-huh/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img27.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h2>Four Step: Hacks to Improve your Theme</h2>
<p>Customize your website using the tips collected below. You&#8217;ll find some fantastic suggestions on how to boost your website.</p>
<h3>The Ultimate Wordpress 2.8 Optimization Guide</h3>
<p><a href="http://storecrowd.com/blog/wordpress-optimisation/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img28.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Display Thumbnails For Related Posts in Wordpress</h3>
<p><a href="http://buildinternet.com/2009/07/display-thumbnails-for-related-posts-in-wordpress/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img29.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Displaying Author Meta Information in Wordpress 2.8</h3>
<p><a href="http://buildinternet.com/2009/06/displaying-author-meta-information-in-wordpress-2-8/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img30.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>How to : Make a control panel for your wordpress theme</h3>
<p><a href="http://www.catswhocode.com/blog/how-to-make-a-control-panel-for-your-wordpress-theme"><img src="http://www.pvmgarage.com/contenuti/2009/10/img31.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Display Subcategories on Category Pages in WordPress</h3>
<p><a href="http://www.wpbeginner.com/wp-tutorials/display-subcategories-on-category-pages-in-wordpress/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img32.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>How To Rearrange Comments in WordPress – Display the Most Recent One on Top</h3>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-rearrange-comments-in-wordpress-display-the-most-recent-one-on-top/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img33.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>WordPress loop: Get posts published between two particular dates</h3>
<p><a href="http://www.wprecipes.com/wordpress-loop-get-posts-published-between-two-particular-dates"><img src="http://www.pvmgarage.com/contenuti/2009/10/img34.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Wordpress tutorial: Blog posts in different columns</h3>
<p><a href="http://www.cre8d-design.com/2006/03/wordpress-tutorial-blog-posts-in-different-columns/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img35.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Multiple WordPress Loops Explained</h3>
<p><a href="http://www.catswhocode.com/blog/multiple-wordpress-loops"><img src="http://www.pvmgarage.com/contenuti/2009/10/img36.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h2>Extra: Resources and Utilities</h2>
<p>Build your own set of tools to speed up the the development of your website proudly powered by WordPress.</p>
<h3>Wordpress &#8211; Lorem Ipsum Test Post Pack</h3>
<p><a href="http://thinkdesignblog.com/wordpress-lorem-ipsum-test-post-pack.htm"><img src="http://www.pvmgarage.com/contenuti/2009/10/img37.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>WordPress PSD Framework</h3>
<p><a href="http://www.area381.com/2007/07/10/wordpress-psd-framework/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img38.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Blank Wordpress Themes</h3>
<p><a href="http://www.refueled.net/blank-wordpress-themes/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img39.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Thematic, A WordPress Theme Framework</h3>
<p><a href="http://themeshaper.com/thematic/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img40.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Free HTML 5 WordPress Theme</h3>
<p><a href="http://digwp.com/2009/07/free-html-5-wordpress-theme/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img41.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>ThemeHybrid is about users, quality and WordPress</h3>
<p><a href="http://themehybrid.com/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img42.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>WP Framework, A blank WordPress Theme Framework</h3>
<p><a href="http://wpframework.com/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img43.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Whiteboard &#8211; A Free Wordpress Theme Framework</h3>
<p><a href="http://plainbeta.com/2008/05/20/whiteboard-a-free-wordpress-theme-framework/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img44.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h2>Extra: Other Useful Articles and Roundups</h2>
<p>Below you&#8217;ll see a collection of other great articles and roundups to find other awesome resources.</p>
<h3>Wordpress Posts Explained…</h3>
<p><a href="http://hv-designs.co.uk/2009/09/11/wordpress-posts-explained/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img46.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>WordPress Theme / CSS Techniques</h3>
<p><a href="http://www.wpdesigner.com/2007/04/02/wordpress-theme-css-techniques/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img47.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Power Tips For WordPress Template Developers</h3>
<p><a href="http://www.smashingmagazine.com/2009/07/02/power-tips-for-wordpress-template-developers/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img48.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>22 Mixed Quality Wordpress Hacks</h3>
<p><a href="http://www.instantshift.com/2009/06/15/22-mixed-quality-wordpress-hacks/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img49.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>135+ Ultimate Round-Up of Wordpress Tutorials</h3>
<p><a href="http://www.instantshift.com/2009/04/05/135-ultimate-round-up-of-wordpress-tutorials/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img50.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a> </p>
<h3>300+ Resources to Help You Become a WordPress Expert</h3>
<p><a href="http://www.webdesignerdepot.com/2009/09/300-resources-to-help-you-become-a-wordpress-expert/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img51.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Top 50 Wordpress Tutorials</h3>
<p><a href="http://net.tutsplus.com/articles/web-roundups/top-50-wordpress-tutorials/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img52.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h3>Personalise your WordPress Weblog</h3>
<p><a href="http://www.tamba2.org.uk/wordpress/graphicalcss/"><img src="http://www.pvmgarage.com/contenuti/2009/10/img53.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
<h2>Best of the Best? WordPress.org!</h2>
<p>All-In-One! Browse Wordpress.org to discover the secrets behind the state-of-the-art publishing platform.</p>
<p><a href="http://wordpress.org"><img src="http://www.pvmgarage.com/contenuti/2009/10/img45.jpg" alt="Become A WordPress Theme Developer Who Rocks In Four Steps" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2009/10/become-a-wordpress-theme-developer-who-rocks-in-four-steps-and-50-readings/feed/</wfw:commentRss>
		<slash:comments>94</slash:comments>
		</item>
		<item>
		<title>How to Realize a Daily Activities Widget in WordPress Sidebar using SimplePie</title>
		<link>http://www.pvmgarage.com/2009/06/how-to-realize-a-daily-activities-widget-in-wordpress-sidebar-using-simplepie/</link>
		<comments>http://www.pvmgarage.com/2009/06/how-to-realize-a-daily-activities-widget-in-wordpress-sidebar-using-simplepie/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 00:09:17 +0000</pubDate>
		<dc:creator>Piervincenzo Madeo</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/en/?p=126</guid>
		<description><![CDATA[It&#8217;s the moment of Social Networking and Social Bookmarking. Twitter, Delicious, Digg, Facebok&#8230; yes, maybe I&#8217;m doped! Yes, I believe in the power of the Social Connection. So I decided to show my social on-line life on PV.M Garage. How?
See in the bottom of my sidebar and you&#8217;ll understand. I&#8217;m convinced that sharing my updates on social web-site the reader could know more about me and my thinking and for this he could be encouraged for returning on my blog.


In ...]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s the moment of <strong>Social Networking and Social Bookmarking</strong>. Twitter, Delicious, Digg, Facebok&#8230; yes, maybe I&#8217;m doped! Yes, I believe in the power of the Social Connection. So I decided to show my social on-line life on PV.M Garage. How?</p>
<p>See in the bottom of my sidebar and you&#8217;ll understand. I&#8217;m convinced that sharing my updates on social web-site the reader could know more about me and my thinking and for this he could be encouraged for returning on my blog.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/06/widg1.jpg" alt="preview" /><br />
<span id="more-126"></span><br />
In this post I explain how I&#8217;ve realized the Daily Activities Widget with the stream of my updates on Twitter, Facebook, Digg and Delicious. The following information are valid only using <strong>WordPress</strong>.</p>
<p>To reach our purpose we use <a href="http://simplepie.org/">Simple Pie</a>.<br />
<strong>What is Simple Pie?</strong> It is a code library, written in PHP, intended to make it easy for people to manage <strong>RSS and Atom feeds</strong>. Imagine? It&#8217;s so!</p>
<p>I suggest to you a <strong>backup</strong> of the theme folder in WordPress because we&#8217;ll modify sidebar.php, style.css and we&#8217;ll add the folder for Simple Pie Cache and the Library itself. </p>
<h2>How to use Simple Pie</h2>
<p>First <a href="http://simplepie.org/downloads/">download the Simple Pie Library</a>, after unzip the package and copy <em>simplepie.inc</em> in theme folder in your WordPress installation (presumably <em>/wp-content/themes/yourtheme</em>). Create a new folder called <em>cache</em>, this useful for caching system of our PHP Library that optimize the loading process of our web-page (learn more here <a href="http://simplepie.org/wiki/faq/how_does_simplepie_s_caching_http_conditional_get_system_work">&#8220;How does SimplePie&#8217;s caching system work?&#8221;</a>).<br />
<img src="http://www.pvmgarage.com/contenuti/2009/06/widg2.jpg" alt="ftp" /></p>
<p>Now add the following code in the top of <em>sidebar.php</em> to &#8220;activate&#8221; the <strong>RSS reader</strong>.</p>
<pre class="brush: php;">
&lt;?php
    //get the simplepie library
    require_once('simplepie.inc');
    //grab the feeds
    $feed = new SimplePie();
    //our list of RSS
    $feed-&gt;set_feed_url(array(
    'http://feeds2.feedburner.com/pvmgarage',
		'http://twitter.com/statuses/user_timeline/32445507.rss',
		'http://feeds.delicious.com/v2/rss/piervix',
		'http://digg.com/users/piervix/history.rss',
		'http://www.facebook.com/feeds/share_posts.php?id=1658021339&#038;viewer=1658021339&#038;key=41c698e7f8&#038;format=rss20',
    ));
    //enable caching
    $feed-&gt;enable_cache(true);
    //complete path for caching system
    $feed-&gt;set_cache_location('/web/htdocs/www.pvmgarage.com/home/en/pvmenglishcontent4984/themes/pvmgarage/cache');
    //set the amount of seconds you want to cache the feed
    $feed-&gt;set_cache_duration(1500);
    //init the process
    $feed-&gt;init();
    //let simplepie handle the content type (atom, RSS...)
    $feed-&gt;handle_content_type();
?&gt;
</pre>
<h3>Watching code</h3>
<p>See the previous code and observe the array of RSS url. You can find them in your settings.<br />
Activate with <em>true</em> boolean the cache and put the complete path of your cache folder in <em>$feed->set_cache_location</em>.<br />
Remember that the folder for caching must be writable (chmod 777), read more on <a href="http://simplepie.org/wiki/faq/file_permissions">Change the file permissions to be server-writable?</a></p>
<h2>Insert Widget on Sidebar</h2>
<p>Now insert the following code to add a widget in the <em>sidebar.php</em> of WordPress.</p>
<pre class="brush: php;">
&lt;div class="sidecontdaily"&gt;
&lt;!--&lt;h2&gt;My daily Activities&lt;/h2&gt;--&gt;
&lt;ul class="daily"&gt;
  &lt;?php foreach ($feed-&gt;get_items(0, 5) as $item): ?&gt;&lt;!--show 5 entries--&gt;
  &lt;li&gt;
    &lt;div class="info"&gt;
     &lt;p&gt;&lt;span class="date"&gt;&lt;?php echo $item-&gt;get_date('j M Y'); ?&gt; | &lt;?php echo $item-&gt;get_date('g:i a'); ?&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--date and time--&gt;
    &lt;/div&gt;
    &lt;img src="&lt;?php $feed = $item-&gt;get_feed(); echo $feed-&gt;get_favicon(); ?&gt;" class="icon" alt="" /&gt;&lt;!--icon of social web-site--&gt;
    &lt;h5 class="dailycont"&gt;&lt;a href="&lt;?php echo $item-&gt;get_permalink(); ?&gt;"&gt;&lt;?php echo $item-&gt;get_title(); ?&gt;&lt;/a&gt;&lt;/h5&gt;&lt;!--title--&gt;
    &lt;p&gt;&lt;span class="linkfeed"&gt;&lt;a href="&lt;?php $feed = $item-&gt;get_feed(); echo $feed-&gt;get_permalink(); ?&gt;"&gt;&lt;?php $feed = $item-&gt;get_feed(); echo $feed-&gt;get_title(); ?&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;!--social web site--&gt;
    &lt;/li&gt;
  &lt;?php endforeach; ?&gt;
&lt;/ul&gt;
&lt;/div&gt;
</pre>
<h3>Watching code</h3>
<p>In this example we’re simply going to display five recent headlines, for this reason we insert <em>&lt;?php foreach ($feed-&gt;get_items(0, 5) as $item): ?&gt;</em>. Below you can see methods.</p>
<ul>
<li><em>&lt;?php echo $item-&gt;get_date(&#8216;j M Y&#8217;); ?&gt;</em> returns the date;</li>
<li><em>&lt;?php echo $item-&gt;get_date(&#8216;g:i a&#8217;); ?&gt;</em> returns hour;</li>
<li><em>&lt;?php $feed = $item-&gt;get_feed(); echo $feed-&gt;get_favicon(); ?&gt;</em> returns social web site favicon;</li>
<li><em>&lt;?php echo $item-&gt;get_permalink(); ?&gt;</em> returns entry url;</li>
<li><em>&lt;?php echo $item-&gt;get_title(); ?&gt;</em> returns entry title;</li>
<li><em>&lt;?php $feed = $item-&gt;get_feed(); echo $feed-&gt;get_permalink(); ?&gt;</em> returns your profile url;</li>
<li><em>&lt;?php $feed = $item-&gt;get_feed(); echo $feed-&gt;get_title(); ?&gt;</em> returns your profile name;</li>
</ul>
<h2>Style it!</h2>
<p>Now modify the <em>style.css</em>. In my theme I&#8217;ve added the following code:</p>
<pre class="brush: php;">
/*Simple Pie Style*/
.sidecontdaily {
margin: 0 0 15px 40px;
width: 278px;
background: url(immagini/dailyact1.png) no-repeat top;
}

ul.daily {
list-style: none;
padding: 90px 10px 50px 25px;
background: url(immagini/dailyact2.png) no-repeat bottom;
}

ul.daily li {
padding-bottom: 35px;
}

h5.dailycont {
font-size: 12px;
}

h5.dailycont a {
color: #69695f;
}

h5.dailycont a:hover {
color: #d54e21;
}

.info {
padding: 10px 0;
}

span.date {
background-color: #69695f;
color: #eee;
padding: 1px 3px;
font-size: 10px;
font-weight: bold;
}

img.icon {
float: left;
padding: 3px;
}

span.linkfeed {
background-color: #69695f;
float: right;
padding: 1px 3px;
margin-top: 3px;
}

span.linkfeed a {
color: #eee;
font-size: 10px;
font-weight: bold;
}
</pre>
<h2>Conclusion and Source Files</h2>
<p>With this hack we add a little box where we show our daily on-line activities, you can learn more about the use of Simple Pie in these articles: <a href="http://www.corvidworks.com/articles/easy-feed-reading-with-simplepie">Easy feed reading with SimplePie</a>; <a href="http://line25.com/tutorials/how-to-create-a-lifestream-of-your-online-activities">How to Create a Lifestream of Your Online Activities</a>; <a href="http://css-tricks.com/video-screencasts/55-adding-rss-content-with-simplepie/">Adding RSS Content with SimplePie</a>.</p>
<p><a href="http://www.pvmgarage.com/downloads/Daily_Activities_Widget_PVMGARAGE.zip"><img style="border:none; background: transparent; padding:0px;" src="http://www.pvmgarage.com/en/pvmenglishcontent4984/themes/pvmgarage_fresh/images/downloadbut.jpg" alt="Download Source" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2009/06/how-to-realize-a-daily-activities-widget-in-wordpress-sidebar-using-simplepie/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>How to Show Recent Posts with NewsTicker Effect in WordPress Sidebar</title>
		<link>http://www.pvmgarage.com/2009/06/how-to-show-recent-posts-with-newsticker-effect-in-wordpress-sidebar/</link>
		<comments>http://www.pvmgarage.com/2009/06/how-to-show-recent-posts-with-newsticker-effect-in-wordpress-sidebar/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 18:24:30 +0000</pubDate>
		<dc:creator>marbio</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.pvmgarage.com/en/?p=100</guid>
		<description><![CDATA[With this little tutorial I want to illustrate the way in order to show recent articles with newsticker effect on the sidebar of your wordpress blog. The term &#8220;newsticker&#8221; refers to a small section of the page in which we can read the last news  (the last ones post in this case) with the typical sliding effect of the on-line magazine.
The execution of this script demands to edit some files of your template, therefore it is better idea a ...]]></description>
			<content:encoded><![CDATA[<p>With this little tutorial I want to illustrate <strong>the way in order to show recent articles with newsticker effect on the sidebar of your wordpress blog</strong>. The term &#8220;newsticker&#8221; refers to a small section of the page in which we can read the last news  (the last ones post in this case) with the typical sliding effect of the on-line magazine.<br />
The execution of this script demands to edit some files of your template, therefore it is better idea a backup copy of the theme folder.</p>
<h2>Recent Posts with NewsTicker Effect</h2>
<h3>Step 1 &#8211; Creation of the module style</h3>
<p>The following portion of code contains the style CSS of the recent-post-newsticker module. We can insert the following code directly in the main style sheet of the template (<em>style.css</em>) or create a new file .css (<em>newsticker.css</em>).</p>
<pre class="brush: css;">
#listticker{/*general settings*/
text-align:left;
height:220px;
width:270px;
overflow:hidden;
padding:6px 6px 6px 6px;
}
#listticker ul{/*list general settings*/
border:0;
margin-bottom:0;
padding:0;
list-style:none;
background:#f4f4f4;
}
#listticker li{/*single list element settings*/
height:40px;
padding:5px;
list-style:none;
margin-top:5px;
border:dashed 1px #dddddd;
background:#ffffff;
}
#listticker a{/*link settings*/
display:block;
color:#857d59;
margin-bottom:0px;
font-weight:bold;
float:left;
font-size:11px;
}
</pre>
<p>This code is customizable to follow the design of your blog. With the example configuration we will obtain the following one rendering.<br />
<img src="http://www.pvmgarage.com/contenuti/2009/06/newsticker.jpg" alt="Articoli recenti con effetto newsticker" /><br />
Now we create a folder <strong>post_newsticker</strong> where insert the eventual style sheet file if it has been chosen this road. Inside the folder <em>post_newsticker</em> we insert also the file <em>jquery.js</em>, it referers to <strong>JQuery</strong> base library, the Javascript framework used to recreate the sliding effect.<br />
Now we are ready to transfer on the server and just inside the directory of template graphical the folder containing post_newsticker files.</p>
<h3>Step 2 &#8211; Modification of the header.php file</h3>
<p>With this modification we recall the files previously loaded. The following portions of code will be inserted inside of the tag <strong>head</strong>. If you choose to use a dedicated css file for the style insert this:</p>
<pre class="brush: html;">
&lt;link rel="stylesheet" href="&lt;?php bloginfo('template_directory'); &gt;/post_newsticker/newsticker.css" type="text/css" /&gt;
</pre>
<p>Now insert the jQuery library reference.</p>
<pre class="brush: html;">
&lt;script src="&lt;?php bloginfo('template_directory'); >/post_newsticker/jquery.js" type="text/javascript"&gt;
&lt;/script&gt;
</pre>
<p>Therefore insert the javascript code in order to realize the sliding effect on the articles list.</p>
<pre class="brush: javascript;">
&lt;script type="text/javascript"&gt;
$(document).ready(function(){

	var first = 0;
	var speed = 500;
	var pause = 3000;

		function removeFirst(){
			first = $('ul#listticker li:first').html();
			$('ul#listticker li:first')
			.animate({opacity: 0}, speed)
			.fadeOut('slow', function() {$(this).remove();});
			addLast(first);
		}

		function addLast(first){
			last = '
	&lt;li style="display:none" mce_style="display:none"&gt;'+first+'&lt;/li&gt;
';
			$('ul#listticker').append(last)
			$('ul#listticker li:last')
			.animate({opacity: 1}, speed)
			.fadeIn('slow')
		}

	interval = setInterval(removeFirst, pause);
});
&lt;/script&gt;
</pre>
<p>With the speed and pause variables we can modify respective element refreshing velocity and the pause between the various refreshments. To this point we must connect the <strong>n last posts</strong> of the blog to the list elements.</p>
<h3>Step 3 &#8211; Modification of the sidebar.php file</h3>
<p>In order to obtain the list of n last posts we can use the native functions in Wordpress that refer to posts management.</p>
<pre class="brush: html;">
&lt;h2&gt; Articoli recenti&lt;/h2&gt;
&lt;ul id="listticker"&gt;
 &lt;?php
 $lastposts = get_posts('numberposts=10');
 foreach($lastposts as $post) :
    setup_postdata($post);
 ?&gt;
 &lt;li&gt;
 &lt;a href="&lt;?php the_permalink(); ?&gt;" id="post-&lt;?php the_ID(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;?php endforeach; ?&gt;
</pre>
<p>The code should follow the style of the page structure. The <em>ul</em> element have <em><strong>id=&#8221;listticker&#8221;</strong></em>.<br />
We define the n number (that the newsticker list contains) of the posts with <em>&#8220;numberpost&#8221;</em> variable.</p>
<h2>End</h2>
<p>To this point the recent-post-newsticker has been correctly installed.</p>
<p>A great part of the material for this module has been recovered on <a href="http://woork.blogspot.com/" target="_blank">Woork</a> (Antonio Lupetti&#8217;s tech blog) in the following article &#8221; <a href="http://woork.blogspot.com/2009/05/how-to-implement-news-ticker-with.html" target="_blank">How to implement a news ticker with jQuery and ten lines of code</a> &#8220;.</p>
<p>If you have any suggestions or ideas to improve the module write a comment to the post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pvmgarage.com/2009/06/how-to-show-recent-posts-with-newsticker-effect-in-wordpress-sidebar/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
	</channel>
</rss>

