Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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