Comments

Config setup

To create a comment form (after having already installed and set up PmForm) add the following to your config file:

$PmForm['comments'] = 'saveto={$FullName} form=#commentform fmt=#talkpost';

Templates

If you do not already have a Site/PmFormTemplates page you can copy the text from the page on this site here and paste it into a new Site/PmFormTemplates or a Site/LocalTemplates on your site.

  • Note, expect the PmFormTemplates page to get overwritten in future updates. If you want to modify the templates and keep your changes after an update, use your Site/LocalTemplates page.
  • The templates that you will need for the comments form are called:
    • #commentform and
    • #talkpost

Comment directives

Add the following directive to the page where you want your comment posts to appear:

(:pmform comments:)

Placement

See FmtDirectives for (:template default where=...:) if you need to save the text to a page different from the one where the (:pmform ...:) markup is placed.

The following only works when the (:pmform ...:) markup is in the same page where the submitted form is saved.

To control the placement of comments, use the "where" argument, for example:

  • put new comments at top of a page (newer comments appear before older ones)
      (:pmform comments where=top:) 
  • put new comments immediately below the (:pmform:) directive (newer comments appear before older ones)
      (:pmform comments where=below:) 
  • put new comments at the above the (:pmform:) directive (newer comments appear after older ones)
      (:pmform comments where=above:) 
  • put new comments at the bottom of the page (newer comments appear after older ones)
      (:pmform comments where=bottom:) 

GDPR Comment Forms

See GDPR Comments for an example.


Comments

Post a comment:

Name:
Comments:

Posted by Virtual Local Numbers on October 27, 2022, at 02:27 AM

I can recommend to visit to you a site on which there are many articles on this question.

Posted by Virtual Local Numbers on October 26, 2022, at 11:40 PM

Excuse for that I interfere … To me this situation is familiar. It is possible to discuss. Write here or in PM.

Posted by Pm on May 18, 2007, at 08:10 AM

That's very interesting.

Posted by Pm on May 18, 2007, at 08:10 AM

I agree with Pm.

Posted by Blues on May 18, 2007, at 09:58 AM

i'll try it! eheh!

Posted by Kathryn Andersen on May 19, 2007, at 04:52 PM

Really? Cool!

 0: 00.00 00.00 config start
 1: 00.01 config end
 2: 00.11 MarkupToHTML begin
 3: 00.14 MarkupToHTML end
 4: 00.14 MarkupToHTML begin
 5: 00.14 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 6: 00.15 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 7: 00.16 MarkupToHTML end
 8: 00.16 MarkupToHTML begin
 9: 00.16 MarkupToHTML end
10: 00.16 now