dapurhosting.com Blog for Tech

March 14, 2012

How to disable comments in Drupal

Filed under: CMS — dh @ 3:02 am

If you have admin access to Drupal log in and go to Administer – Content – Content Types. Then edit the content type of your choice and make sure comments are set to off by default.

Alternatively the above can be done directly by executing the following query in your database:

UPDATE system SET status = '0' WHERE filename = 'modules/comment/comment.module';

When you decide to re-enable the module simply issue the reverse query:

UPDATE system SET status = '1' WHERE filename = 'modules/comment/comment.module';

Disable User Registration

UPDATE variable SET 'value' = 's:1:”0?;'  WHERE 'name' = 'user_register'; 

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress