Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2008-06-20 04:15:02
- Sheru
- Member
- From: Kathmandu, Nepal
- Registered: 2007-05-09
- Posts: 96
Re: How do I display comments form right on the same page..
Greetings!
Thank you all for your great help time and again.
I wish to add a note (Note:All comments are moderated- they will appear after being cleared by….) inside comment message box where the user enter their comments.
How could I add this message.. on message box?
Thank you so much for your kind help.
Sheru
Last edited by Sheru (2008-06-20 04:15:50)
Offline
#14 2008-06-20 07:03:19
- Sheru
- Member
- From: Kathmandu, Nepal
- Registered: 2007-05-09
- Posts: 96
Re: How do I display comments form right on the same page..
Warm Greetings!
Thank you so much for your help. Appreciate All for the great help.
It seems solved for now..
Thank you so much.
Sheru
Offline
#15 2008-06-20 07:16:15
- Sheru
- Member
- From: Kathmandu, Nepal
- Registered: 2007-05-09
- Posts: 96
Re: How do I display comments form right on the same page..
Warm Greetings From Sheru, While previewing even if all field are blank displays Date.. but does not enter into db when clicked on Submit button. That’s OK. It validates properly means does not allow to enter message into db if fields are blank. But does not display error message if fields are blank. I want to validate Name field, E-mail field, Web site field and message field of comment form to display error message right there. If fields are blank, while preview, display error message on top of form saying Please Enter Name.. and so on.
How should I check the fields or which tag is to be used for that?
Thank you so much for your help.
Sheru
Last edited by Sheru (2008-06-20 07:17:02)
Offline
Re: How do I display comments form right on the same page..
Bookmark this – you want comments_error.
{Edited to repair link. – Uli}
Last edited by uli (2013-07-18 10:21:55)
Offline
#17 2008-06-20 07:55:20
- Sheru
- Member
- From: Kathmandu, Nepal
- Registered: 2007-05-09
- Posts: 96
Re: How do I display comments form right on the same page..
Warm Greetings, Jim! Thank you a Lot for your great help. Thanks for those two links as well. This will be the best guide for me.
Thanks a lot for your time.
Sheru
Offline
#18 2013-07-18 09:15:59
- anagomes
- New Member
- Registered: 2013-07-16
- Posts: 9
Re: How do I display comments form right on the same page..
Hello all!!!
I ran into the same problem: I wanted my blog page to show all the posts with all the post’s comments. The displaying is correct: each post has its respective comments. The problem is when I try to preview and submit one I get this error:
Textpattern Error: Duplicate entry ‘c0f649c16e02e91b144f1cc23de32412’ for key ‘PRIMARY’ while parsing form “default” on page “smalltalk”
If it can identify the comments from each post shouldn’t it be possible to add comments to a specific post also, even though there are several comment forms in the same page?
(here’s the link: http://smalltalk.subbureau.com/)
Offline
Re: How do I display comments form right on the same page..
anagomes wrote:
If it can identify the comments from each post shouldn’t it be possible to add comments to a specific post also, even though there are several comment forms in the same page?
In short, maybe, but not very cleanly. The current txp antispam method makes that you’ll always get this txp error while comment previewing (at least in test mode) if you have more than one comment form per page. Additionally, you will have multiple elements sharing same id
and name
attributes. Probably, you can hide unrelated forms according to the value of the hidden $_POST['parentid']
, and probably the comment will finally be posted. But you will see it yourself, I have posted a comment on your site. :)
Offline
#20 2013-07-19 11:02:47
- anagomes
- New Member
- Registered: 2013-07-16
- Posts: 9
Re: How do I display comments form right on the same page..
etc wrote
Probably, you can hide unrelated forms according to the value of the hidden $_POST[‘parentid’], and probably the comment will finally be posted.
I can’t get it to work but thank you for that. :)
I’ll try and find another solution.
Last edited by anagomes (2013-07-19 11:03:52)
Offline