Google Search

Tutorial su Drupal

Risorse su Drupal





Link al mio profilo
Contattami

E-mailpsicomantegmailcom

MSNpsicomantekatapekkianet

Google Talkpsicomantesugmaildotcom

Skypepsicomante

Your donations support ongoing development

Creative Commons License

Newsfeed RSS png image
Google Talk png image

Drupal: Rimuovere l'inclusione automatica della firma di un utente nel form del commento

Submitted by psicomante on Sun, 2007-06-24 18:31.

Come amministratore di Drupalitalia.org, mi piace modificare il sito e aggiungere nuove funzionalità, in modo che sia sempre un work in progress. E' il caso dell'aggiunta del modulo flatforum, che aiuta a far sembrare il forum di Drupal più normale, e non un Bulletin-Board-System.

Tra le novità interessanti che ho inserito è l'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'unica soluzione è modificare comment.module in attesa della versione 6.x.

Ecco cosa dobbiamo commentare.

<?php
   $form
['comment_filter']['comment'] = array('#type' => 'textarea', '#title' => t('Comment'), '#rows' => 15, '#default_value' => $edit['comment']/* ? $edit['comment'] : $user->signature*/, '#required' => TRUE);
?>

Buon forum su www.drupalitalia.org Eye-wink


Post new comment

Smileys
:);):(:D}:):P:O:?8):jawdrop::sick:
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <div> <br> <img> <strike> <div> <img>
  • Lines and paragraphs break automatically.
  • You may post PHP code. You should include <?php ?> tags.
  • Textual smileys will be replaced with graphical ones.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You may quote other posts using [quote] tags.

More information about formatting options

CAPTCHA
Rispondi alla domanda se sei umano!
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.

Recent comments

This site is proudly powered by Drupal 5.2 and Drupal Italia .


Creative Commons License

Commentatori più attivi

Ecco la lista dei 5 commentatori più attivi su Psicomante Blog!

Syndicate content5ThirtyOne Design | Psicomante's Blog | Top