From 5157b6176344c19def9c2e12c5b8a56ec49ce919 Mon Sep 17 00:00:00 2001 From: Yuri Salimovskiy Date: Tue, 4 Apr 2023 13:36:54 +0300 Subject: [PATCH 1/3] better example of comment form Closes https://github.com/ExpressionEngine/ExpressionEngine/issues/2415 --- docs/comment/form.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/comment/form.md b/docs/comment/form.md index 38d0618eb..c7f0228b9 100755 --- a/docs/comment/form.md +++ b/docs/comment/form.md @@ -35,6 +35,10 @@ The comment submission form is created very similar to a standard web form, only + + {!-- required to prevent EE from outputting form if commenting is disabled or expired --} + {if comments_disabled}{/if} + {if comments_expired}{/if} {/exp:comment:form} From 1b3eb8e1c8df2b79a5c3f8d1b6a0b20298579b01 Mon Sep 17 00:00:00 2001 From: Tom Jaeger Date: Tue, 4 Apr 2023 17:14:24 -0400 Subject: [PATCH 2/3] Update form.md Updated message to end user. --- docs/comment/form.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/comment/form.md b/docs/comment/form.md index c7f0228b9..49f2a40d2 100755 --- a/docs/comment/form.md +++ b/docs/comment/form.md @@ -37,8 +37,8 @@ The comment submission form is created very similar to a standard web form, only {!-- required to prevent EE from outputting form if commenting is disabled or expired --} - {if comments_disabled}{/if} - {if comments_expired}{/if} + {if comments_disabled}Comments on the entry are currently disabled.{/if} + {if comments_expired}Commenting on the entry has expired.{/if} {/exp:comment:form} From 935a7f17ea641ce5148926f86cd50d7a6050a148 Mon Sep 17 00:00:00 2001 From: Tom Jaeger Date: Tue, 4 Apr 2023 17:15:19 -0400 Subject: [PATCH 3/3] Update form.md few more changes --- docs/comment/form.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/comment/form.md b/docs/comment/form.md index 49f2a40d2..6c0a837f3 100755 --- a/docs/comment/form.md +++ b/docs/comment/form.md @@ -37,8 +37,8 @@ The comment submission form is created very similar to a standard web form, only {!-- required to prevent EE from outputting form if commenting is disabled or expired --} - {if comments_disabled}Comments on the entry are currently disabled.{/if} - {if comments_expired}Commenting on the entry has expired.{/if} + {if comments_disabled}Comments on this entry are currently disabled.{/if} + {if comments_expired}Commenting on this entry has expired.{/if} {/exp:comment:form}