Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-01 02:50:34

enjoy4fun
New Member
Registered: 2009-01-01
Posts: 3
Website

[Close]Add a comment preview switch?

at first,my english is so poor that i can’t write more,sorry!

how about add a Variable (example: preview_sw )in comment.php.
  1. preview_sw=true —> change nothing.
  2. preview_sw=false —> disable the comment preview.

Why?

  1. As we know there are many anti-spam plugins to do the same thing as the comment preview,I believe that these plugins can protect our comments very well.
  2. Some of the people away forget to click the submit bottom.
  3. anti-spam plugins can change the preview_sw Variable,they can disable the comment preview in their plugin in a easy way.

and so on…

Because we don’t want to add this switch in the admin interface.(textpattern help)

add a easy way in hacking the comment preview at comment.php may help people just like me that not good at php.

BTW:
Indeed,I just want a perfect hack about the comment.php.(I not good at php)
Someone help me to disable the comment preview? Thank very much.
never write so much in english.(sorry again)

Last edited by enjoy4fun (2009-01-02 06:16:37)


</war>

Do one thing and do it well,but i can’t find that one.

Offline

#2 2009-01-01 08:01:49

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

Re: [Close]Add a comment preview switch?

We had various requests regarding turning comment preview into an optional function but we can not see that happening.

  1. the majority of the txp community appreciate the spam shield provided by comment preview as it totally blocks automated spam.
  2. comment preview is so much integrated in txp’s code, a major rewrite is needed for possible cancellation of that behaviour.
  3. there’s a plugin which might do what you are looking for.

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 2009-01-01 12:18:40

enjoy4fun
New Member
Registered: 2009-01-01
Posts: 3
Website

Re: [Close]Add a comment preview switch?

Thank you for your explication and your time.

2.comment preview is so much integrated in txp’s code, a major rewrite is needed for possible cancellation of that behaviour.

I haven’t known about it in the past.
I know about the code rewrite,it’s a hard work.

BTW:Thanks 4 the plugin.

Last edited by enjoy4fun (2009-01-02 06:16:00)


</war>

Do one thing and do it well,but i can’t find that one.

Offline

Board footer

Powered by FluxBB