Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-02-15 16:44:41

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

Comments system

Taking input from various threads around the patch regarding comments, we seem to have a few opportunities:

And probably others.

I’ve just had a flick through publish/comment.php and can hardly make head nor tail of the logic. It’s just horrible, probably due to long-term feature creep and progressive enhancements that don’t gel with TXP as well as they could. Same goes for some of the comment prefs, which are often confusing.

One thing that has always bugged me is that the comment input tags aren’t customisable and you have to configure them all through the <txp:comments_form /> tag (isize, msgcols, msgrows, etc). So you can’t have an e-mail input field a different size to a name field, for example — might be useful in some languages.

Thing is, I’m not a huge user of comments so I don’t really know what’s important, what’s desirable and what makes sense for the core to do and where plugins should take over. This is where you all come in. I’d like to try and take stock of what’d actually be useful versus what’s just impractical or unimplementable, for whatever reason. e.g. I’m not qualified to figure whether completely removing the auto-append thing has an impact on usability or if simply turning it off by default is better.

Some thoughts off the top of my head, right or wrong:

  1. Add one or more ‘true’ comment tags instead of the half-arsed versions we have now. This could be in the form of replacing the plethora of input tags with one ‘comment_input’ tag, e.g. <txp:comment_input type="name" />, <txp:comment_input type="email" />, <txp:comment_input type="preview" />, etc, and leaving the sizes of input widget as defined in the comments_form tag
  2. Alternatively, keep the input tags as separate entities as they are now (though I’ve always thought it was confusing to have comments_preview and comment_preview being so closely named), make them real tags and offer some attributes to override the ‘default’ size values as specified via the <txp:comments_form /> attributes
  3. Allow <txp:comments>, <txp:comments_form> and <txp:comments_preview> to become containers if you wish
  4. Deprecate the textonly attribute and swap it for a more standardised link attribute in <txp:comments_invite />

Although I don’t want this to turn into “feature list by committee”, please argue any thoughts / ideas / improvements / patches related to TXP comments here, so I/we can figure out how to distil this down to a set of things that make sense to everyone and don’t cause too much upset. Thanks in advance.

<txp:comments_invite /> :-)


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

#2 2010-02-15 18:23:25

maniar
Member
From: Hamilton, Ontario
Registered: 2010-01-04
Posts: 66
Website

Re: Comments system

Expanding on the idea of author comments – I’d like that the author, when already logged into the back-end, need not re-enter his information when replying to comments on the front end.

Even when Wordpress introduced the reply-to-comments from the back end, I still used to reply from the regular comment form – because I prefer flat listed comments and I prefer replying to multiple commentators via only one comment.


اردو میں بھی دستیاب Textpattern آپ کے لیے اب

Offline

#3 2010-02-15 23:41:04

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: Comments system

Bloke, I’ve always felt that the entire comment apparatus should be optional as a plugin. I don’t actually use them on my sites much so the whole thing is bloat for me. However, having a well-maintained comment plugin — possibly written by yours truly — that is as simple as plugging and playing and has all the features you mention, would be really great.

Especially if you are saying the code is weird and you’re going to essentially begin again, that’s my suggestion — make Comments a plugin, not a core feature.

Offline

#4 2010-02-15 23:52:40

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

Re: Comments system

benbruce wrote:

I’ve always felt that the entire comment apparatus should be optional as a plugin.

I see where you’re coming from. I don’t use it much either so it’s bloat for me in 80% of sites. Perhaps an ‘official plugin’ (eeek, sounds like those ill-fated crockery elements) is an attractive proposition, though I’ve no idea how we’d manage upgrades :-\ Any thoughts?

Especially if you are saying the code is weird and you’re going to essentially begin again

Well it’s non-standard, yes, but I’d hoped to not have to start entirely from scratch! Was hoping to consolidate what was there and make it more consistent as well as adding a few features to make it more useful / less confusing for us all. But you got me thinkin’ on a tangent now…

maniar

when already logged into the back-end, need not re-enter his information when replying to comments on the front end

A noble suggestion, thanks. Will add it to the floaty pool of consideration. Anybody else who wants to chime in on the usefulness of this feature, as well as anything else mentioned so far, feel free.


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 2010-02-16 00:02:55

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: Comments system

When I said “yours truly” I meant “you,” not “me,” by the way. :)

