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
"<$MTEntryTitle encode_html='1'$>"">Leave a comment</a>
</MTSwCase>
<MTSwCase value="1"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
"<$MTEntryTitle encode_html='1'$>"">One comment</a></MTSwCase>
<MTSwCase value="2"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
"<$MTEntryTitle encode_html='1'$>"">Two comments</a></MTSwCase>
<MTSwCase value="3"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
"<$MTEntryTitle encode_html='1'$>"">Three comments</a></MTSwCase>
<MTSwCase value="4"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
"<$MTEntryTitle encode_html='1'$>"">Four comments</a></MTSwCase>
<MTSwCase value="5"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
"<$MTEntryTitle encode_html='1'$>"">Five comments</a></MTSwCase>
<MTSwCase value="6"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
"<$MTEntryTitle encode_html='1'$>"">Six comments</a></MTSwCase>
<MTSwCase value="7"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
"<$MTEntryTitle encode_html='1'$>"">Seven comments</a></MTSwCase>
<MTSwCase value="8"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
"<$MTEntryTitle encode_html='1'$>"">Eight comments</a></MTSwCase>
<MTSwCase value="9"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
"<$MTEntryTitle encode_html='1'$>"">Nine comments</a></MTSwCase>
<MTSwCase value="10"><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
"<$MTEntryTitle encode_html='1'$>"">Ten comments</a></MTSwCase>
<MTSwDefault><a href="<$MTEntryPermalink$>#comments" title="<MTEntryCommentCount> local and <MTEntryTrackbackCount> remote comments for
"<$MTEntryTitle encode_html='1'$>""><$MTSimpleCommentCount$>
comments</a></MTSwDefault></MTSwitch>
You can also download the CommentCount template snippet.
This discussion has been closed. No further comments may be added.