Is there an easy way to convert a comment to a forum or story node - other than creating a new node and copying the information in?

Comments

killes@www.drop.org’s picture

You could probably write a module that allows admins to do this.

droopy’s picture

I was hoping someone had already done so. It seems a useful functionality - people often add comments to posts that take the discussion off at a tangent. It would be great to be able to reassign the comment as a new topic or story.

David Poblador i Garcia’s picture

I've almost finished writing a patch for comment.module that enables Drupal to store comments as nodes. With this, a comment could be (for example) promoted to front page enabling the flag.

It was discussed at the devel mailing list, but most people thought this could cause bad performance.

killes@www.drop.org’s picture

Did you check the performance impact of your patch? Don't you think an extra module would be better for this particular purpose?

David Poblador i Garcia’s picture

I haven't tested yet, I've only tested a small number of nodes & comments & accessess. It works fine on this scenario.

Do we need an extra module to store comments?

killes@www.drop.org’s picture

Not to store them, but to convert some of them to nodes. This is probably much easier than patching comment.module that all comments should be nodes.

David Poblador i Garcia’s picture

I think it is a good idea but, should comments below "noded" comment remain attached to it or should both threads remain independant?

droopy’s picture

I would strongly prefer comments attached below the comment that is moved to stay attached and be moved with it, though I guess people are not always careful to reply to the right branch of the thread. Or could it be made optional?

killes@www.drop.org’s picture

I think they should remain attached, but you could also just set a link to the old discussion thread.

axel@debianplanet.org’s picture

I think, reverse process also will usefull - convert "nodes" to "comments", or by other words, split two nodes into one. Like works 'split' in forum-engines.

--

Axel,

Russian Debian Community

Anonymous’s picture

Has anyone made any progress on this front? I would think that this would ideally appear in core, but should be a free-standing module, if core isn't practical. It's always dangerous to patch a core module, if it doesn't look like it'll be supported in the long run.

Perhaps a new module could import the comment as a new node that, somehow, sets all the other node links null and links back to the original node for comments, subscriptions, etc.

c0c0c0 
If I had any wisdom to impart, would I be doing this?
ô¿ó