Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-09-15 15:07:09

Alweb
Member
Registered: 2010-10-08
Posts: 25

"submit button will have a class of 'disabled' applied"

I just installed the latest textpattern version. But I have a problem with the submit and preview button.

I would like that the visitors can post there comments without previewing. It is a site for senior people, the preview button is not very handly for them…

In the “comment_form” you find this:

<!-- preview and submit buttons (note: submit button will have a class of 'disabled' applied until you have previewed the message at least once) -->
<p><txp:comment_preview /> <txp:comment_submit /></p>

How can I activate the “submit button” without beeing previewed?

Thanks

Offline

#2 2012-09-15 15:25:02

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

Re: "submit button will have a class of 'disabled' applied"

Alweb wrote:

How can I activate the “submit button” without beeing previewed?

Hi:)

you cannot. This has been an ongoing discussion but we all agree that the preview button does wonders against spammers.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2012-09-15 15:55:31

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,356
GitHub

Re: "submit button will have a class of 'disabled' applied"

Hi Alweb.
Perhaps it might be worth your time investigating Disqus instead of the native Textpattern commenting functions.

Offline

#4 2012-09-23 10:55:55

Alweb
Member
Registered: 2010-10-08
Posts: 25

Re: "submit button will have a class of 'disabled' applied"

Tnx for the reactions. For spammers is this a good solutions, but the visitors can get confused beacause of their age i guess…

I have also a small problem. I used:

<txp:recent_articles sort=“LastMod” break=“li” wraptag=“ul” limit=“5” label=”“ section=“name” />

All the links that are listed end without a “/”, but I would like them to end with a slash.

Offline

#5 2012-09-23 11:33:50

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

Re: "submit button will have a class of 'disabled' applied"

Alweb wrote:

All the links that are listed end without a “/”, but I would like them to end with a slash.

This has to do with the semantics of the site structure. The reason they don’t finish with a a slash (/) is because the list consists of individual articles and not sections. For static sites only directories end with a slash. Individual articles end with .htm(l).

In txp sections end with a slash and individual articles end with… Well this depends on the URL schema:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#6 2012-09-23 12:01:11

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

Re: "submit button will have a class of 'disabled' applied"

Alweb wrote:

the visitors can get confused beacause of their age i guess…

The default comments_display form has a tag <txp:text item="press_preview_then_submit" />. This will display the text The following is a preview of what your comment will look like. Please do not forget to scroll down and actually press the submit button!. You can replace the tag with your own text of course, and style it differently so that it will stand out more.

Offline

Board footer

Powered by FluxBB