Friendly comment count

For the comment counts on the various indexes on this blog, I am using my Switch plugin in tandem with the SimpleComments plugin

The code should be quite self-explanatory if you understand how switch-case statements work:

<MTSwitch value="[MTSimpleCommentCount]">
<MTSwCase value="0">
<a href="<$MTEntryPermalink$>#comments" title="Be the first to comment on
&quot;<$MTEntryTitle encode_html='1'$>&quot;">Leave a comment</a>
</MTSwCase>
<MTSwCase value="1"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
&quot;<$MTEntryTitle encode_html='1'$>&quot;">One comment</a></MTSwCase>
<MTSwCase value="2"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
&quot;<$MTEntryTitle encode_html='1'$>&quot;">Two comments</a></MTSwCase>
<MTSwCase value="3"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
&quot;<$MTEntryTitle encode_html='1'$>&quot;">Three comments</a></MTSwCase>
<MTSwCase value="4"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
&quot;<$MTEntryTitle encode_html='1'$>&quot;">Four comments</a></MTSwCase>
<MTSwCase value="5"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
&quot;<$MTEntryTitle encode_html='1'$>&quot;">Five comments</a></MTSwCase>
<MTSwCase value="6"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
&quot;<$MTEntryTitle encode_html='1'$>&quot;">Six comments</a></MTSwCase>
<MTSwCase value="7"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
&quot;<$MTEntryTitle encode_html='1'$>&quot;">Seven comments</a></MTSwCase>
<MTSwCase value="8"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
&quot;<$MTEntryTitle encode_html='1'$>&quot;">Eight comments</a></MTSwCase>
<MTSwCase value="9"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
&quot;<$MTEntryTitle encode_html='1'$>&quot;">Nine comments</a></MTSwCase>
<MTSwCase value="10"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
 &quot;<$MTEntryTitle encode_html='1'$>&quot;">Ten comments</a></MTSwCase>
<MTSwDefault><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
&quot;<$MTEntryTitle encode_html='1'$>&quot;"><$MTSimpleCommentCount$>
comments</a></MTSwDefault></MTSwitch>

You can also download the CommentCount template snippet.

This discussion has been closed. No further comments may be added.