Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Plugin: mik_commentcount
Well, now I feel I can do anything in this world! I’ve written my first txp plugin! … … Well … It’s nothing special, it’s just… you know… my first.
Currently at version 0.2!
- v0.2: Added the link attribute
- v0.1: First release
All the plugin does, is output how many comments an article has. The same as txp:commentscount? you might say. Well, it’s quite the same – the difference is, that this will write a 0 when there’s no comments. I wanted that, and took the opportunity to write up my first plugin. It’s a bit sad having to write a plugin, because my blog is the only one without comments :) … Hehe, I guess I could just write something interesting for a start!
Well, more information and download here. You can also see it in action on my site…
And please tell me of any corrections, suggestions or anything you might want to add…
Last edited by MikkelM (2006-01-03 00:38:28)
Offline
#2 2006-01-03 00:08:55
- -P-
- Member
- From: Finland
- Registered: 2005-09-10
- Posts: 211
Re: Plugin: mik_commentcount
Hi!
Tested the plugin and it does not link to the actual comment?
And if you use it with <code><txp:comments_invite/> <txp:mik_commentcount /></code>
The result is “commets 1 [1]” when there is a comment already. When there are no comments it shows like it should be, “comments 0”
Offline
Re: Plugin: mik_commentcount
I just realized that … Well I’ll make a link=“1” attribute in v 0.2 …
Also see gho_comments_invite which does quite the same…
Offline
#4 2006-01-03 00:24:08
- -P-
- Member
- From: Finland
- Registered: 2005-09-10
- Posts: 211
Offline
Re: Plugin: mik_commentcount
Now it’s 0.2 … Added the link attribute.
Offline
Pages: 1