Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-03-18 16:42:20
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
how do i make a custom comment-form.
hello,
What i want is a custom form zo all the comments looks like this :
Name comment-time
Comment
I tried it with :
<code>
<tpx:comment_name><tpx:comment_time><br>
<tpx:comment>
</code>
But then nothing appears on the site.
What am i doing wrong.
Roelof
Last edited by roelof (2006-03-18 16:42:38)
Offline
Re: how do i make a custom comment-form.
Hi roelof.
I think the problem is that the tags are not closed correctly and are written wrong
Try
<code>
<txp:comment_name /><txp:comment_time /><br>
<txp:comment />
</code>
edit: corrected typo: it’s not tpx, it’s txp
Last edited by maniqui (2006-03-18 16:54:29)
Offline
#3 2006-03-18 17:24:39
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: how do i make a custom comment-form.
hoi,
When i use your fom i get the following error-message :
tag_error <txp:comment_name/> -> Warning: extract(): First argument should be an array on line 1009
tag_error <txp:comment_name/> -> Warning: extract(): First argument should be an array on line 1009
What’s wrong now ??
Offline
#4 2006-03-18 18:12:44
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: how do i make a custom comment-form.
<txp:comment />
should be <txp:message />
in my opinion.
Offline
#5 2006-03-18 18:24:22
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: how do i make a custom comment-form.
The error-message still exist.
And no comments are displayed.
Roelof
Offline
#6 2006-03-18 18:36:50
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: how do i make a custom comment-form.
Did you change tpx
to txp
?
Offline
Re: how do i make a custom comment-form.
Did you read this FAQ?
Offline
#8 2006-03-18 19:07:09
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: how do i make a custom comment-form.
yep, i read that FAQ.
Els :
I have this form now :
<code>
<txp:comment_time /><br>
<txp:message />
<txp:if_comments_allowed>
<txp:comments_form />
<txp:else />
<p><txp:text item=“comments_closed” /></p>
</txp:if_comments_allowed>
</code>
Offline
#9 2006-03-18 20:39:45
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: how do i make a custom comment-form.
That looks fine to me. Did you give the form type ‘comment’?
Offline
#10 2006-03-18 20:59:24
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: how do i make a custom comment-form.
oke,
I was looking in at the wrong url.
But if i look at the right one, i get the normal comments not the custom form which i refer to at my plugin.
Roelof
Offline
#11 2006-03-18 21:19:51
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re: how do i make a custom comment-form.
Textpatterns comment feature is sitting under a strong safety belt. Comment features are allso turned off by default.
You should go to your article that you would like to allow comments and turn it on under content>articles, if it isn’t.
Allso you should double check, if comments are turned off under Siteprefs>comments.
regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#12 2006-03-18 22:14:05
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: how do i make a custom comment-form.
You’re still using sdr_guestbook, right? This looks like the normal comments are shown, not the guestbook comments. Make sure that the article form for your article ‘Gastenboek’ does not contain <txp:comments />
.
I also think that you should create a separate section for this article. You can set it to use the default page template if you don’t want to create a new page for it. And then on the page you wrap the sdr_guestbook tag in <txp:if_section name="gastenboek"></txp:if_section>
.
Offline