Log in | Register | Lost password

Bottom
Problem with ezcommentsCount-Plugin and EZComments 1.3
  • Posted: 16.10.2005, 16:17
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Hi!

    until now i checked for EZComments attached to my publications like this:

    Code

    <!--[pagesetter_ezcommentsCount assign="ezCount"]-->

    <!--[if $ezCount =="0"]-->

    <!--[elseif $ezCount =="1"]-->

    &nbsp;<!--[pnimg src="comment.gif" alt=""]-->&nbsp;1 Kommentar

    <!--[else]-->

    <!--[pnimg src="comment.gif" alt=""]-->&nbsp;

    <!--[$ezCount]--> Kommentare

    <!--[/if]-->


    But now that i updated to EZComments 1.3 the plugin always says 5 comments no matter if there's no or any other number of comments.

    Cany anybody confirm this problem?
  • Posted: 19.10.2005, 21:48
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    okay... mark and jmvedrine found a nice little solution. (see this thread)
    in the code i posted above you just have to delete the first line and insert the following lines instead:

    Code

    <!--[capture name=objectid assign=objectid]--><!--[$core.tid]-->_<!--[$core.pid]--><!--[/capture]-->

    <!--[pnmodapifunc modname=EZComments func=countitems mod=Pagesetter objectid=$objectid status=0 assign=ezCount]-->




    edited by: Andreas, Oct 19, 2005 - 10:49 PM

Template courtesy of Designs By Darren.