Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-30 06:58:27

Wolfgang
Member
From: Germany
Registered: 2006-07-18
Posts: 71
Website

How do i move a comment from one artcile to another?

Hello

Someone has commented an article A using the article B, because the time line for comments in A has reached its end. Is there any possibility to move the comment?

Best regards
Wolfgang

Offline

#2 2007-12-30 07:24:30

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: How do i move a comment from one artcile to another?

You can do it via phpMyAdmin.

Click to browse “txp_discuss” table
Find the message you wish to move
Click to edit it (The pencil image)
Change its “parentid” to the article you want to move the comment to.

parentid is the same as the id of the article if you are viewing the site in messy mode

Last edited by colak (2007-12-30 07:25:56)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2007-12-30 07:41:15

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: How do i move a comment from one artcile to another?

It might be more complicated than that.

Here’s a few more things you’ll need to do…

  1. There’s also the comment number — you’ll need to change that so that it’s at the end of the sequence of comments attached to the new parent.
  2. Then decrease the old parent’s comment count by 1
  3. Then increase the new parent’s comment count by 1

AFAIK, that should do it.


Steve

Offline

#4 2007-12-30 09:29:31

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: How do i move a comment from one artcile to another?

Thanks for adding to that steve. did not think of the counts.
wish there was a plugin which could easily move comments around.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2007-12-30 22:06:33

Wolfgang
Member
From: Germany
Registered: 2006-07-18
Posts: 71
Website

Re: How do i move a comment from one artcile to another?

Thanks it works …

Offline

#6 2007-12-31 00:42:50

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: How do i move a comment from one artcile to another?

Another way I usually do is to re-post it:

1. go to the post where you want to move the comment to.
2. copy/paste the content of the original comment on the comment form and fill the other inputs with the data of the commenter (e-mail, web, name).
3. post it
4. delete/moderate the old one.

Pros: you don’t mess with phpMyAdmin, it’s fast and easy to do.
Cons. you loose the IP address of the original commenter.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#7 2007-12-31 02:47:02

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: How do i move a comment from one artcile to another?

Cons. you loose the IP address of the original commenter.

You probably won’t do nothin’ with it, as IP’s are dynamic and if that same commenter spams in future you could just simply ban the URL then. And with out legal notice, you can’t even list those IPs in stats etc. They are only a random number.

And I want add one pros: Commenter’s IP is lost so hacker can’t get it from Textpattern, and one cons. it’s way more slower than with phpMyAdmin when moving several comments, if you are quick to write sql.

Cheers!

Offline

Board footer

Powered by FluxBB