Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-06 08:38:03

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Batch enable comments for all articles

I’m sure there should be sql query that will do this :)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#2 2008-04-06 08:45:45

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Batch enable comments for all articles

  1. Select all comments in Content>Articles, “With selected: Change comments”
  2. Or with an SQL query:
update textpattern set Annotate=1;

Offline

#3 2008-04-06 10:15:13

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Batch enable comments for all articles

Changing by list is not convinient because there are a looot of articles :)
sql query is the best solution


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#4 2008-05-09 00:43:43

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Batch enable comments for all articles

Is it possible to change sql-query so, that it will affect only articles from section “article”?


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#5 2008-05-09 08:27:32

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Batch enable comments for all articles

At the bottom of the list of articles in TXP, there’s a multi-edit option. Doesn’t that allow enabling comments for all selected articles visible on the page? If the number of pages is limited, that’s not too much work.

Offline

#6 2008-05-09 08:58:16

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Batch enable comments for all articles

If there are hundreds of articles, listing them is not very convinient.
I tried this sql-query: update textpattern set Annotate=1 where Section='article';
It seems to be worked :)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

Board footer

Powered by FluxBB