Offline

#6 2010-02-16 00:10:48

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Comments system

I agree with benbruce. I thought Txp is a CMS, not a blogging tool… ;)

BTW there is also a plugin for flagging author comments.

Offline

#7 2010-02-16 00:29:35

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

Re: Comments system

Els wrote:

I agree with benbruce. I thought Txp is a CMS, not a blogging tool… ;)

Duly noted, thanks.

BTW there is also a plugin for flagging author comments.

Yes, net-carver’s excellent comment pack does it for one. There are probably others. I just can’t decide if that part of it is core-worthy or it should remain as a plugin solution (Ben’s idea of making the entire comment system a plugin notwithstanding).

Adding an author class is not that much extra code since we know the parent article, thus we know the author, so it’s one cacheable query away to look up the author’s e-mail/web address & name and compare it to the info against each comment. That does assume of course the supplied information is unique to a user which it may not be, but in all practical applications would be. The only time I can think of where it falls over would be if someone deliberately used the author’s e-mail address, web address and name to pose as the author. All that info is fairly easy to come by. Hmmm… plugins would fall foul of the same ploy, though. Can’t think of a way round it, unless the comments themselves were somehow “signed” by the author (perhaps by virtue of being logged in when commenting?)

Maybe we should scrap that idea…


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

#8 2010-02-16 01:56:10

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Comments system

Els wrote:

I agree with benbruce. I thought Txp is a CMS, not a blogging tool… ;)

Hell, yeah!


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#9 2010-02-16 10:21:24

jan
Member
From: Utrecht, The Netherlands
Registered: 2006-08-31
Posts: 71
Website

Re: Comments system

Maybe only flag as author comment when posted from the backend.
Of course chances are small that someone tries to identify themselves as the author but still it seems a bit unelegant to just check for the right email address. Besides, it saves you one instance where the user table gets queried.

Last edited by jan (2010-02-16 10:23:53)


Kensington TXP powered rock

Offline

#10 2010-02-18 05:26:03

pauldice
New Member
Registered: 2010-02-11
Posts: 6

Re: Comments system

I’ve just started using TXP and was playing around with comments for the first time yesterday. There are a few things that I would like to see, some of which I think belong in the core and some that might be better as plugins. A basic implementation of comments is a good idea for a CMS (not having them at all might turn off potential users). More advanced features can be handled by plugins or third party solutions such as Disqus or IntenseDebate.

So here are the things I would love to see in the core (in order of importance). If there is already a way to achieve these without using plugins, please let me know.

1. The option to notify the commenter via e-mail of further posts. To my mind this is much more important than being able to ‘Remember Me’.

2. More control over the comment form fields. Not just sizes but it would be nice to use the new CSS3 HTML5 input types (email, url) and attributes (placeholder, autofocus).

3. A tag to retrieve comment number (i.e. 1 for first comment, 2 for second comment etc).

4. Admin-side replies and flagging of author replies. Not huge things for me personally but I can see their use and they feel like core rather than plugin functionality. I think the flagging would have to require a login otherwise you leave yourself very open to pranksters.

Some tag consolidation would also be a good idea as there are so (too?) many of them. And comments_form feels like it should have its attributes moved elsewhere and be replaced with a simple output_form.

Last edited by pauldice (2010-02-19 04:04:52)

Offline

#11 2010-02-18 06:07:59

pauldice
New Member
Registered: 2010-02-11
Posts: 6

Re: Comments system

Oops, forgot number 5 – an option to turn off comment previews. I’m all for less spam obviously but it seems harsh to enforce previews when there are alternatives such as captchas available.

Offline

#12 2010-02-18 06:43:56

maniar
Member
From: Hamilton, Ontario
Registered: 2010-01-04
Posts: 66
Website

Re: Comments system

@pauldice

  1. A Plugin Exists
  2. Can you please elaborate ? What specific cool and neat CSS3 trick would you like your fields to do ?
  3. Comments are can be shown as an ordered list. Go to Admin > Advanced Prefs. The rest you can pretty up via CSS
  4. (Thanks for chiming in)
  5. (Thanks) but I am no fan of CAPTCHA especially if it is forced see my next comment.

اردو میں بھی دستیاب Textpattern آپ کے لیے اب

Offline

Board footer

Powered by FluxBB