<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://blog.psicomante.net" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>il Blog di Psicomante - Drupal: Rimuovere l&amp;#039;inclusione automatica della firma di un utente nel form del commento - Comments</title>
 <link>http://blog.psicomante.net/drupal-rimuovere-linclusione-automatica-della-firma-di-un-utente-nel-form-del-commento.html</link>
 <description>Comments for &quot;Drupal: Rimuovere l&#039;inclusione automatica della firma di un utente nel form del commento&quot;</description>
 <language>en</language>
<item>
 <title>Drupal: Rimuovere l&#039;inclusione automatica della firma di un utente nel form del commento</title>
 <link>http://blog.psicomante.net/drupal-rimuovere-linclusione-automatica-della-firma-di-un-utente-nel-form-del-commento.html</link>
 <description>&lt;p&gt;Come amministratore di &lt;a href=&quot;http://www.drupalitalia.org/forum&quot;&gt;Drupalitalia.org&lt;/a&gt;, mi piace modificare il sito e aggiungere nuove funzionalità, in modo che sia sempre un &lt;em&gt;work in progress&lt;/em&gt;. E&#039; il caso dell&#039;aggiunta del modulo &lt;a href=&quot;http://drupal.org/project/flatforum&quot;&gt;flatforum&lt;/a&gt;, che aiuta a far sembrare il forum di Drupal più normale, e non un Bulletin-Board-System.&lt;/p&gt;
&lt;p&gt;Tra le novità interessanti che ho inserito è l&#039;inserimento dinamico delle firme, grazie a phpTemplate. Purtroppo Drupal inserisce automaticamente nel form di commento, la firma alla fine del textfield, cosa che assolutamente non serve in un sistema di firme automatico. Cosa dobbiamo andare a modificare allora? Purtroppo l&#039;unica soluzione è modificare comment.module in attesa della &lt;a href=&quot;http://drupal.org/node/130366&quot;&gt;versione 6.x&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Ecco cosa dobbiamo commentare.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp; $form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;comment_filter&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;comment&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = array(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;#type&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;textarea&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;#title&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;t&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Comment&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;), &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;#rows&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;#default_value&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$edit&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;comment&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;/* ? $edit[&#039;comment&#039;] : $user-&amp;gt;signature*/&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;#required&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Buon forum su &lt;a href=&quot;http://www.drupalitalia.org&quot; title=&quot;www.drupalitalia.org&quot;&gt;www.drupalitalia.org&lt;/a&gt; &lt;img src=&quot;/sites/all/modules/smileys/packs/example/wink.png&quot; title=&quot;Eye-wink&quot; alt=&quot;Eye-wink&quot; /&gt;&lt;/p&gt;
</description>
 <comments>http://blog.psicomante.net/drupal-rimuovere-linclusione-automatica-della-firma-di-un-utente-nel-form-del-commento.html#comments</comments>
 <category domain="http://blog.psicomante.net/blog/drupal">drupal</category>
 <category domain="http://blog.psicomante.net/blog/flatforum">flatforum</category>
 <category domain="http://blog.psicomante.net/blog/php">php</category>
 <category domain="http://blog.psicomante.net/blog/tutorial-drupal">tutorial drupal</category>
 <pubDate>Sun, 24 Jun 2007 18:31:52 +0200</pubDate>
 <dc:creator>psicomante</dc:creator>
 <guid isPermaLink="false">116 at http://blog.psicomante.net</guid>
</item>
</channel>
</rss>
