We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19033
    • 892 Posts
    Dear creator, and all.
    I thank very much your work, jot is very useful.

    I am Japanese user. We use 2byte character when we post a entry with Jot.
    So I have a problem with Jot 1.0.1.

    I downloaded newest version from the following.
    http://modxcms.com/Jot-998.html
    I use it with MODx0.9.5.

    I created web-user.
    So I logined with this account.

    test1:
    1. I input "Subject:" and "Comment:" with Japanese. Japanese words are 2byte font.
    2. I click "Post Comment".
    3. Then, I get a meessage:You forgot to enter a comment.
    I input "comment", surely.

    test2:
    1. I input "Subject:" and "Comment:"
    2. Then, I input 2byte font AND single byte font on "comment".
    I am successful. My comment was acceptted.

    But I found demo site:
    Jot Demo Site: http://projects.zerobarrier.nl/modx/
    I can post only 2byte characters on comment here.

    Why this site be able to post only 2byte characters? And why my site be NOT able to post only 2byte characters?

    Does the following snippet differ from a snippet of demo site?
    http://modxcms.com/Jot-998.html

    Please tell me and help me..
    Sincerely yours,
      • 19033
      • 892 Posts
      I added my infomation.

      - MODx version 0.9.5
      - Webserver name and version SAKURA Internet (Japanese company)
      - PHP version 4.4.4
      - Jot call you are using (ea. [[Jot? subscribe=`1`]])
      Yes, I wrote same the call with demo site.
      [[Jot?subscribe=`1` &pagination=`10` &badwords=`microsoft` &canmoderate=`Jot Moderators` &trusted=`Jot Trusted Users`]]

      - Action taken when problem occurs
      I wrote it in latest post.
        • 19033
        • 892 Posts
        Dear all,

        I heard to Japanese creator about this problem.
        (I can not program).

        He rewrote the following, in line 788 of jot.class.inc.php

        case "required": $re = "~[.]~s";break;

        >>
        case "required": $re = "~.+~s";break;


        We could avoid the problem for the time being.
        Japanese user were troubled by the same problem.
        By Solution of this problem, we will feel "Jot" more familiar and useful!

        Thank you.
          • 4195
          • 398 Posts
          The problem is indeed in the regular expression used for validating the input.
          If i remember correctly (it has been a while since i touched my code) i already fixed this in my own development code.
          The snippet on the demo site is sometimes used for final testing so it could be it has a slightly newer version (that was unreleased)
            Armand Pondman
            MODx Coding Team
            :: Jot :: PHx
            • 19033
            • 892 Posts
            Dear bS,
            Thank you for answering my question!

            And I am glad because you said:
            Quote from: bS at Feb 06, 2007, 10:36 AM

            If i remember correctly (it has been a while since i touched my code) i already fixed this in my own development code.
            The snippet on the demo site is sometimes used for final testing so it could be it has a slightly newer version (that was unreleased)

            I hope next version of "Jot"!
            Thank you.