Moved Permanently Textpattern plugin : ajw_comment_num (compooter.org)

Textpattern plugin : ajw_comment_num

09 March 2005 @ early morning | Comments (5)

Plugin Details

Download:
ajw_comment_num
Version:
0.2
Forum:
Read discussion
Status on this site:
Active

Please use forum for all bug reports and questions

Summary

Allows for outputting current comment number. Intended usage is from within default comment form.

Examples

Ideally, this is meant to be used in your default comment form. While it is possible to use this plugin with the default <ol> formatting of comments, you’ll be able to do much more fun things if you switch off numbered list formatting in admin->preferences.

<div id="comment-<txp:ajw_comment_num />">
  <span class="comment-num"><txp:ajw_comment_num /></span> 
  ...other comment form stuff... 
</div>

Result:

<div id="comment-1"> 
  <span class="comment-num">1</span>
   ...other comment form stuff...
</div>

Revision History

v0.2

  • Fixed incrementing bug associated with using multiple tags in one comment form

5 comments

1

Hi, did you test your example? If I take it, it would render in

< div id="comment-1">
< span class="comment-num">*2*< /span>
...other comment form stuff…
< /div>
?

Patrick → plog.grauhirn.org
2

Eeenteresting… I’ll look into it today.

Btw, if you have bug reports or feature requests, it’s best to use the associated Textpattern Forum thread so that everyone who subscribes to the thread can be part of the discussion and aware of what’s up. :-)

andrew → compooter.org
3

Ok – all fixed.

andrew → compooter.org
5

Thanks – that makes life easier!

Jon Hicks → hicksdesign.co.uk

Comments are closed for this article.

Previously

Elsewhere