We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26435
    • 1,193 Posts
    I am speechlessly amazed at the complexity and customization of this snippet with PHx!

    I don’t understand how to reverse the comment count, to go from 1-10 instead of 10-1.
    here is the comment count part of my display chunk:
    <div class="jot-postnumber">[+comment.postnumber:math=`[+jot.nav.total+]+?`+]</div>


    Is it something simple that I am missing?

    thanks bS

    -sD-
      Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
      All of the above... in no specific order.


      I send pointless little messages
      • 4195
      • 398 Posts
      comment count is still not working correctly... i’m working on it as we speak...
      The current "logic" is this.

      1. comment.postnumber is actually (Comment Total - (counter value + offset value) and in most cases a negative number
      2. jot.nav.total is total number of comments



        Armand Pondman
        MODx Coding Team
        :: Jot :: PHx
        • 26435
        • 1,193 Posts
        Ok, thanks for the update. I will keep an eye on this forum.

        -sD-
          Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
          All of the above... in no specific order.


          I send pointless little messages