We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16389
    • 11 Posts
    Hi. I`ve got problem with UserComments snippet- It just don`t add new comment- I have no idea why.
    FormTpl:
    <form method="post" action="[~[*id*]~]">
    <fieldset style="padding:10px">
    <legend>Dodaj Komentarz</legend>
    <input name="[+tagname+]" type="hidden" value="on" />
    <p class="block"><input name="nick" id="nick" type="text" size="20" value="" /><label for="nick">Twój podpis</label></p>
    <p class="block"><input name="website" id="website" type="text" size="20" value="http://" /><label for="website">Twoja strona www</label></p>
    <p class="block"><textarea name="comment" id="comment" rows="4" cols="40"></textarea></p>
    <p class="block"><input name="send" type="submit" value="Wyślij" /></p>
    </fieldset>
    </form>
    <p style="color:red">Czasowo wyłączone</p>
    

    CommentTpl:
    <div>
    <p><span><a href="[+website+]">[+nick+]</a></span><span style="float:right">[+postnumber+]</span></p>
    <p>
    [+comment+]
    </p>
    </div>
    


    Demo here : http://digital-creations.pl/krzyzak2/test_node
      • 7923
      • 4,213 Posts
      Call the snippet uncached, e.g. [!snippet..!] or have the document not cacheable.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 16389
        • 11 Posts
        Still don`t works :/ I`ve tried to make special folder for all comments, and make everyone node as folder and add comments separately for everyone node :/
          • 36805
          • 354 Posts
          Just in case you are using ModX on a WAMP server: It won’t work since it fails to save TV’s for some reason.
            • 16389
            • 11 Posts
            nope, that`s LAMPP. I don`t know why, but sometimes it save my comment (I still don`t know when) , but whats strange- file with user comments is created, example content:
            <!--Comment-Spliter:13--><!--Comment-Spliter:13--><!--Comment-Spliter:13--><!--Comment-Spliter:13-->[[UserComments? &hostid=`13`]]
            :|
              • 32963
              • 1,732 Posts
              Hi,

              How did you call the Snippet? Did you try using the built-in form?
                xWisdom
                www.xwisdomhtml.com
                The fear of the Lord is the beginning of wisdom:
                MODx Co-Founder - Create and do more with less.