diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2017-06-01 07:37:42 +0900 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2017-06-01 07:37:42 +0900 |
| commit | 9634368b71564292d2a620e6a5e5ab6d588202a0 (patch) | |
| tree | ded36d9492a9af103a216c7edc9b333617a15712 | |
| parent | a5095a6764f9ccc15892040f1e31de6897e1ede1 (diff) | |
Add missing post_control template and configuration values for thread merge functionality
| -rw-r--r-- | inc/config.php | 11 | ||||
| -rw-r--r-- | templates/post/post_controls.html | 3 |
2 files changed, 10 insertions, 4 deletions
diff --git a/inc/config.php b/inc/config.php index a760fdc5..6d6e92f5 100644 --- a/inc/config.php +++ b/inc/config.php @@ -199,7 +199,7 @@ $config['dnsbl'][] = array('tor.dnsbl.sectoor.de', 1); // Replacement for sectoor.de - // $config['dnsbl'][] = 'torexit.dan.me.uk'; + // $config['dnsbl'][] = 'torexit.dan.me.uk'; // http://www.sorbs.net/using.shtml // $config['dnsbl'][] = array('dnsbl.sorbs.net', array(2, 3, 4, 5, 6, 7, 8, 9)); @@ -470,7 +470,7 @@ // Maximum post body length. $config['max_body'] = 1800; // Minimum post body length. - $config['min_body'] = 30; + $config['min_body'] = 0; // Maximum number of post body lines to show on the index page. $config['body_truncate'] = 15; // Maximum number of characters to show on the index page. @@ -1337,6 +1337,7 @@ $config['mod']['link_bumpunlock'] = '[-Sage]'; $config['mod']['link_editpost'] = '[Edit]'; $config['mod']['link_move'] = '[Move]'; + $config['mod']['link_merge'] = '[Merge]'; $config['mod']['link_cycle'] = '[Cycle]'; $config['mod']['link_uncycle'] = '[-Cycle]'; @@ -1497,6 +1498,8 @@ $config['mod']['editpost'] = ADMIN; // "Move" a thread to another board (EXPERIMENTAL; has some known bugs) $config['mod']['move'] = DISABLED; + // "Merge" a thread to same board or another board + $config['mod']['merge'] = MOD; // Bypass "field_disable_*" (forced anonymity, etc.) $config['mod']['bypass_field_disable'] = MOD; // Post bypass unoriginal content check on robot-enabled boards @@ -1851,10 +1854,10 @@ // Allowed HTML tags in ?/edit_pages. $config['allowed_html'] = 'a[href|title],p,br,li,ol,ul,strong,em,u,h2,b,i,tt,div,img[src|alt|title],hr'; - // Enable posting in overboard + //Enable posting from overboards $config['overboard_post_form'] = false; - // Enable auto IP note generation of deleted posts + // Enable auto IP note generation of moderator deleted posts $config['autotagging'] = false; // Enable PDF file thumbnail generation diff --git a/templates/post/post_controls.html b/templates/post/post_controls.html index 7e56edd3..eed76702 100644 --- a/templates/post/post_controls.html +++ b/templates/post/post_controls.html @@ -48,6 +48,9 @@ <a title="{% trans %}Move reply to another board{% endtrans %}" href="?/{{ board.dir }}move_reply/{{ post.id }}">{{ config.mod.link_move }}</a> {% endif %} {% endif %} +{% if mod|hasPermission(config.mod.merge, board.uri) %} + <a title="{% trans %}Merge thread with another thread {% endtrans %}" href="?/{{ board.dir }}merge/{{ post.id }}">{{ config.mod.link_merge }}</a> +{% endif %} {% if mod|hasPermission(config.mod.cycle, board.uri) %} {% if post.cycle %} <a title="{% trans %}Make thread not cycle{% endtrans %}" href="?/{{ secure_link(board.dir ~ 'uncycle/' ~ post.id) }}">{{ config.mod.link_uncycle }}</a> |
