We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3767
    • 40 Posts
    I am trying to get the amount of comments to show on the main page of my blog where the summaries are, right before the author link. I used this code from the Wiki

    <a  href="[~[+id+]~]#commentsAnchor">
    	Comments ([!Jot? &docid=`[+id+]` &action=`count-comments`!])</a>


    But I am getting a link that says "Comments ([!Jot? &docid=`[+id+]` &action=`count-comments`!])"

    Is the syntax messed up or is there another problem? I loked at Ditto parameters and I dont see an option for &action, let alone any commands. Any ideas?
      • 3767
      • 40 Posts
      Never mind, I always get it after i post sad You can close this.

      For reference, you have to use the [[ ]] brackets, instead of [! !] brackets, cause Ditto has to be cached or something
        • 3767
        • 40 Posts
        Might as well ask this question so its not a wasted post. When i post a blog, the time is 2 hours behind where I really am, even though its offset in the Manager. Do i need to modify the time code somehow?
          • 18397
          • 3,250 Posts
          Now that is a funny coincidence... about 1 hour before you posted that I noticed the same thing.
            • 3767
            • 40 Posts
            Quote from: Mark at Feb 08, 2007, 03:07 PM

            Now that is a funny coincidence... about 1 hour before you posted that I noticed the same thing.

            So is there no fix or work around?
              • 18397
              • 3,250 Posts
              Yes,

              Replace this:

              strftime($dateFormat, $resource[$dateSource]);
              


              With this:

              strftime($dateFormat, intval($resource[$dateSource]) + $modx->config["server_offset_time"]);