From 78998781990f7bd772681708cd6f8eebcc34bd16 Mon Sep 17 00:00:00 2001 From: Kruzya Date: Fri, 15 Oct 2021 00:58:02 +0400 Subject: [PATCH] Add checkbox to quick thread creation --- _output/template_modifications/_metadata.json | 5 ++++- ...d_forum_rules_accept_forum_post_qthread_accept.json | 9 +++++++++ ...od_forum_rules_accept_forum_post_thread_accept.json | 2 +- _output/templates/_metadata.json | 7 +++++++ .../public/hlmod_forum_rules_accept_macros.html | 10 ++++++++++ addon.json | 4 ++-- 6 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 _output/template_modifications/public/hlmod_forum_rules_accept_forum_post_qthread_accept.json create mode 100644 _output/templates/_metadata.json create mode 100644 _output/templates/public/hlmod_forum_rules_accept_macros.html diff --git a/_output/template_modifications/_metadata.json b/_output/template_modifications/_metadata.json index ad15253..a268c67 100644 --- a/_output/template_modifications/_metadata.json +++ b/_output/template_modifications/_metadata.json @@ -2,7 +2,10 @@ "admin/hlmod_forum_rules_accept_forum_edit_row.json": { "hash": "a54324f77cab384754110160be865fbf" }, + "public/hlmod_forum_rules_accept_forum_post_qthread_accept.json": { + "hash": "25468dd593c7f83f6cd3e001c9bcf089" + }, "public/hlmod_forum_rules_accept_forum_post_thread_accept.json": { - "hash": "1ef6d0c0408ec4f5e0462339463e088e" + "hash": "2ef277dd547d19b581d810d7c367bf0e" } } \ No newline at end of file diff --git a/_output/template_modifications/public/hlmod_forum_rules_accept_forum_post_qthread_accept.json b/_output/template_modifications/public/hlmod_forum_rules_accept_forum_post_qthread_accept.json new file mode 100644 index 0000000..8332a44 --- /dev/null +++ b/_output/template_modifications/public/hlmod_forum_rules_accept_forum_post_qthread_accept.json @@ -0,0 +1,9 @@ +{ + "template": "forum_post_quick_thread", + "description": "Adds the row for accepting forum rules", + "execution_order": 25, + "enabled": true, + "action": "str_replace", + "find": "", + "replace": "$0\n\n" +} \ No newline at end of file diff --git a/_output/template_modifications/public/hlmod_forum_rules_accept_forum_post_thread_accept.json b/_output/template_modifications/public/hlmod_forum_rules_accept_forum_post_thread_accept.json index f956480..afcd2d9 100644 --- a/_output/template_modifications/public/hlmod_forum_rules_accept_forum_post_thread_accept.json +++ b/_output/template_modifications/public/hlmod_forum_rules_accept_forum_post_thread_accept.json @@ -5,5 +5,5 @@ "enabled": true, "action": "str_replace", "find": "", - "replace": "$0\n\n\t\n\t\t\n\t\t\t{{ phrase('hlmod_forum_rules_accept.i_read_and_accept_forum_rules', {'url': $forum.hlmod_rules_url}) }}\n\t\t\n\t\n" + "replace": "$0\n\n" } \ No newline at end of file diff --git a/_output/templates/_metadata.json b/_output/templates/_metadata.json new file mode 100644 index 0000000..e7dd15e --- /dev/null +++ b/_output/templates/_metadata.json @@ -0,0 +1,7 @@ +{ + "public/hlmod_forum_rules_accept_macros.html": { + "version_id": 1000170, + "version_string": "1.0.1", + "hash": "ab0db537fe5313ae97e6327c87dca7c3" + } +} \ No newline at end of file diff --git a/_output/templates/public/hlmod_forum_rules_accept_macros.html b/_output/templates/public/hlmod_forum_rules_accept_macros.html new file mode 100644 index 0000000..0fab00f --- /dev/null +++ b/_output/templates/public/hlmod_forum_rules_accept_macros.html @@ -0,0 +1,10 @@ + + + + + {{ phrase('hlmod_forum_rules_accept.i_read_and_accept_forum_rules', {'url': $forum.hlmod_rules_url}) }} + + + + \ No newline at end of file diff --git a/addon.json b/addon.json index cfe9d84..2741c0c 100644 --- a/addon.json +++ b/addon.json @@ -2,8 +2,8 @@ "legacy_addon_id": "", "title": "[HLModerators] Node Rules Accept", "description": "Adds a checkbox \"I read and accept rules\" in thread creation interface", - "version_id": 1000070, - "version_string": "1.0.0", + "version_id": 1000170, + "version_string": "1.0.1", "dev": "HLModerators", "dev_url": "https://hlmod.ru/?utm_source=xenforo_acp&utm_campaign=node_rules_accept", "faq_url": "",