<?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>Luca Biagini &#124; Marketing Specialist, Web Developer</title>
	<atom:link href="http://www.lucabiagini.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lucabiagini.com</link>
	<description>My blog and profile</description>
	<lastBuildDate>Fri, 25 Sep 2009 18:03:35 +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>Playing with CSS3: background opacity</title>
		<link>http://www.lucabiagini.com/2009/07/playing-with-css3-background-opacity/</link>
		<comments>http://www.lucabiagini.com/2009/07/playing-with-css3-background-opacity/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 10:36:21 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.lucabiagini.com/?p=84</guid>
		<description><![CDATA[I am of course interested in css3 and html5, but with about 30% of italian users that still use the ******* IE6, I don&#8217;t know how long will I have to wait to really use these techniques.
BTW, css3 is so amazing that I hope it could contribute in killing IE6 (although Microsoft seems to be [...]]]></description>
			<content:encoded><![CDATA[<p>I am of course interested in <strong>css3 and html5</strong>, but with about 30% of italian users that still use the ******* IE6, I don&#8217;t know how long will I have to wait to really use these techniques.</p>
<p>BTW, css3 is so amazing that I hope <strong>it could contribute in killing IE6</strong> (although Microsoft seems to be always soooo stupid, see <a href="http://fixoutlook.org/">Fix Outlook</a> and their answer) that I&#8217;m not sure that the pain with IE will stop with the death of the terrible version 6.</p>
<p>One of <strong>my favourite features in css3 is opacity</strong>. I love opacity solutions on every media and it&#8217;s a pain that there is no way to use it safely on the web, for now.</p>
<p>Altough I try to validate the css on every work of mine, sometimes I&#8217;ve used the moz-opacity and the filter: alpha(opacity) trick to have opacity on IE and Firefox. The problem is that <strong>not only the div, but also its content inherits CSS opacity</strong>, so the text is harder to read, images are ugly to see, the border or some other elements are not of the expected color, and so on.</p>
<p>The <strong>PNG solution is a pretty good alternative</strong>, but it fails on IE6. And of course it&#8217;is boring, as you have to create your .png on Photoshop, then it is not transparent enough, then you have to do a new png, ecc.</p>
<p>CSS3 offer a <strong>great and quick solution with rgba</strong> (red/green/blue/alpha). It&#8217;s enough to set</p>
<pre lang="php">background-color: rgba(255,255,255,.5);</pre>
<p>to have a white background with 50% opacity.</p>
<p><strong>There is, there is</strong></p>
<ul>
<li><a href="http://www.lucabiagini.com/wp-content/uploads/2009/07/css3-test-1/">Here is a working example</a> (that presents some other css3 killer feature, including the most wanted <strong>pure css rounded corners</strong>) to see how quick and affordable is this new solution. Hopefully can we use it asap on real websites.</li>
<li>And yes, <a href="http://www.lucabiagini.com/wp-content/uploads/2009/07/css3-test-1/css-test-1.zip">you can download it</a> and test it on your computer.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.lucabiagini.com/2009/07/playing-with-css3-background-opacity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress plugin: the excerpt re-reloaded</title>
		<link>http://www.lucabiagini.com/2008/11/wordpress-plugin-the-excerpt-re-reloaded/</link>
		<comments>http://www.lucabiagini.com/2008/11/wordpress-plugin-the-excerpt-re-reloaded/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 10:26:25 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Php & MySql]]></category>
		<category><![CDATA[Seo & Sem]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[reloaded]]></category>

		<guid isPermaLink="false">http://www.lucabiagini.com/?p=25</guid>
		<description><![CDATA[UPDATED!
UPDATED AGAIN!
The fantastic plugin The Excerpt Reloaded by Kaf Oseo, my trusted companion in dozens of  Wordpress installation, doesn&#8217;t work anymore on WP 2.6, so I have written an alternative version to finish the site I&#8217;m working on.
It&#8217;s a very small thing, not as complete as The excerpt reloaded, but, at least, it works, and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATED!</strong><br />
<strong>UPDATED AGAIN!</strong></p>
<p>The fantastic plugin <a href="http://guff.szub.net/2005/02/26/the_excerpt-reloaded/">The Excerpt Reloaded</a> by <a href="http://guff.szub.net/">Kaf Oseo</a>, my trusted companion in dozens of  <strong>Wordpress</strong> installation, doesn&#8217;t work anymore on WP 2.6, so I have written an alternative version to finish the site I&#8217;m working on.</p>
<p>It&#8217;s a very small thing, not as complete as The excerpt reloaded, but, at least, it works, and it manages better than its inspirator the allowed tags, adding auto close to avoid pagination and validation errors.</p>
<p>It is <strong>based on the plain content</strong> of the post (like the content_rss in Kaf&#8217;s version) and like its predecessor, allowed tags cannot include &lt;p&gt; paragraphs, simply because I don&#8217;t need it on the site I&#8217;m currently developing, nor usually on any other. BTW, if somebody is interested, it can be easily fixed (or so I hope).</p>
<p><strong>Parameters</strong></p>
<ul>
<li>words (<em>integer</em>): number of words to display before ending the excerpt. Default is 40.</li>
<li>link_text (<em>string</em>): defines the text for the link to the full post. Default is &#8220;Keep reading this entry »&#8221;. Of course it is displayed only if the selected length is less than the full content. <span style="text-decoration: line-through;">It is displayed in a &lt;p&gt; pararaph with its specific class (more), so it can be easily stylized</span>.</li>
<li>allowed_tags (<em>string</em>): defines which HTML tags to accept. Use the format &#8216;&lt;img&gt;&#8217;. For multiple tags, enter as single string: &#8216;&lt;a&gt;&lt;img&gt;&#8217;. No tag allowed by default. <strong>NEW!</strong> Set to &#8216;all&#8217; to accept all tags.</li>
<li><strong>NEW!</strong> container (<em>string</em>): defines the container of the excerpt: paragraph, span, div, or none. The container has a specific class=&#8221;more&#8221; to easily customize its layout through css. If you choose a &#8220;div&#8221; container, an additional &#8220;p&#8221; tag inside the div is automatically included. Default is &#8220;p&#8221;, for no container use &#8220;plain&#8221;.</li>
<li><strong>NEW!</strong> smileys (<em>string</em>): set &#8216;yes&#8217; to convert text smileys to graphic images. Accepted values are &#8216;yes&#8217; and &#8216;no&#8217;. Default is &#8216;no&#8217;. (I don&#8217;t like emoticons) <img src='http://www.lucabiagini.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </li>
</ul>
<p><strong>Examples</strong></p>
<pre lang="php">&lt;?php the_excerpt_rereloaded(); ?&gt;
//display the excerpt with default settings.

&lt;?php the_excerpt_rereloaded('80','More','&lt;strong&gt;&lt;em&gt;','div','yes'); ?&gt;
//display an excerpt of 80 words
//the link to full post is simply "more"
//allowed tags are strong and em
//the link path is &lt;div class="more"&gt;&lt;p&gt;&lt;a href="#etc"&gt;More&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
//text smileys are converted to graphic images

&lt;?php the_excerpt_rereloaded('80','More','all','plain','no'); ?&gt;
//display an excerpt of 80 words
//the link to full post is simply "more"
//all tags are accepted
//the link path is included in the excerpt paragraph with no additional container
//text smileys are NOT converted to graphic images</pre>
<p><strong>Download</strong></p>
<p>Click <a href="http://www.lucabiagini.com/wp-content/uploads/2009/09/the_excerpt_rereloaded.phps">here</a> to view, copy, paste und upload as usual in wp-content/plugins folder. Suggestions are welcome.</p>
<p><strong>Older versions</strong></p>
<ul>
<li><a href="http://www.lucabiagini.com/wp-content/uploads/2008/11/the_excerpt_rereloaded.phps">Version 0.1</a></li>
<li><a href="http://www.lucabiagini.com/wp-content/uploads/2008/12/the_excerpt_rereloaded.phps">Version 0.3</a></li>
<li><a href="http://www.lucabiagini.com/wp-content/uploads/2009/03/the_excerpt_rereloaded.phps">Version 0.3.1</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.lucabiagini.com/2008/11/wordpress-plugin-the-excerpt-re-reloaded/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
		<item>
		<title>Firefox: blank location bar and chronology not working</title>
		<link>http://www.lucabiagini.com/2008/11/firefox-blank-location-bar-and-chronology-not-working/</link>
		<comments>http://www.lucabiagini.com/2008/11/firefox-blank-location-bar-and-chronology-not-working/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 13:54:40 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Problem]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://www.lucabiagini.com/?p=20</guid>
		<description><![CDATA[I had a strange problem yesterday with firefox on my mac: when I launched the browser, url bar stayed empty. It had no (apparently) (good) reasons act like this, as I didn&#8217;t update anything. If I tried to type another url, and then to navigate starting from it, the url didn&#8217;t change. Next and previous [...]]]></description>
			<content:encoded><![CDATA[<p>I had a strange problem yesterday with <strong>firefox on my mac</strong>: when I launched the browser, url bar stayed empty. It had no (apparently) (good) reasons act like this, as I didn&#8217;t update anything. If I tried to type another url, and then to navigate starting from it, the url didn&#8217;t change. <strong>Next and previous page buttons</strong> wasn&#8217;t working either.</p>
<p>A little but annoying problem, so i started googling for a quick solution, but I just didn&#8217;t found it, though many other users had experienced my same issue. Some of the few answers I&#8217;ve read somewhere suggest to launch Firefox in safe mode. I tried, but the problem was still there. Another common and uneffective (at least, for me) solution is to <strong>disable plugins and extensions</strong>, one by one, to understand which one is causing the problem.</p>
<p>I post the solution I&#8217;ve found, hoping it may help somebody in the future to save some time. <strong>Access profile manager</strong> (<a href="http://kb.mozillazine.org/Profile_Manager#Accessing_the_Profile_Manager">instructions here</a>, btw on mac, open terminal and digit: <em>/Applications/firefox.app/Contents/MacOS/firefox -profilemanager</em>), <strong>delete current profile and create a new one</strong> (it can be named like the previously deleted one &#8211; too lazy to think of something different from &#8220;default&#8221;).</p>
<p>Now everything is fine again, I&#8217;ve reinstalled the previously (and probably unnecessarily) deleted extensions and it&#8217;s still ok.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucabiagini.com/2008/11/firefox-blank-location-bar-and-chronology-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bootcamp: Airport on Windows with Parallels</title>
		<link>http://www.lucabiagini.com/2008/07/bootcamp-airport-on-windows-with-parallels/</link>
		<comments>http://www.lucabiagini.com/2008/07/bootcamp-airport-on-windows-with-parallels/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 06:58:48 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Bootcamp]]></category>
		<category><![CDATA[Parallels]]></category>

		<guid isPermaLink="false">http://www.lucabiagini.com/?p=18</guid>
		<description><![CDATA[Switched back to MacBook Pro after few unhappy weeks of MacBook Air, I&#8217;ve decided to try again Parallels.
Last time I&#8217;ve used it, almost 2 years ago, it was a beta and had too many limitations for my needs. Two years later, I must admit that it simply works and suits perfectly my needs, even with [...]]]></description>
			<content:encoded><![CDATA[<p>Switched back to MacBook Pro after few unhappy weeks of MacBook Air, I&#8217;ve decided to try again <strong>Parallels</strong>.</p>
<p>Last time I&#8217;ve used it, almost 2 years ago, it was a beta and had too many limitations for my needs. Two years later, I must admit that it simply works and suits perfectly my needs, even with &#8220;only&#8221; 2GB of ram.</p>
<p>I use it with the <strong>Windows XP partition generated with Boot Camp</strong> and the only problem I had, was with the airport connection. On Windows in Parallels, <strong>airport is not recognized as an installed device</strong>, so if you want to surf the web from windows with a wifi connection, <strong>the only solution is to share the wireless connection</strong> between the guest and the host OS.</p>
<p>In most cases, it works automatically, but not in mine. After hours of managing setting trying every combination of shared network, host only network, default adapter and so one, the best results I had gained <strong>was the possibility of browsing google.com</strong> (it wasn&#8217;t cached, it worked!) and few other sites. <strong>I could ping correctly</strong> everything, but couldn&#8217;t open any web page.</p>
<p>Googling and googling, I have found the solution I want to share on this post. I&#8217;ve downloaded a small app called <a title="Dr. TCP" href="http://www.dslreports.com/drtcp">Dr. TCP</a>, and in the very last row of the window I have selected &#8220;<strong>Parallels network adapter</strong>&#8221; and set MTU to 1400. Now everything works like a charm.</p>
<p>Hope it helps somebody else &#8211; I&#8217;ve seen many other users looking for help in many forums, with both <strong>Windows XP and Windows Vista, and even with Linux</strong>. Credit to this <a title="The solution" href="http://forum.insanelymac.com/index.php?showtopic=16245&amp;pid=104485&amp;mode=threaded&amp;start=#entry104485">velayo&#8217;s post</a> on Insanely Mac Forum. I can just add that reboot is probably not needed on newer Windows version.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucabiagini.com/2008/07/bootcamp-airport-on-windows-with-parallels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Php, MySql, .htaccess: friendly urls</title>
		<link>http://www.lucabiagini.com/2008/03/php-mysql-htaccess-friendly-urls/</link>
		<comments>http://www.lucabiagini.com/2008/03/php-mysql-htaccess-friendly-urls/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 10:33:27 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[Php & MySql]]></category>
		<category><![CDATA[Seo & Sem]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Indexing]]></category>
		<category><![CDATA[Sem]]></category>
		<category><![CDATA[Seo]]></category>
		<category><![CDATA[slug]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://localhost:8888/luca/?p=6</guid>
		<description><![CDATA[There are a lot of tutorials that show how to change an address like:

www.mysite.com/products.php?product_id=1234

into others like:

www.mysite.com/products/1234
www.mysite.com/products/1234.html

In this article I&#8217;d like to go one step forward and to create something like:

www.mysite.com/easy-to-remember-product-name
www.mysite.com/easy-to-remember-product-name.html

How-To and Contraindications
Switching from an address like the first one to the secon ones is search engine necessary, because SE spiders often don&#8217;t crawl correctly our [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lot of tutorials that show how to change an address like:</p>
<ul>
<li><em>www.mysite.com/products.php?product_id=1234</em></li>
</ul>
<p>into others like:</p>
<ul>
<li><em>www.mysite.com/products/1234</em></li>
<li><em>www.mysite.com/products/1234.html</em></li>
</ul>
<p>In this article I&#8217;d like to go one step forward and to create something like:</p>
<ul>
<li><em>www.mysite.com/easy-to-remember-product-name</em></li>
<li><em>www.mysite.com/easy-to-remember-product-name.html</em></li>
</ul>
<p><strong>How-To and Contraindications</strong></p>
<p>Switching from an address like the first one to the secon ones is <strong>search engine necessary</strong>, because SE spiders often don&#8217;t crawl correctly our dynamic urls. Switching to the third ones is much better, because it&#8217;s a <strong>search engine friendlier</strong>, and it&#8217;s <strong>human friendly</strong> too.</p>
<p>Now, I think we all agree that we should <strong>change our dynamic urls</strong> into the last ones, but the goal is to make it without modifying, or at least without modifying too heavily our web application. If our php script works with a query for product_id, and product_id is the unique, autoincremental key of our mysql database, we have to rewrite our urls without losing the possibility for our script to work in its original way.</p>
<p>That is <strong>the way Wordpress works</strong>: a function that allows the user to choose the preferred format for the urls. In this tutorial, we replicate &#8211; in a very simplier way &#8211; that tool.</p>
<p><strong>How the system works</strong></p>
<p>My solution &#8211; with downloadable example &#8211; uses php and mysql to manage the content and create the urls, and Apache&#8217;s server mod_rewrite module to rewrite the addresses. We assume to be on a linux server and that our app is <strong>php and mysql</strong> based.</p>
<p>We have 2 tables in our mysql db:</p>
<p><strong>News</strong> table contains the articles, with the columns id, title, article and <strong>slug</strong>, where slug contains the sanityzed title, that is a title like: &#8220;That&#8217;s an easy mod_rewrite tutorial&#8221; becomes &#8220;thats-an-easy-mod-rewrite-tutorial&#8221;.<br />
The script, normally, queries the db for the id, but we, through php, will find the related slug. Then we rewrite the url through mod_rewrite.</p>
<p><strong>Options</strong> table contains id, name and value of the options, that is, in this example, permalinks yes/no. If permalinks are off, php will query the db for the id, and the url format will be: index.php?id=x. If permalinks are on, php will query mysql for the slug, and mod_rewrite will rewrite the url in format: rewritten-url-with-php-and-mod-rewrite.</p>
<p><strong>Example</strong></p>
<p>A working example is available at:<br />
<a href="http://www.gruppomodulo.it/lavori/esempi/mod-rewrite-php-htaccess-tutorial/">gruppomodulo.it/lavori/esempi/mod-rewrite-php-htaccess-tutorial/</a></p>
<p>Also downloadable in .zip format at:<a href="http://www.gruppomodulo.it/lavori/esempi/mod-rewrite-php-htaccess-tutorial/ex.zip"><br />
gruppomodulo.it/lavori/esempi/mod-rewrite-php-htaccess-tutorial/ex.zip</a></p>
<p>Example includes following files:</p>
<ul>
<li><strong>.htaccess</strong><br />
Very simple .htaccess for mod_rewrite, that transforms the url from ?slug=rewritten-url to /rewritten-url.<br />
If permalinks are off, url format will be ?id=x, and there will be no rewrite.</li>
</ul>
<ul>
<li><strong>options.php</strong><br />
The file with the basic tool to switch on/off the permalinks</li>
</ul>
<ul>
<li><strong>single.php</strong> and <strong>index.php</strong><br />
Show site contents.</li>
</ul>
<ul>
<li><strong>functions.php </strong><br />
Contains the function that generates the urls (rewritten or not, depending on permalinks selected status) and the function that gets the articles from mysql database.</li>
</ul>
<ul>
<li>Zip file also includes the .sql file to recreate the <strong>example datatabase</strong>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.lucabiagini.com/2008/03/php-mysql-htaccess-friendly-urls/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Customize Wordpress Comments</title>
		<link>http://www.lucabiagini.com/2008/03/customize-wordpress-comments-alternate-background/</link>
		<comments>http://www.lucabiagini.com/2008/03/customize-wordpress-comments-alternate-background/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 11:39:42 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[Php & MySql]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://localhost:8888/luca/?p=5</guid>
		<description><![CDATA[That&#8217;s another article I&#8217;ve written for Gruppo Modulo after customizing the comments layout on their wordpress powered site. It&#8217;s a simple thing to do, but it still attracts enough visitors to gain a place on my personal blog.
Here&#8217;s how to have comments number displayed like comment background and to alternate the color of the comments [...]]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s another article I&#8217;ve written for Gruppo Modulo after <strong>customizing the comments</strong> layout on their <strong>wordpress powered</strong> site. It&#8217;s a simple thing to do, but it still attracts enough visitors to gain a place on my personal blog.</p>
<p>Here&#8217;s how to have <strong>comments number displayed like comment background</strong> and to <strong>alternate the color of the comments background</strong>; it&#8217;s pretty simple and works on IE (6,7,8), Firefox (1.5,2,3), Safari (1,2,3), Opera (PC &amp; Mac), and even in IE5 mac.</p>
<p>You have to change only 2 files, so backup them before you start. The file you need to edit are:</p>
<ul>
<li>wp-content/themes/default/comments.php</li>
<li>wp-content/themes/default/style.css</li>
</ul>
<p>First open comments.php and remove the open &#8220;ol&#8221; tag:</p>
<pre>&lt;ol <span class="kw2">class</span>=<span class="st0">"commentlist"</span>&gt;</pre>
<p>Obviously, we remove the close &#8220;ol&#8221; too.<br />
Now we have to remove the open &#8220;li&#8221; tag in foreach loop:</p>
<pre>&lt;li <span class="kw2">class</span>=<span class="st0">"&lt;?php echo $oddcomment; ?&gt;"</span>
id=<span class="st0">"comment-&lt;?php comment_ID() ?&gt;"</span>&gt;</pre>
<p>And then remove the &#8220;/li&#8221; after:</p>
<pre><span class="st0">&lt;?php comment_text() ?&gt;</span></pre>
<p>This has been necessary because we must create <strong>new numbers for the background</strong>; the ones generated from the ol list won&#8217;t work for the background, so we removed them to avoid duplications.  Now we create the big numbers; edit this line:</p>
<pre><span class="st0">&lt;?php foreach ( $comments as $comment ) ?&gt;</span></pre>
<p>to be like this:</p>
<pre><span class="st0">&lt;?php $bigNumber = 1; foreach ( $comments as $comment ) ?&gt;</span></pre>
<p>Now, we create the div with the bigNumber before the comment:</p>
<pre><span class="st0">&lt;div class="bigNumber"&gt; &lt;?php echo $bigNumber; $bigNumber++ ?&gt;&lt;/div&gt;</span></pre>
<p>Then we create a div to contain the rest of the comment (date, author, text, ecc.). We open it <strong>right after</strong> the new bigNumber div:</p>
<pre><span class="st0">&lt;div class="theComment"&gt;</span></pre>
<p>And we close it where there was the /li, <strong>after</strong>:</p>
<pre><span class="st0">&lt;?php comment_text() ?&gt;</span></pre>
<p>Now we need to create the alternance of divs name, so that we can alternate the <strong>background color of the comments</strong>.  We need to create a div that encloses both bigNumber and theComment. So <strong>after foreach</strong> we open this new div like this:</p>
<pre><span class="st0">&lt;div class="&lt;?=$i%2?"pari":"dispari";$i++;?&gt;"&gt;</span></pre>
<p>Then we close this div <strong>right before</strong> endforeach, <strong>after</strong> the /div for theComment.<br />
Now we just have to add few lines to our css as follows:</p>
<pre lang="css">.dispari { background: #ccc; }
.pari { background: #999; }
.bigNumber {
          font-size: 6em;
          color: #fff;
          width: 450px;
          text-align: right;
          position: absolute;
          margin-top: 20px;
          z-index: 10;
}
.theComment { position: relative; z-index: 20; }</pre>
<p>That&#8217;s all!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucabiagini.com/2008/03/customize-wordpress-comments-alternate-background/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Wordpress plugin: random subpages</title>
		<link>http://www.lucabiagini.com/2008/02/wordpress-plugin-random-subpages/</link>
		<comments>http://www.lucabiagini.com/2008/02/wordpress-plugin-random-subpages/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 10:20:15 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[Php & MySql]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://localhost:8888/luca/?p=4</guid>
		<description><![CDATA[This is the very first plugin I&#8217;ve written for wordpress. It&#8217;s so simple and could be easily optimized, but it works and it&#8217;s still having success, with a large number of viewers where I have originally posted it on Gruppo Modulo (where is also available in italian version).
Wordpress Plugin Random SubPages lets you show a [...]]]></description>
			<content:encoded><![CDATA[<p>This is the very first plugin I&#8217;ve written for wordpress. It&#8217;s so simple and could be easily optimized, but it works and it&#8217;s still having success, with a large number of viewers where I have originally posted it <a href="http://www.gruppomodulo.it/2006/10/27/wp-plugin-random-subpages-en/">on Gruppo Modulo</a> (where is also available in <a href="http://www.gruppomodulo.it/2006/10/27/wordpress-plugin-random-subpages/">italian version</a>).</p>
<p>Wordpress Plugin <strong>Random SubPages</strong> lets you show a customizable number of random child pages (or just some elements of them) of a  <strong>parent page</strong>.</p>
<p>It can be used to <strong>display random</strong> services of a parent service page, i.e.:</p>
<p>+ web solutions<br />
- xhtml + css<br />
- php scripting<br />
- webcommerce tools<br />
- seo and sem<br />
- web adv<br />
- dem marketing<br />
- ecc</p>
<p>Or it can be used to show the members of a team:</p>
<p>+ XYZ Football Team<br />
- player 1<br />
- player 2<br />
- player 3<br />
- players 4<br />
- etc</p>
<p>Download <a id="p69" title="Random Subpages - Zip Archive" href="http://www.gruppomodulo.it/wordpress/wp-content/uploads/2006/10/random_subpages.zip">Random Subpages</a> and unzip the folder on your pc.<br />
Then upload random_subpages.php in wp-content/plugin and activate it from admin panel.</p>
<p>Then recall it, <strong>outside the loop</strong>, in the page you wish with this code:</p>
<pre lang="php">&lt;?php

/* edit first row to set the number of
pages to show and the parent page */

// as set right now,it will show 3 pages, child of page 4

$randompages = gruppo_modulo_rsp('numberposts=3&amp;parentpage=4′);
foreach($randompages as $post) : // do not edit this line
setup_postdata($post); // do not edit this line

/* now it will be shown what you want to show from the selected pages
(for example title, content, meta, ecc), see example below.
you can add additional formatting using echo.
n the example we have placed the title between h3 tags */

echo "&lt;h3&gt;";
the_title();
echo "&lt;/h3&gt;";
the_excerpt();
the_content();
the_meta();

// end of the customizable part; do not edit below

endforeach;

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lucabiagini.com/2008/02/wordpress-plugin-random-subpages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
