We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26024
    • 5 Posts
    Hi!

    Guest posting kinda works with customfields (name, email), the data goes into database. Summary of posts shows name, subject and comment correctly in the frontend (where’s the email?).

    1.
    The problem is that when moderator is editing posts, fields dont’t show that inputted text, only Subject (title) and Comment (content) shows up. Inputted e-mail won’t show up in the frontend either, is this what it’s supposed to be? Now when things are like this, the moderator doesn’t know what the guest wrote in those custom fields without checking the database.

    2.
    When receiving notification email, [+comment.custom.name+] or [+comment.custom.email+] does not show that information what was inputted in those fields but only what’s been inputted in Subject and Comment.

    3.
    Same problem, as in here. When moderating (publishing/unpublishing) posts, parser gives this:
    Error: 	mysql_real_escape_string() expects parameter 1 to be string, array given	 
    Error type/ Nr.: Warning - 2	 
    File: 	/*/*/*/public_html/temp/manager/includes/extenders/dbapi.mysql.class.inc.php	 
    Line: 116	 
    Line 116 source: $s = mysql_real_escape_string($s, $this->conn);
    

    Without those customfields this doesn’t happen. I found out that by removing some code in chunk.form.inc.html:
    <label for="name">Name:<br />
    <input tabindex="[+jot.seed:math=`?+1`+]" name="name" type="text" size="40" value="[+form.field.custom.name:esc+]" id="name" />
    </label>
    <label for="email">Email:<br />
    <input tabindex="[+jot.seed:math=`?+2`+]" name="email" type="text" size="40" value="[+form.field.custom.email:esc+]" id="email" />
    </label>
    

    I have ModX 0.9.5/Jot 1.1.0 and i call it like this:
    [[Jot? &moderated=`1` &pagination=`5` &captcha=`1` &canmoderate=`Site Admins` &customfields=`name,email` &output=`0` &placeholders=`1` &postdelay=`60` &subjectModerate=`New post in your guestbook`]]
    

    Any ideas? Thanks!
      • 4195
      • 398 Posts
      this is a bug... wrong code slipped into my release.. i will release a newer version asap
        Armand Pondman
        MODx Coding Team
        :: Jot :: PHx
        • 26024
        • 5 Posts
        Ok, thanks!