We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 471
    • 13 Posts
    Quote from: Rachael at Aug 06, 2007, 06:37 AM

    I’m using Jot 1.1.2 and MODx 0.96 and needed to do this as well.
    The following changes allow &docid=`*` to work, without messing anything else up.
    In assets/snippets/jot/jot.class.inc.php, replace
    $this->config["docid"] = !is_null($this->Get("docid")) ? intval($this->Get("docid")):$modx->documentIdentifier;
    with
    ...

    I’m using Jot 1.1.4 and MODx 1.0.2 rev 6066.
    database and MODx codepage is UTF8, language russian-UTF.
    When sujjested patch were applied, I’ve got <?> chars (black diamond with
    question mark) at the end of some comments. Seems like it doesn’t
    use right codepage somewhere on the way of last comments list creation.

    Any ideas where to digg for a fix?
      from hell with love
      • 5532
      • 251 Posts
      I’m using Jot 1.1.4 and MODx 1.0.2 rev 6066.
      database and MODx codepage is UTF8, language russian-UTF.
      When sujjested patch were applied, I’ve got <?> chars (black diamond with
      question mark) at the end of some comments. Seems like it doesn’t
      use right codepage somewhere on the way of last comments list creation.

      Any ideas where to digg for a fix?

      @adgroup
      Did you find a fix for your problem? I’m getting a Modx Parse error:
      [« MODx Parse Error »
      
      MODx encountered the following error while attempting to parse the requested resource:
      « Execution of a query to the database failed - Table 'ssb.modx_site_content' doesn't exist »
            SQL: select a.*, b.published AS docpublished from `ssb`.`ssb_jot_content` as a left join modx_site_content AS b ON a.uparent = b.id where tagid = '' and mode = '0' and b.published='1' and a.published >= 0 order by createdon desc limit 0, 10 
            [Copy SQL to ClipBoard]


      Stupid question: is this all necessary? Surely there’s a way to display the last 5 comments for a site without hacking the plugin.

      Any help would be most excellent!

      Cheers
        • 5532
        • 251 Posts
        After trying all 3 modifications, only Rachel’s mod (at the start) worked for me...

        Cheers
          • 5532
          • 251 Posts
          Because Aleksander shared a fantastic little snippet, there’s now a painless way to display comments (plus a few extras) for an entire site.

          Here’s the post:
          http://modxcms.com/forums/index.php/topic,36202.msg267590.html#msg267590

          Hope that’s of some use to someone, it sure was to me...

          Cheers

          Ben
          • The Patch of lossendae for Jot 1.1.4 works fine here. Could this one get into the next Evo Update.