Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2005-08-13 16:25:29

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: Request : subscribe to comment plugin ?

> Andrew wrote:
> I have it on my to-do list for monday

for he’s a jolly good fellow, for he’s a jolly good fellow, for he’s a jolly good fe-el-low….. which nobody can deny!!


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#17 2005-08-16 06:35:48

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Request : subscribe to comment plugin ?

Ok, I’ve submitted a bare-bones beta patch (that likely will need quite a bit of major adjustments) in order to get per-post comments feeds in RSS. I’ll move on to Atom after I receive a response. The good news is that it looks like quite a reasonable modification, as long as I’m not ignoring something major.

As far as subscriptions go, (like MT’s emailing of comments and subscription management), I hope it doesn’t disappoint anyone that I won’t be touching that. I feel that feeds for comments are more than sufficient for keeping readers updated.

Offline

#18 2005-08-16 19:52:13

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Request : subscribe to comment plugin ?

Ok, patch updated. I’m not recommending this to any inexperienced users, but if anyone feels like playing around a bit you can grab the patch and try it out. It was based off of v4.0 r807.

You may be asking why I did this approach instead of a plugin. Well, first off it’s not possible to modify rss.php’s and atom.php’s behavior from within a plugin. So that meant I really was looking at creating a standalone drop-n-go file, which would just complicate things. This patch is forward-friendly (if you’re svn-savvy) and can easily be brought into the core, once approved.

Affected files:

  • /textpattern/publish/rss.php
  • /textpattern/publish/atom.php
  • /textpattern/publish/taghandlers.php

It also adds a tag <txp:comments_feed_link />, which is similar in functionality to the other txp feed tags.

Acceptable URLs are as follows:

  • http://domain.tld/?rss=1&area=comments (all comments rss feed)
  • http://domain.tld/?atom=1&area=comments (all comments atom feed)
  • http://domain.tld/?rss=1&area=comments&id=1 (per-post rss feed for id 1)
  • http://domain.tld/?atom=1&area=comments&id=1 (per-post atom feed for id 1)
  • http://domain.tld/?rss=1&area=comments&limit=20 (all comments rss feed limit 20)
  • http://domain.tld/?atom=1&area=comments&limit=20 (all comments atom feed limit 20)

There may be bugs or changes, so maybe only install on a test site for now unless you know what you’re doing.

Future features that are outside of this scope:

  • Clean feeds (this goes hand-in-hand with also extending /rss & /atom to accept section, category, limit)
  • Per-category & per-section comment feeds? (sorta superfluous)

Last edited by Andrew (2005-11-09 05:53:13)

Offline

#19 2005-08-16 21:33:05

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Request : subscribe to comment plugin ?

I’ve set up a download for those of you who may want to try it out (unzip to /textpattern/publish). It includes the three files that you’ll need to replace and is intended for use with Txp v4.0.

This isn’t for the faint of heart however, and I strongly recommend that you first backup and thoroughly compare your originals with the replacement files. A file-diffing utility such as Beyond Compare would help to easily see what changed between files.

Offline

#20 2005-08-16 21:42:58

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Request : subscribe to comment plugin ?

And for those of you who can’t do without email subscriptions (I acknowledge that most inhabitants of the InterWebNets are still not feed-savvy), perhaps some combination of this with R-Mail?

Offline

#21 2005-08-31 16:19:26

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Request : subscribe to comment plugin ?

bump Any word on the feasibility of this patch, zem?

Offline

#22 2005-08-31 21:45:05

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: Request : subscribe to comment plugin ?

Right now you can set your RSS feed so that any new comments will update the feed and it will show up as new in your reader.

Offline

#23 2005-08-31 21:55:27

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: Request : subscribe to comment plugin ?

> tinyfly wrote:
> Right now you can set your RSS feed so that any new comments will update the feed and it will show up as new in your reader.

yea, that’s a nice option, but not quite the same thing is it. ;)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#24 2005-08-31 22:00:07

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Request : subscribe to comment plugin ?

Yes, not at all the same – and for two reasons:

  1. It doesn’t contain the content of the comments in the feed.
  2. This will trick web-based readers (normal readers, too) into constantly thinking your articles are being updated, when they’re not.

Offline

#25 2005-08-31 22:02:35

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Request : subscribe to comment plugin ?

It’s also annoying as hell. I rarely keep specific topic feeds that other systems output. I only care about an article itself getting updated. If comments “count”, I have to check the flipping thing every time someone comments, only find out someone else said, “This is great!” God help me if the article is popular. Better to have topic comment feeds like WordPress does, then those who want it can have it, and it won’t bother anyone else.

Edit: Andrew read my mind. ;)

Last edited by Mary (2005-08-31 22:03:01)

Offline

#26 2005-09-01 00:49:10

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: Request : subscribe to comment plugin ?

Well said. I don’t really like it either but I thought I would through it out there in case someone doesn’t know.

Offline

#27 2005-11-10 00:21:21

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Request : subscribe to comment plugin ?

One thing though… if this was to being made into the core, some nicer URL would be quite useful. Already mentionned into the todo list it seems, but still :p

Offline

#28 2005-11-10 00:27:34

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Request : subscribe to comment plugin ?

First of all, to what todo list are you referring? Also, what “nicer” url are you thinking of? Are you referring to “clean” feed urls? (btw, I am about to release a comments feed plugin)

Offline

#29 2005-11-10 09:04:53

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: Request : subscribe to comment plugin ?

> Andrew wrote:

> (btw, I am about to release a comments feed plugin)

OOOOOOHHHH Baby!!!


Cheers,
Jon VC#9

Offline

#30 2005-11-10 19:41:42

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Request : subscribe to comment plugin ?

Offline

Board footer

Powered by FluxBB