x
 
Create New Page
 View Previous Changes    ( Last updated by Lisa Wess )

Mass Allow Comments

Changes are made at your own risk and are not guaranteed to work. Always make backups of the database and files prior to implementing hacks. Make a special backup of the file and/or template you are modifying so that you can roll back quickly.

Hacks are dangerous and can cause your site to stop working. They make later updates to ExpressionEngine more difficult; you should track your hacks for post-update re-implementation. 

Most hacks are unnecessary, please review the Development Documentation for information on expanding ExpressionEngine via Modules, Extensions, and Plugins.

Hacks are never officially supported.

Question:

Is there a simple way to turn on all comments for one weblog on in one go?

Answer:

Using an update query:

Update exp_weblog_titles set allow_comments = 1
where
allow_comments
= 0 and
weblog_id = 1

Replace weblog_id with *your* weblog_id.

You’ll need to use something like PHPMyAdmin to do this.
Category:Comments Category:Queries

Categories: