NP_NumberOfComments

This is a simple plugin which fetches and displays the number of comments for a given item, or the total number of comments for the current blog.

General Plugin info
Author: Tim Bellette
Current Version: 1.05
Download: np_numberofcomments_v1.05.zip
Code: NP_NumberOfComments Code
Forum Thread: Thread 6675

Installing

  • Copy and paste the code above into a file called NP_NumberOfComments.php.
  • Upload the file into the nucleus plugin directory, than install or update the subscription list.
  • Include template var where you wish for the plugin to be shown.

How to use the plugin

Display Number of Comments For an Article

Inside of your template place the code

<%NumberOfComments%>

where you would like the # of comments to be displayed, e.g.

Comments(<%NumberOfComments%>)

will display “Comments(#)” where # is the number of comments which have been posted for the given item.

Display Total Number of Comments

Inside of your skin place the code

<%NumberOfComments%>

where you would the the total # of comments to be displayed. This will display the number of comments for the current blog being accessed.

History

  • Version 1.05
    • fixed ketsugis' rewrite :P
  • Version 1.04
    • ketsugi rewrite hohohohoh! :D
  • Version 1.03, released 2005-04-27
    • Optimized code.
  • Version 1.02, released 2005-04-26
    • Added Skin var to display total comments for blog.
  • Version 1.01, released 2005-05-15
    • Optimized sql statement.
  • Version 1.00, released 2005-04-15
    • First released.

Plugin review

NP_NumberOfComments version 1.05 works with Nucleus CMS version 3.31 - 2007-11-25 kg

numberofcomments.txt · Last modified: 2007/11/25 14:17 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki