Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2006-03-18 16:53:44

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

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

#7 2006-03-18 18:37:07

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: how do i make a custom comment-form.

Did you read this FAQ?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

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

#13 2006-03-19 00:03:17

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: how do i make a custom comment-form.

Els wrote:

That looks fine to me. Did you give the form type ‘comment’?

hi Els. Form type doesnt affect the functionality of a form. It’s just for categorization and for the tags generator.

roelof wrote:

But if i look at the right one, i get the normal comments not the custom form which i refer to at my plugin.

did you turn off auto-append comments in the site preferences?.
I insist with the FAQ I’ve linked: it takes some hours to make your head around how to use all the comments forms and tags.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#14 2006-03-19 13:02:51

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: how do i make a custom comment-form.

maniqui wrote:

Form type doesnt affect the functionality of a form. It’s just for categorization and for the tags generator.

Oh, I didn’t know that, thanks :)

Offline

#15 2006-03-19 18:04:43

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: how do i make a custom comment-form.

One last two questions.
The trick was to make a seperate section.
Now the custom form works.

How do i change the underlined name in not underlind.
Now it is a link to a homepage. That’s not what i want.

How to make the dates in Dutch.
All the dates are in englisch form and the mean language of TPX and the site are Dutch ??

Roelof

Offline

Board footer

Powered by FluxBB