RenderNumberOfComments

%REVINFO{ " $date - $hour:$min " rev=" IF{ "%NATMAXREV%!=%CURREV%" then="%CURREV%" }: Syntax error in '%NATMAXREV%!=%CURREV%' at '%NATMAXREV%!=%CURREV%' " topic="Applications/BlogApp.RenderNumberOfComments" }% | Version 1 |

Documentation

Parameters
  • THETOPIC to display the counts for
  • COMMENTSYSTEM

Implementation

%STARTINCLUDE%%DBCALL{
   "Applications.BlogApp.RenderNumberOfComments"
   section="%COMMENTSYSTEM{default="metacomment"}%" 
   THETOPIC="%THETOPIC{default="%BASEWEB%.%BASETOPIC%"}%"
   warn="off"
}%%STOPINCLUDE%

metacomment

%STARTSECTION{"metacomment"}%%METACOMMENTS{
   topic="%THETOPIC%"
   _state="approved"
   format="$count" 
   limit="1"
   singular="1" 
   plural="$count"
}%%ENDSECTION{"metacomment"}%

disqus

%STARTSECTION{"disqus"}%%DISQUS_COUNT{"%THETOPIC%"}%%ENDSECTION{"disqus"}%

Test

Calls to 'RenderNumberOfComments'

Copyright

© 2005-2019 http://michaeldaumconsulting.com

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback