You are hereBlogs / dave's blog / Disable 'Preview Required' for Comments in Drupal 6

Disable 'Preview Required' for Comments in Drupal 6


By dave - Posted on 15 January 2009

By default, Drupal is configured to force anonymous users to preview their comments before posting them. To enable users to post without previewing their comment, you might think you'd access:

Administer > Content Management > Content Settings > Post Settings

Not anymore!

In Drupal 6, the comment preview settings are tied to each content type. Visit:

Administer > Content Management > Content Types at admin/content/types

Select 'edit' next to the content type. For the 'page' content type, you'll end up at:

admin/content/node-type/page

Scroll down to 'comment settings' and change 'preview comment' from Required to Optional. Then click 'Save content type.'

thanks ... this help me a lot

I knew I saw this somewhere. I thought I had lost my mind. :)

...had forgotten where i had seen this earlier, glad your page came up in google !

Same story as the above comments.
Drupal has a very confusing backend hierarchy.

This is probably my LEAST FAVORITE "feature" in Drupal 6. Instead of having one page that allows me to define how comments work all over my site I now have to set it in six different pages. There is such a thing as "too granular."

How can I disable the Preview button from appearing on the screen?

Thanks.

There are a few ways. Any one of these should work:

  1. The preview button uses the #edit-preview CSS ID. By setting this ID to display:none; in your CSS, you can effectively hide the preview button.
  2. Create a module that calls hook_form_alter() and removes the preview button, for example: unset($form['buttons']['preview']);
  3. Create a template file for the specific form you're trying to hide the button on. In that template file, insert the line $form['preview'] = null;

I have a common problem with drupal 6 online website. Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 59 bytes) in /var/www/sites/all/modules/cck/content.module on line 1288.

i just increased the memory_limit to 64M using ini_set(). But the error is still there. when i deleted the module from the folder site is fine.How can i rectify this problem?

Please help me

Resources like the one you mentioned here will be very useful to me! I will post a link to this page on my blog. I am sure my visitors will find that very useful Administrateur. Déroulement du vol : Venez survoler le lac de Gérardmer, la route des crêtes, le Hohneck Un baptême de l'air ou simplement envie saut en parachute d'une balade dans les airs Nous effectuons des baptêmes de l'air et des vols d'initiation afin de

About the Author

dave's picture

Name
Dave Nugent

Bio

Dave is a freelance Drupal developer working in San Francisco. He runs the San Francisco JavaScript Meetup and GamesJS, an HTML5 gaming group. He's a graduate of CMU Silicon Valley. In his spare time he docents at the Computer History Museum and serves on the board of the Digital Game Museum. Follow Dave on Twitter @drnugent.