Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-03 15:29:46

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

Removing commment preview function

No doubt this question has been asked many times but I couldn’t find anything in the forums and the 2 mods available have been archived.

Preview feature is useful, no doubt. But I would like to test if I get many more comments if it is disabled. I would rather moderate / eliminate spam if this means getting more comments.

Cheers,

Loz

Offline

#2 2008-02-03 18:15:27

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

Re: Removing commment preview function

lozmatic wrote:

No doubt this question has been asked many times…

You said it:) FAQ

Last edited by colak (2008-02-03 18:15:51)


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 2008-02-03 18:24:25

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Removing commment preview function

Some discussion about the issue

As we can see, it can easily break other things but it’s possible. But consider that if you remove preview, it will remove all comment spam features from Textpattern – so basically comment.php must be rebuild. You could change preview process to false there, but then you will get intensive spam – in other words, every spam bot will be able to post the form.

With active site it means a lot of spam, maybe even 100+ messages in a half hour. And when big fish finds the site… darn then the hell is released :(

Cheers!

Last edited by Gocom (2008-02-03 18:26:26)

Offline

#4 2008-02-04 12:29:59

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

Re: Removing commment preview function

OK, it’s not worth the hassle.

I do hope tha future vesions will give users the option to turn it on and off. 1 comment post might be worth deletion of 100 spam ones.

What would be useful too would be to be able to position the preview comment. When someone submits to preview he/she can be re-directed to a point on the page where he/she can see both the preview text as well as the submit button (if the comment isn’t too long, of course). This can be done by placing <a name=”#cpreview”></a> just above where the preview comment is outputted. This is a hack, isn’t it?

Offline

#5 2008-02-04 13:52:09

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Removing commment preview function

If I understand what you want correctly you can do this in the “comments_display” form with a bit of code similar to:-

<txp:if_comments_preview>
<txp:comments_preview form="comments_preview" />
<txp:comments_form />
<txp:else />

which would place the preview immediately above the form so, as you say, as long as the comment isn’t too long. Or you could place the preview below the form but I’m not sure that would look very good.

Last edited by thebombsite (2008-02-04 13:53:16)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2008-02-04 14:05:52

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

Re: Removing commment preview function

I tried <txp:comments_preview /> but it returned the preview button.

I didn’t know one could refer to a form. I’ll try that :)

Offline

Board footer

Powered by FluxBB