Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-12 07:08:43

Christoph
Member
From: Gangelt, Germany
Registered: 2009-01-30
Posts: 13
Website

Comment invite Problem

The <txp:comments_invite /> tag is a really poor one, as it doesn’t even distinguish between no, one or more comments, which is a bit annoying >;-|
I searched for a plugin that solves this problem and I found one named gho_comments_invite.
Unfortunately there is no functioning link where I can download this plugin. So, does anyone has an alternative plugin solving this problem or is there a similar build-in textpattern solution.
Again, what I want to have is somethting like “No comments yet” for 0 comments, “Only one lonely comment” for 1 comment, and so on.

Any suggestions?

Thanks in advance!
Cheers,
Christoph

Offline

#2 2009-08-12 08:10:31

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: Comment invite Problem

Hi Christoph,

gho_comments_invite are merged in gho_comments_tools and are placed on google code: gho_comments_tools.

Last edited by trenc (2009-08-12 08:11:03)


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#3 2009-08-12 12:48:58

Christoph
Member
From: Gangelt, Germany
Registered: 2009-01-30
Posts: 13
Website

Re: Comment invite Problem

Thanks for the fast answer,
but in this version the comments_invite is no included, as mentioned here :

“Please use the Devel-Version of GhoCommentTools to use GhoCommentsInvite”

But the link to the Devel-Version is broken.
I tried the available “current version”, but after installing the plugin textpattern says “there is no tag txp:gho_comments_invite”.

Update: I’ve found an older version from here, if anyone needs it, too.

Still like to know if there is a current devel-version anywhere?

Last edited by Christoph (2009-08-12 12:58:16)

Offline

#4 2009-08-12 13:03:09

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: Comment invite Problem

but after installing the plugin textpattern says “there is no tag txp:gho_comments_invite”

Hi Christoph,

  • Did you enable the plugin?
  • Does the error appear with the site in Admin>Preferences:: Production Status: “Live” mode?

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Online

#5 2009-08-12 18:06:31

Christoph
Member
From: Gangelt, Germany
Registered: 2009-01-30
Posts: 13
Website

Re: Comment invite Problem

Hi Yiannis,

Yes, I enabled the plugin.
I haven’t tested it in live mode, but the older version of the gho_comments_invite plugin works well and that serves well at the moment.

Offline

#6 2009-09-25 19:14:36

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: Comment invite Problem

I ran into this problem myself the other day. I was able to work around it with a <txp:variable />. You can determine if there are comments easily with <txp:if_comments />. But for more control, you can do something like:

<txp:variable name="num_comments" value='<txp:comments_count />' />
<txp:if_comments>
   <txp:if_variable name="num_comments" value="1">
      --output something when there is only one comment--
   <txp:else />
      --output something when there is more than one comment--
   </txp:if_variable>
<txp:else />
  --output something if there are no comments--
</txp:if_comments>

Offline

Board footer

Powered by FluxBB