Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
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.
Offline
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
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
Pages: 1