Differences
This shows you the differences between the selected revision and the current version of the page.
punbb13:extensions:pun_stop_bots 2009/11/26 04:54 | punbb13:extensions:pun_stop_bots 2020/02/06 11:04 current | ||
---|---|---|---|
Line 2: | Line 2: | ||
[[punbb13:extensions#Official extensions|PunBB 1.3 official extension]] | [[punbb13:extensions#Official extensions|PunBB 1.3 official extension]] | ||
* Status: **stable** | * Status: **stable** | ||
- | * Current version: **[[http://punbb.informer.com/extensions/pun_stop_bots/pun_stop_bots.zip|0.1]]** | + | * Current version: **[[https://punbb.informer.com/extensions/pun_stop_bots/pun_stop_bots.zip|0.1]]** |
===== General idea ===== | ===== General idea ===== | ||
- | The extension will ask some questions to prevent bot registration and posting. | + | The extension will prompt some questions to prevent bots from registering and posting. |
===== Specification ===== | ===== Specification ===== | ||
==== pun_stop_bots 0.1 ==== | ==== pun_stop_bots 0.1 ==== | ||
=== General === | === General === | ||
- | * Ask some question at the last stage of registration process | + | * Asks a question at the last stage of registration; |
- | * Ask some question, when user create new topics or posts. For registered user special cookie is set for 2 weeks, which allows to post without answering questions | + | * Asks a question when a user creates new topics or posts. For registered users, a special cookie is set for 2 weeks which allows them to post without answering questions; |
- | * For storing questions and answers Forum's cache is used. | + | * Forum's cache is used for storing questions and answers. |
=== Database === | === Database === | ||
* New table **pun_stop_bots_questions** | * New table **pun_stop_bots_questions** | ||
^ Field ^ Type ^ Default ^ Description^ | ^ Field ^ Type ^ Default ^ Description^ | ||
- | | id | INT(10) | | Auto-increment question ID. | | + | | id | INT(10) | | Auto-incrementing question ID. | |
- | | question | TEXT | | The question. | | + | | question | TEXT | | Question. | |
| answers | TEXT | | The answers, separated with commas. | | | answers | TEXT | | The answers, separated with commas. | | ||
Line 24: | Line 24: | ||
^ Field ^ Type ^ Default ^ Description^ | ^ Field ^ Type ^ Default ^ Description^ | ||
- | | pun_stop_bots_question_id | INT(10) | | Question id, which was asked user. The field is used for cookie validation.| | + | | pun_stop_bots_question_id | INT(10) | | ID of the question the user is asked. This field is used for cookie validation.| |
* Additional fields in **online** table | * Additional fields in **online** table | ||
^ Field ^ Type ^ Default ^ Description^ | ^ Field ^ Type ^ Default ^ Description^ | ||
- | | pun_stop_bots_question_id | INT(10) | | Question id, which was asked user. The field is used for comparing answers, when user want to register, and for comparing answers of guests. | | + | | pun_stop_bots_question_id | INT(10) | | ID of the question the user is asked. This field is used for comparing answers when the user wants to register, and for comparing answers of guests. | |
=== Question cache === | === Question cache === | ||
- | * Stored in <FORUM_ROO>cahce/cache_pun_stop_bots.php | + | * Stored in <FORUM_ROOT>cahce/cache_pun_stop_bots.php |
* Structure | * Structure | ||
- | * cached - time of cache creating | + | * cached - time of cache creation; |
* associative array with question and answers. | * associative array with question and answers. | ||
=== Interface === | === Interface === | ||
- | * Administration stop bots questions page | + | * Stop bots questions administration page |
- | * Fields for adding new question and answers | + | * Settings -> Stop bots questions; |
- | * The list with existing questions and answers, user can update or remove the question | + | * Fields for adding new questions and answers; |
- | * There are can be several answers on one question. The answers should be separated with commas. | + | * A list with existing questions and answers, users can update or remove questions; |
+ | * There can be several answers to a question. The answers should be separated with commas. | ||
* Question page | * Question page | ||
- | * At this page all POST-parameters, which was send to forum, are stored in form hidden fields | + | * All the POST-parameters that were sent to the forum are stored in form of hidden fields on this page; |
- | * Field for answer to question. Answer comparison is case-insensitive. | + | * A field for answers to a question. Answer comparison is case-insensitive. |
+ | |||
+ | ===== Links ===== | ||
+ | * [[https://punbb.informer.com/forums/topic/22579/extension-release-punstopbots/|Discussion]] | ||
+ | * [[https://punbb.informer.com/svn/additions/punbb-1.3/extensions/pun_stop_bots/|SVN]] | ||
+ | |||
+ | ===== Screenshots ===== | ||
+ | === Stop bots questions administration page === | ||
+ | {{:punbb13:extensions:pun_stop_bots_admin.png|}} | ||
+ | === Question page === | ||
+ | {{:punbb13:extensions:pun_stop_bots_question_page.png|}} |