<?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>MarcoDuff&#039;s Blog &#187; WordPress</title>
	<atom:link href="http://www.marcoduff.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marcoduff.com</link>
	<description>...::: Il Blog di Marco &#34;Duff&#34; Palermo :::...</description>
	<lastBuildDate>Sun, 01 Jan 2012 11:22:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SimpleModal Contact Form (SMCF)</title>
		<link>http://www.marcoduff.com/2008/06/03/simplemodal-contact-form-smcf/</link>
		<comments>http://www.marcoduff.com/2008/06/03/simplemodal-contact-form-smcf/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 23:39:10 +0000</pubDate>
		<dc:creator>MarcoDuff</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.marcoduff.com/?p=39</guid>
		<description><![CDATA[Installato da qualche giorno un nuovo plug-in per WordPress: SimpleModal Contact Form (SMCF). Questo plug-in vi consente di inviarmi una email direttamente dal sito. Semplice ma con un effetto molto carino! Ci ho messo un paio di giorni per renderlo effettivo visto che era in inglese e andava in conflitto con il plug-in Lightbox. Mi [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a title="SimpleModal Contact Form" rel="lightbox" href="http://wordpress.org/extend/plugins/simplemodal-contact-form-smcf/screenshot-1.gif"><img src="http://wordpress.org/extend/plugins/simplemodal-contact-form-smcf/screenshot-1.gif" alt="SimpleModal Contact Form" width="300" class="border" /></a></p>
<p>Installato da qualche giorno un nuovo plug-in per WordPress: <a title="SimpleModal Contact Form (SMCF)" href="http://wordpress.org/extend/plugins/simplemodal-contact-form-smcf/" target="_blank">SimpleModal Contact Form (SMCF)</a>.</p>
<p>Questo plug-in vi consente di inviarmi una email direttamente dal sito. Semplice ma con un effetto molto carino!</p>
<p>Ci ho messo un paio di giorni per renderlo effettivo visto che era in inglese e andava in conflitto con il plug-in Lightbox. Mi sono messo a tradurre il plug-in (appena posso invio la traduzione direttamente all&#8217;autore) ed ho tentato di correggere il bug. Sul <a href="http://www.ericmmartin.com/" target="_blank">sito dell&#8217;autore</a>, infatti, questo bug viene segnalato per una versione diversa dall&#8217;ultima disponibile, quindi non vi è una soluzione.</p>
<p>Dopo studi, ho scoperto che per risolvere il conflitto tra i due plug-in basta aggiungere la riga:</p>
<pre>jQuery.noConflict();</pre>
<p>alla fine del file js/jQuery.js e tutto magicamente funziona!</p>
<p>Quindi adesso non avete scuse&#8230; potete contattarmi sia tramite i commenti che direttamente tramite il <a href="/contattami" class="smcf-link">form</a>!</p>
<p>Ciau!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcoduff.com/2008/06/03/simplemodal-contact-form-smcf/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>NextGEN Gallery</title>
		<link>http://www.marcoduff.com/2008/05/14/nextgen-gallery/</link>
		<comments>http://www.marcoduff.com/2008/05/14/nextgen-gallery/#comments</comments>
		<pubDate>Wed, 14 May 2008 12:55:24 +0000</pubDate>
		<dc:creator>MarcoDuff</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[NextGEN]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.marcoduff.com/?p=30</guid>
		<description><![CDATA[Ho appena finito di installare un nuovo PlugIn per il sistema WordPress, NextGEN Gallery! Questo plugin serve a gestire una galleria di immagini in WordPress. Devo dire che è un ottimo plugin, altamente configurabile e semplice da gestire. Cito le parole di Alex Rabe, l&#8217;autore del plugin, dal sito ufficiale: My last and hopefully best [...]]]></description>
			<content:encoded><![CDATA[<p>Ho appena finito di installare un nuovo PlugIn per il sistema <a href="http://www.wordpress.org/" target="_blank">WordPress</a>, <a href="http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/" target="_blank">NextGEN Gallery</a>!</p>
<p>Questo plugin serve a gestire una galleria di immagini in WordPress. Devo dire che è un ottimo plugin, altamente configurabile e semplice da gestire.</p>
<p>Cito le parole di Alex Rabe, l&#8217;autore del plugin, dal sito ufficiale:</p>
<blockquote><p>My last and hopefully best plugin for WordPress is a new Gallery plugin called NextGEN Gallery . It&#8217;s named als &#8220;NextGeneration&#8221; according to the the development of the game consoles . More over it should indicate that I (try) to use all new possibilities of the great JQuery and the so called Web 2.0. Before I start writing the plugin I study all image and gallery plugins for WordPress, I figure out that some of them are really good and well designed, but I missed a simple and easy administration back end to handle multiple galleries.</p></blockquote>
<p>Plugin assolutamente consigliato a tutti i possessori di WordPress!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcoduff.com/2008/05/14/nextgen-gallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cambiare le icone a WordPress</title>
		<link>http://www.marcoduff.com/2008/04/22/cambiare-le-icone-a-wordpress/</link>
		<comments>http://www.marcoduff.com/2008/04/22/cambiare-le-icone-a-wordpress/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 18:03:47 +0000</pubDate>
		<dc:creator>MarcoDuff</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Icone]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.marcoduff.com/?p=23</guid>
		<description><![CDATA[Questo blog utilizza il motore WordPress, ovvero un framework per la pubblicazione e la gestione di un Blog. Come tutti i framework che si rispettino, WordPress è altamente configurabile e personalizzabile. In questo articolo studieremo una personalizzazione di WordPress, ovvero la personalizzazione delle emoticon. Di default, tutte le emoticon sono salvate nella cartella /wp-includes/images/smilies del [...]]]></description>
			<content:encoded><![CDATA[<p>Questo blog utilizza il motore <a href="http://www.wordpress.org/" target="_new">WordPress</a>, ovvero un framework per la pubblicazione e la gestione di un Blog.</p>
<p>Come tutti i framework che si rispettino, <a href="http://www.wordpress.org/" target="_new">WordPress</a> è altamente configurabile e personalizzabile.</p>
<p>In questo articolo studieremo una personalizzazione di <a href="http://www.wordpress.org/" target="_new">WordPress</a>, ovvero la personalizzazione delle emoticon.</p>
<p>Di default, tutte le emoticon sono salvate nella cartella <tt>/wp-includes/images/smilies</tt> del motore <a href="http://www.wordpress.org/" target="_new">WordPress</a> nel vostro webserver. Per sicurezza facciamo una copia di backup di questa cartella in locale utilizzando un client FTP, uno dei miei preferiti è <a href="http://filezilla-project.org/">FileZilla</a>.</p>
<p>Adesso non dobbiamo fare altro che cercare le nostre emoticon su internet e sovrascriverle a quelle esistenti.</p>
<p>Di default, le emoticon di <a href="http://www.wordpress.org/" target="_new">WordPress</a> sono 11, nella tabella seguente riporto quelle originali (colonna <strong>Orig</strong>), quelle installate nel mio sistema (<strong>Inst</strong>), il nome del file (<strong>Nome File</strong>), le possibili combinazioni per eseguirla (<strong>Cmb1</strong>, <strong>Cmb2</strong> e <strong>Cmb3</strong>):</p>
<table border="1" align="center">
<thead>
<tr>
<th>Orig</th>
<th>Inst</th>
<th>Nome File</th>
<th>Cmb1</th>
<th>Cmb2</th>
<th>Cmb3</th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="http://codex.wordpress.org/images/c/c0/icon_smile.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </td>
<td>icon_smile.gif</td>
<td>&#58;)</td>
<td>&#58;-)</td>
<td>&#58;smile&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/1/1f/icon_biggrin.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </td>
<td>icon_biggrin.gif</td>
<td>&#58;D</td>
<td>&#58;-D</td>
<td>&#58;grin&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/1/14/icon_sad.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </td>
<td>icon_sad.gif</td>
<td>&#58;(</td>
<td>&#58;-(</td>
<td>&#58;sad&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/7/79/icon_surprised.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> </td>
<td>icon_surprised.gif</td>
<td>&#58;o</td>
<td>&#58;-o</td>
<td>&#58;eek&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/c/c0/icon_eek.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_eek.gif' alt='8O' class='wp-smiley' /> </td>
<td>icon_eek.gif</td>
<td>&#56;O</td>
<td>&#56;-O</td>
<td>&#58;shock&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/4/41/icon_confused.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_confused.gif' alt=':?' class='wp-smiley' /> </td>
<td>icon_confused.gif</td>
<td>&#58;?</td>
<td>&#58;-?</td>
<td>&#58;???&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/a/a3/icon_cool.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> </td>
<td>icon_cool.gif</td>
<td>&#56;)</td>
<td>&#56;-)</td>
<td>&#58;cool&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/2/2e/icon_mad.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /> </td>
<td>icon_mad.gif</td>
<td>&#58;x</td>
<td>&#58;-x</td>
<td>&#58;mad&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/4/4e/icon_razz.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </td>
<td>icon_razz.gif</td>
<td>&#58;P</td>
<td>&#58;-P</td>
<td>&#58;razz&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/1/1c/icon_neutral.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' /> </td>
<td>icon_neutral.gif</td>
<td>&#58;|</td>
<td>&#58;-|</td>
<td>&#58;neutral&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/4/4b/icon_wink.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </td>
<td>icon_neutral.gif</td>
<td>&#59;)</td>
<td>&#59;-)</td>
<td>&#58;wink&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/1/15/icon_lol.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </td>
<td>icon_lol.gif</td>
<td></td>
<td></td>
<td>&#58;lol&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/4/40/icon_redface.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_redface.gif' alt=':oops:' class='wp-smiley' /> </td>
<td>icon_redface.gif</td>
<td></td>
<td></td>
<td>&#58;oops&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/9/96/icon_cry.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_cry.gif' alt=':cry:' class='wp-smiley' /> </td>
<td>icon_cry.gif</td>
<td></td>
<td></td>
<td>&#58;cry&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/c/ca/icon_evil.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_evil.gif' alt=':evil:' class='wp-smiley' /> </td>
<td>icon_evil.gif</td>
<td></td>
<td></td>
<td>&#58;evil&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/a/a8/icon_twisted.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_twisted.gif' alt=':twisted:' class='wp-smiley' /> </td>
<td>icon_twisted.gif</td>
<td></td>
<td></td>
<td>&#58;twisted&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/5/5f/icon_rolleyes.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_rolleyes.gif' alt=':roll:' class='wp-smiley' /> </td>
<td>icon_rolleyes.gif</td>
<td></td>
<td></td>
<td>&#58;roll&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/f/fc/icon_exclaim.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_exclaim.gif' alt=':!:' class='wp-smiley' /> </td>
<td>icon_exclaim.gif</td>
<td></td>
<td></td>
<td>&#58;!&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/b/bd/icon_question.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_question.gif' alt=':?:' class='wp-smiley' /> </td>
<td>icon_question.gif</td>
<td></td>
<td></td>
<td>&#58;?&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/1/18/icon_idea.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_idea.gif' alt=':idea:' class='wp-smiley' /> </td>
<td>icon_idea.gif</td>
<td></td>
<td></td>
<td>&#58;idea&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/0/03/icon_arrow.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_arrow.gif' alt=':arrow:' class='wp-smiley' /> </td>
<td>icon_arrow.gif</td>
<td></td>
<td></td>
<td>&#58;arrow&#58;</td>
</tr>
<tr>
<td><img src="http://codex.wordpress.org/images/7/7b/icon_mrgreen.gif" alt="" /></td>
<td> <img src='http://www.marcoduff.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </td>
<td>icon_mrgreen.gif</td>
<td></td>
<td></td>
<td>&#58;mrgreen&#58;</td>
</tr>
</tbody>
</table>
<p>Adesso che ci è chiaro come sostituire le icone esistenti, facciamo un passo avanti, vediamo come aggiungere icone o modificare il testo o il nome del file delle icone esistenti.</p>
<p>Apriamo il file <tt>/wp-includes/functions.php</tt> e cerchiamo la funzione <tt>smilies_init()</tt>.</p>
<p>Questa funzione non fa altro che inizializzare una variabile php <tt>$wpsmiliestrans</tt>, che non è altro che un array associativo, dove la chiave indica la combinazione di caratteri da utilizzare, mentre il valore indica il nome del file da associare.</p>
<p>L&#8217;array, in <a href="http://www.wordpress.org/" target="_new">WordPress</a> 2.5 si presenta nel seguente modo:</p>
<blockquote><p>$wpsmiliestrans = array(<br />
&#8216;:mrgreen:&#8217; =&gt; &#8216;icon_mrgreen.gif&#8217;,<br />
&#8216;:neutral:&#8217; =&gt; &#8216;icon_neutral.gif&#8217;,<br />
&#8216;:twisted:&#8217; =&gt; &#8216;icon_twisted.gif&#8217;,<br />
&#8216;:arrow:&#8217; =&gt; &#8216;icon_arrow.gif&#8217;,<br />
&#8216;:shock:&#8217; =&gt; &#8216;icon_eek.gif&#8217;,<br />
&#8216;:smile:&#8217; =&gt; &#8216;icon_smile.gif&#8217;,<br />
&#8216;:???:&#8217; =&gt; &#8216;icon_confused.gif&#8217;,<br />
&#8216;:cool:&#8217; =&gt; &#8216;icon_cool.gif&#8217;,<br />
&#8216;:evil:&#8217; =&gt; &#8216;icon_evil.gif&#8217;,<br />
&#8216;:grin:&#8217; =&gt; &#8216;icon_biggrin.gif&#8217;,<br />
&#8216;:idea:&#8217; =&gt; &#8216;icon_idea.gif&#8217;,<br />
&#8216;:oops:&#8217; =&gt; &#8216;icon_redface.gif&#8217;,<br />
&#8216;:razz:&#8217; =&gt; &#8216;icon_razz.gif&#8217;,<br />
&#8216;:roll:&#8217; =&gt; &#8216;icon_rolleyes.gif&#8217;,<br />
&#8216;:wink:&#8217; =&gt; &#8216;icon_wink.gif&#8217;,<br />
&#8216;:cry:&#8217; =&gt; &#8216;icon_cry.gif&#8217;,<br />
&#8216;:eek:&#8217; =&gt; &#8216;icon_surprised.gif&#8217;,<br />
&#8216;:lol:&#8217; =&gt; &#8216;icon_lol.gif&#8217;,<br />
&#8216;:mad:&#8217; =&gt; &#8216;icon_mad.gif&#8217;,<br />
&#8216;:sad:&#8217; =&gt; &#8216;icon_sad.gif&#8217;,<br />
&#8217;8-)&#8217; =&gt; &#8216;icon_cool.gif&#8217;,<br />
&#8217;8-O&#8217; =&gt; &#8216;icon_eek.gif&#8217;,<br />
&#8216;:-(&#8216; =&gt; &#8216;icon_sad.gif&#8217;,<br />
&#8216;:-)&#8217; =&gt; &#8216;icon_smile.gif&#8217;,<br />
&#8216;:-?&#8217; =&gt; &#8216;icon_confused.gif&#8217;,<br />
&#8216;:-D&#8217; =&gt; &#8216;icon_biggrin.gif&#8217;,<br />
&#8216;:-P&#8217; =&gt; &#8216;icon_razz.gif&#8217;,<br />
&#8216;:-o&#8217; =&gt; &#8216;icon_surprised.gif&#8217;,<br />
&#8216;:-x&#8217; =&gt; &#8216;icon_mad.gif&#8217;,<br />
&#8216;:-|&#8217; =&gt; &#8216;icon_neutral.gif&#8217;,<br />
&#8216;;-)&#8217; =&gt; &#8216;icon_wink.gif&#8217;,<br />
&#8217;8)&#8217; =&gt; &#8216;icon_cool.gif&#8217;,<br />
&#8217;8O&#8217; =&gt; &#8216;icon_eek.gif&#8217;,<br />
&#8216;:(&#8216; =&gt; &#8216;icon_sad.gif&#8217;,<br />
&#8216;:)&#8217; =&gt; &#8216;icon_smile.gif&#8217;,<br />
&#8216;:?&#8217; =&gt; &#8216;icon_confused.gif&#8217;,<br />
&#8216;:D&#8217; =&gt; &#8216;icon_biggrin.gif&#8217;,<br />
&#8216;:P&#8217; =&gt; &#8216;icon_razz.gif&#8217;,<br />
&#8216;:o&#8217; =&gt; &#8216;icon_surprised.gif&#8217;,<br />
&#8216;:x&#8217; =&gt; &#8216;icon_mad.gif&#8217;,<br />
&#8216;:|&#8217; =&gt; &#8216;icon_neutral.gif&#8217;,<br />
&#8216;;)&#8217; =&gt; &#8216;icon_wink.gif&#8217;,<br />
&#8216;:!:&#8217; =&gt; &#8216;icon_exclaim.gif&#8217;,<br />
&#8216;:?:&#8217; =&gt; &#8216;icon_question.gif&#8217;,<br />
);</p></blockquote>
<p>Supponiamo di voler aggiungere l&#8217;emoticon <tt>:love:</tt> per associarla al file <tt>icon_love.gif</tt>, non ci serve altro che inserire la riga</p>
<blockquote><p>&#8216;:love:&#8217; =&gt; &#8216;icon_love.gif&#8217;,</p></blockquote>
<p>ed il gioco è fatto!</p>
<p>Al prossimo articolo!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcoduff.com/2008/04/22/cambiare-le-icone-a-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

