latestcomments

NP_LatestComments.php

This plugin shows the latest comments added to your blog

General Plugin info
Author: anand, moraes, admun, e-Musty, PiyoPiyoNaku
Current Version: v1.83
Download: click here or try here
Forum Thread: forum here

Installing

  1. Download the code from above
  2. Upload it to /plugins directory
  3. Install it at plugin admin menu
  4. Modify the formatting template and other options, if needed. %t == comment time, %u == commenter, %c == comment, %p == item, %l == url to comment, %P == url to post
  5. Put <%LatestComments%> somewhere in your skin, ie left/right column
  6. Add anchor tag in the detailed item template (under comments body): <a name=<%commentid%> ></a> after say “<h4 class=”c_userlink“><%userlink%> wrote:</h4>”

SkinVar

The plugin can be called in many ways:

<%LatestComments(numOfPost,mode)%>

where mode can be:

  • nothing, for all blogs
  • actual, current blog
  • default, default blog
  • blog#, a specifiv blog

To have output similar to NP_MemberComments: <%LatestComments(,,member)%>

History

  • v0.91
    • Fixed XHTML warning
  • v1.0
    • Performance enhancement
  • v1.1
    • option to add extra <br /> between comment
    • change LatestComments(#,0) to LatestComments(#,actual) to display comment to actual/current blog.... the old code didn’t work for some reason
    • added anchor to comment
  • v1.2
    • e-Musty (krank@krank.hu), 17/07/2004 supportsFeature function was missing, however the code itself has been already based on its support. This function has been added. Now compatible with Nucleus 3.
  • v1.3
    • improve comment tag naming
    • add “...” only when the comment is longer than comment display length (Thanks to JH)
  • v1.4
    • add template formatting
  • v1.5
    • add %l, change %u and %p
  • v1.5a
    • add %P for URL to post
  • v1.6
    • add emoticons support via NP_Smiley
  • v1.7
  • v1.71
    • fix a little typo in the history
    • mod by PiyoPiyoNaku, added compatibility with NP_Alias
  • v1.8
    • adds third skinvar parameter LatestComments(,,member) to have output similar to NP_MemberComments
  • v1.81 - mod by PiyoPiyoNaku, 11-Mar-2007
    • code cleaning regarding compatibility with NP_Alias [Must use the new NP_Alias v1.3 to make the compatibility works]
  • v1.82 - mod by PiyoPiyoNaku, 12-Mar-2007
    • language support for Japanese-utf8
  • v1.83 - mod by PiyoPiyoNaku, 16-Mar-2007
    • maximum number of characters for each name

Plugin review

NP_LatestComments version 1.83 works with Nucleus CMS 3.31 - 2007-10-29 admun

 
latestcomments.txt · Last modified: 2009/07/01 00:07 by ftruscot