Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-28 23:41:53

monooso
New Member
Registered: 2005-10-28
Posts: 3

txp:if_comments tag bug

Hello all,

I have a particularly annoying problem with TextPattern that I hope somebody can shed some light on (disclaimer: I’m pretty new to TXP).

The txp:if_comments tag simply doesn’t work as I would expect it to (or as it explicitly states it does). If I have a post with no comments and comments disabled, it will return false. However, if the post has no comments but comments are enabled, it returns true (cue me getting very irate).

I’ve installed the gho_comments_invite plug-in, just to see whether that exhibits similarly bizarre behaviour, but it recognises the lack of comments just fine. I’ve even reinstalled TXP, and it’s still happening.

If anybody could shed some light on what the problem is, I’d be most grateful. As a starter for ten, is it:
  1. some unmentionable bug that everybody chooses not to talk about (what elephant?)
  2. a problem specific to my machine
  3. me being stupid
  4. none of the above

This is driving me spare. I’ve even started thinking impure thoughts about WordPress…

Thanks
Stephen

Offline

#2 2005-10-28 23:54:26

monooso
New Member
Registered: 2005-10-28
Posts: 3

Re: txp:if_comments tag bug

Typical. I spend hours weeping over this, and then – within minutes of making a desperate plea to the outside world – find an article explaining that the tag is indeed useless in it’s current form.

The only remaining question is how to get the behaviour I’m looking for… but that’s probably a post better suited to a different category.

Offline

#3 2005-10-29 01:20:47

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

Re: txp:if_comments tag bug

There are three tags: if_comments, if_comments_allowed, if_comments_disallowed. In 4.0.2, if_comments is fixed and all three allow for using ‘else’.

In the meantime you can use plugin tags, like the one you mentioned, and glx_if.

Offline

#4 2005-10-29 08:36:36

monooso
New Member
Registered: 2005-10-28
Posts: 3

Re: txp:if_comments tag bug

Thanks Mary.

Offline

#5 2005-10-29 10:35:01

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: txp:if_comments tag bug

4.0.2 is coming next week, too.

Offline

Board footer

Powered by FluxBB