Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-12-03 15:44:44

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Needed Feature for TXP 4.0.8

This message is destinate to Wet and Ruud :

Could you add a “Reply to this comment” form (an xhtml form not a txp form ;) within the “Comment” tab?

This feature is include by default in WordPress 2.7 back-end.

I’d never understant [till I’m usinging TXP] why I had to return within my front-end website to answer to my comments. It’s a shame.

I think this kind of feature is’nt very difficult for you.

Could you answer to this topic?

Best regards,

Last edited by Pat64 (2008-12-03 15:47:14)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#2 2008-12-03 16:07:20

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,454
Website GitHub

Re: Needed Feature for TXP 4.0.8

If the answer’s no, this’d make a great plugin. At a simplistic level:

  • some sort of link alongside each comment to launch a thickbox-style window
  • that window has a few fields in it (most of which are filled in from the currently-logged-in user info), plus a submit button
  • the existing comment could be inserted in the textarea so you could quote from it if you wish (maybe some sort of plugin pref could govern this?)
  • upon submit it looks up the comment ID, finds its parent article and inserts a new row in the comment table

Game over.

The only sticking point is if the comment you are replying to isn’t visible (perhaps awaiting moderation) you’d have to automatically make it visible (auto-accept it, as if moderated). Or perhaps make the plugin so you can’t reply to unmoderated messages? Might needs some thought here; I don’t use comments so don’t know much about them.

Last edited by Bloke (2008-12-03 18:22:14)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2008-12-03 17:52:52

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

Re: Needed Feature for TXP 4.0.8

There’s a difference between replying to a comment and adding a comment. The former implies storing a relationship between the reply and the original comment (which requires a change to the table layout in the database), while the latter simply adds a new comment.

Offline

#4 2008-12-03 18:18:07

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,454
Website GitHub

Re: Needed Feature for TXP 4.0.8

OK, my mistake. I thought Pat64 meant that instead of visiting the front end of the site, navigating to the article and having to type an author comment in there, that the intention was to be able to directly add a comment to the article from the admin side. In that way, someone who moderated comments en-masse could skim through them all from the Comment tab and add their own comments (my interpretation of “reply” here) without faffing with the public side and visiting each article that may have been posted.

If that’s the wrong interpretation, then sorry for the confusion. And ignore post #2!

Last edited by Bloke (2008-12-03 18:21:13)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2008-12-04 01:49:33

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Needed Feature for TXP 4.0.8

ruud wrote:

There’s a difference between replying to a comment and adding a comment. The former implies storing a relationship between the reply and the original comment (which requires a change to the table layout in the database), while the latter simply adds a new comment.

This ain’t necessarily so, as long as one doesn’t expect a threaded comment view a la WordPress.

Case in point: This post. It helps readers to grok the context, and PunBB did the quoting for me. I had to add a back reference manually, but PunBB would have all the information it needs to automate generating a backreference as well.

I don’t think that threaded comments are a way of presentation which would fit all needs, as some users would rather have a strictly chronological view with the very last comment at the page’s end. So we’d need a preference to switch comment view between flat and threaded view, add a maximum depth preference to save the layout from breaking and what not.

I’d aim at a flat view with automated quoting and backreferences, if any.

Offline

#6 2008-12-04 09:03:57

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

Re: Needed Feature for TXP 4.0.8

Patrick seems to request just one level of reply (site author replies to comments, nobody else).

Offline

#7 2008-12-04 09:13:13

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Needed Feature for TXP 4.0.8

So an admin-side comment entry form plus “automated quoting” with a backreference link to the quoted comment would possibly be a suitable solution.

Offline

#8 2008-12-04 09:29:11

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

Re: Needed Feature for TXP 4.0.8

Before we even attempt doing this, I’d like to see comments stored in both textile and XHTML format.

Offline

#9 2008-12-04 12:14:53

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

Re: Needed Feature for TXP 4.0.8

ruud wrote:

Before we even attempt doing this, I’d like to see comments stored in both textile and XHTML format.

I couldn’t agree more. That feature would help a lot, sir :) thinking about edit button too, and new feature for rah_comment_form

Offline

#10 2008-12-04 13:32:03

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Needed Feature for TXP 4.0.8

ruud wrote:

Before we even attempt doing this, I’d like to see comments stored in both textile and XHTML format.

IMHO, comments should be broken out from the core and made into an official plugin.

Offline

#11 2008-12-04 20:56:26

Neko
Member
Registered: 2004-03-18
Posts: 458

Re: Needed Feature for TXP 4.0.8

hcgtv wrote:

IMHO, comments should be broken out from the core and made into an official plugin.

Why? :)

I mean, if you mean it because of the “Comments” tab in sites that don’t require comments (this thing might confuse some users) we could simply hide said tab if comments are disabled in “Preferences”.

Offline

#12 2008-12-04 22:01:17

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Needed Feature for TXP 4.0.8

Neko wrote:

Why? :)

We touched on this in another thread:

a) Most web developers use Textpattern as a CMS, comments are for blogs.
b) Breaking it out to a plugin with appropriate hooks opens up commenting to outside developers.

On all my sites, I don’t use comments, for the simple fact that it’s a bit of a pain. I had to enable comment moderation early on, so I have to review said comment, approve it. Then go to the front page, reply to said comment, go back to the admin and approve my own comment. It got old real quick.

I’d rather have the option to use another commenting subsystem, whether it’s hosting by me or one of the many commenting services popping up. Like I said, we discussed this a while back, can’t find the thread.

Offline

Board footer

Powered by FluxBB