Redistribute settings between the Options and Permissions pages

The Permissions page will later be replaced with Parser settings
This commit is contained in:
Visman 2020-09-06 18:40:50 +07:00
parent e5f2d085f1
commit b3a94ef06f
6 changed files with 153 additions and 153 deletions

View file

@ -45,14 +45,10 @@ class Options extends Admin
'o_redirect_delay' => 'required|integer|min:0|max:99999',
'o_show_user_info' => 'required|integer|in:0,1',
'o_show_post_count' => 'required|integer|in:0,1',
'o_smilies' => 'required|integer|in:0,1',
'o_smilies_sig' => 'required|integer|in:0,1',
'o_make_links' => 'required|integer|in:0,1',
'o_topic_review' => 'required|integer|min:0|max:50',
'o_disp_topics_default' => 'required|integer|min:10|max:50',
'o_disp_posts_default' => 'required|integer|min:10|max:50',
'o_disp_users' => 'required|integer|min:10|max:50',
'o_quote_depth' => 'required|integer|min:0|max:9',
'o_quickpost' => 'required|integer|in:0,1',
'o_users_online' => 'required|integer|in:0,1',
'o_show_dot' => 'required|integer|in:0,1',
@ -87,6 +83,10 @@ class Options extends Admin
'o_default_email_setting' => 'required|integer|in:0,1,2',
'o_announcement' => 'required|integer|in:0,1|check_empty:o_announcement_message',
'o_announcement_message' => 'string:trim|max:65000 bytes',
'p_message_all_caps' => 'required|integer|in:0,1',
'p_subject_all_caps' => 'required|integer|in:0,1',
'p_force_guest_email' => 'required|integer|in:0,1',
'p_sig_all_caps' => 'required|integer|in:0,1',
])->addAliases([
])->addArguments([
])->addMessages([
@ -345,27 +345,6 @@ class Options extends Admin
'caption' => __('Post count label'),
'info' => __('Post count help'),
],
'o_smilies' => [
'type' => 'radio',
'value' => $config->o_smilies,
'values' => $yn,
'caption' => __('Smilies label'),
'info' => __('Smilies help'),
],
'o_smilies_sig' => [
'type' => 'radio',
'value' => $config->o_smilies_sig,
'values' => $yn,
'caption' => __('Smilies sigs label'),
'info' => __('Smilies sigs help'),
],
'o_make_links' => [
'type' => 'radio',
'value' => $config->o_make_links,
'values' => $yn,
'caption' => __('Clickable links label'),
'info' => __('Clickable links help'),
],
'o_disp_topics_default' => [
'type' => 'number',
'min' => 10,
@ -398,13 +377,33 @@ class Options extends Admin
'caption' => __('Topic review label'),
'info' => __('Topic review help'),
],
'o_quote_depth' => [
'type' => 'number',
'min' => 0,
'max' => 9,
'value' => $config->o_quote_depth,
'caption' => __('Quote depth label'),
'info' => __('Quote depth help'),
'p_message_all_caps' => [
'type' => 'radio',
'value' => $config->p_message_all_caps,
'values' => $yn,
'caption' => __('All caps message label'),
'info' => __('All caps message help'),
],
'p_subject_all_caps' => [
'type' => 'radio',
'value' => $config->p_subject_all_caps,
'values' => $yn,
'caption' => __('All caps subject label'),
'info' => __('All caps subject help'),
],
'p_sig_all_caps' => [
'type' => 'radio',
'value' => $config->p_sig_all_caps,
'values' => $yn,
'caption' => __('All caps sigs label'),
'info' => __('All caps sigs help'),
],
'p_force_guest_email' => [
'type' => 'radio',
'value' => $config->p_force_guest_email,
'values' => $yn,
'caption' => __('Require e-mail label'),
'info' => __('Require e-mail help'),
],
],
];

View file

@ -32,12 +32,12 @@ class Permissions extends Admin
'token' => 'token:AdminPermissions',
'p_message_bbcode' => 'required|integer|in:0,1',
'p_message_img_tag' => 'required|integer|in:0,1',
'p_message_all_caps' => 'required|integer|in:0,1',
'p_subject_all_caps' => 'required|integer|in:0,1',
'p_force_guest_email' => 'required|integer|in:0,1',
'p_sig_bbcode' => 'required|integer|in:0,1',
'p_sig_img_tag' => 'required|integer|in:0,1',
'p_sig_all_caps' => 'required|integer|in:0,1',
'o_smilies' => 'required|integer|in:0,1',
'o_smilies_sig' => 'required|integer|in:0,1',
'o_make_links' => 'required|integer|in:0,1',
'o_quote_depth' => 'required|integer|min:0|max:9',
])->addAliases([
])->addArguments([
])->addMessages([
@ -113,26 +113,27 @@ class Permissions extends Admin
'caption' => __('Image tag label'),
'info' => __('Image tag help'),
],
'p_message_all_caps' => [
'o_smilies' => [
'type' => 'radio',
'value' => $config->p_message_all_caps,
'value' => $config->o_smilies,
'values' => $yn,
'caption' => __('All caps message label'),
'info' => __('All caps message help'),
'caption' => __('Smilies label'),
'info' => __('Smilies help'),
],
'p_subject_all_caps' => [
'o_make_links' => [
'type' => 'radio',
'value' => $config->p_subject_all_caps,
'value' => $config->o_make_links,
'values' => $yn,
'caption' => __('All caps subject label'),
'info' => __('All caps subject help'),
'caption' => __('Clickable links label'),
'info' => __('Clickable links help'),
],
'p_force_guest_email' => [
'type' => 'radio',
'value' => $config->p_force_guest_email,
'values' => $yn,
'caption' => __('Require e-mail label'),
'info' => __('Require e-mail help'),
'o_quote_depth' => [
'type' => 'number',
'min' => 0,
'max' => 9,
'value' => $config->o_quote_depth,
'caption' => __('Quote depth label'),
'info' => __('Quote depth help'),
],
],
];
@ -154,12 +155,12 @@ class Permissions extends Admin
'caption' => __('Image tag sigs label'),
'info' => __('Image tag sigs help'),
],
'p_sig_all_caps' => [
'o_smilies_sig' => [
'type' => 'radio',
'value' => $config->p_sig_all_caps,
'value' => $config->o_smilies_sig,
'values' => $yn,
'caption' => __('All caps sigs label'),
'info' => __('All caps sigs help'),
'caption' => __('Smilies sigs label'),
'info' => __('Smilies sigs help'),
],
],

View file

@ -117,24 +117,6 @@ msgstr "User post count"
msgid "Post count help"
msgstr "Show the number of posts a user has made (affects topic view, profile and user list). Does not affect administrators and moderators."
msgid "Smilies label"
msgstr "Smilies in posts"
msgid "Smilies help"
msgstr "Convert smilies to small graphic icons."
msgid "Smilies sigs label"
msgstr "Smilies in signatures"
msgid "Smilies sigs help"
msgstr "Convert smilies to small graphic icons in user signatures."
msgid "Clickable links label"
msgstr "Make clickable links"
msgid "Clickable links help"
msgstr "When enabled, ForkBB will automatically detect any URLs in posts and make them clickable hyperlinks."
msgid "Topic review label"
msgstr "Topic review"
@ -153,12 +135,6 @@ msgstr "Users per page"
msgid "Users per page help"
msgstr "The number of users displayed on one page of the list."
msgid "Quote depth label"
msgstr "Maximum [quote] depth"
msgid "Quote depth help"
msgstr "The maximum times a [quote] tag can go inside other [quote] tags, any tags deeper than this will be discarded."
msgid "Features subhead"
msgstr "Features"
@ -410,3 +386,27 @@ msgstr "Max recipients"
msgid "Email max recipients help"
msgstr "The maximum number of recipients for one email. Depends on your mail server."
msgid "All caps message label"
msgstr "All caps message"
msgid "All caps message help"
msgstr "Allow a message to contain only capital letters."
msgid "All caps subject label"
msgstr "All caps subject"
msgid "All caps subject help"
msgstr "Allow a subject to contain only capital letters."
msgid "Require e-mail label"
msgstr "Require guest email"
msgid "Require e-mail help"
msgstr "Require guests to supply an email address when posting."
msgid "All caps sigs label"
msgstr "All caps signature"
msgid "All caps sigs help"
msgstr "Allow a signature to contain only capital letters."

View file

@ -33,24 +33,6 @@ msgstr "Image tag"
msgid "Image tag help"
msgstr "Allow the BBCode [img][/img] tag in posts."
msgid "All caps message label"
msgstr "All caps message"
msgid "All caps message help"
msgstr "Allow a message to contain only capital letters."
msgid "All caps subject label"
msgstr "All caps subject"
msgid "All caps subject help"
msgstr "Allow a subject to contain only capital letters."
msgid "Require e-mail label"
msgstr "Require guest email"
msgid "Require e-mail help"
msgstr "Require guests to supply an email address when posting."
msgid "Signatures subhead"
msgstr "Signatures"
@ -66,8 +48,26 @@ msgstr "Image tag in signatures"
msgid "Image tag sigs help"
msgstr "Allow the BBCode [img][/img] tag in user signatures (not recommended)."
msgid "All caps sigs label"
msgstr "All caps signature"
msgid "Smilies label"
msgstr "Smilies in posts"
msgid "All caps sigs help"
msgstr "Allow a signature to contain only capital letters."
msgid "Smilies help"
msgstr "Convert smilies to small graphic icons."
msgid "Smilies sigs label"
msgstr "Smilies in signatures"
msgid "Smilies sigs help"
msgstr "Convert smilies to small graphic icons in user signatures."
msgid "Clickable links label"
msgstr "Make clickable links"
msgid "Clickable links help"
msgstr "When enabled, ForkBB will automatically detect any URLs in posts and make them clickable hyperlinks."
msgid "Quote depth label"
msgstr "Maximum [quote] depth"
msgid "Quote depth help"
msgstr "The maximum times a [quote] tag can go inside other [quote] tags, any tags deeper than this will be discarded."

View file

@ -117,24 +117,6 @@ msgstr "Счетчик сообщений"
msgid "Post count help"
msgstr "Показывать количество сообщений, отправленных пользователями (в темах, профиле и списке пользователей). Не влияет на администраторов и модераторов."
msgid "Smilies label"
msgstr "Смайлы в сообщениях"
msgid "Smilies help"
msgstr "Преобразовывать смайлы в графические иконки."
msgid "Smilies sigs label"
msgstr "Смайлы в подписи"
msgid "Smilies sigs help"
msgstr "Преобразовывать смайлы в подписях."
msgid "Clickable links label"
msgstr "Распознавать ссылки"
msgid "Clickable links help"
msgstr "Если включено, ForkBB будет автоматически распознавать URL-ы в сообщениях и делать их кликабельными гиперссылками."
msgid "Topic review label"
msgstr "Просмотр темы"
@ -153,12 +135,6 @@ msgstr "Пользователей на страницу"
msgid "Users per page help"
msgstr "Число пользователей отображаемых на одной странице списка."
msgid "Quote depth label"
msgstr "Максимальная глубина [quote]"
msgid "Quote depth help"
msgstr "Сколько раз тег [quote] может вкладываться в другие [quote], все теги свыше указанного порога будут игнорироваться."
msgid "Features subhead"
msgstr "Тонкости"
@ -410,3 +386,27 @@ msgstr "Макс. получателей"
msgid "Email max recipients help"
msgstr "Максимальное количество получателей в одном письме. Зависит от вашего почтового сервера."
msgid "All caps message label"
msgstr "Сообщение заглавными"
msgid "All caps message help"
msgstr "Разрешить сообщения, состоящие из одних заглавных букв."
msgid "All caps subject label"
msgstr "Тема заглавными"
msgid "All caps subject help"
msgstr "Разрешить заголовки тем, состоящие из одних заглавных букв."
msgid "Require e-mail label"
msgstr "Обязательный email гостя"
msgid "Require e-mail help"
msgstr "Если гостям разрешено отправлять комментарии, требовать от них указать email."
msgid "All caps sigs label"
msgstr "Подпись заглавными"
msgid "All caps sigs help"
msgstr "Разрешить подписи, состоящие из одних заглавных букв."

View file

@ -22,52 +22,52 @@ msgid "Posting subhead"
msgstr "Сообщения"
msgid "BBCode label"
msgstr "BBCode"
msgstr "BBcode в сообщениях"
msgid "BBCode help"
msgstr "Разрешить BBCode в сообщениях (рекомендуется)."
msgstr "Разрешить BB-коды в сообщениях (рекомендуется)."
msgid "Image tag label"
msgstr "Тег IMG"
msgstr "Тег IMG в сообщениях"
msgid "Image tag help"
msgstr "Разрешить тег [img][/img] в сообщениях."
msgid "All caps message label"
msgstr "Сообщение заглавными"
msgid "All caps message help"
msgstr "Разрешить сообщения, состоящие из одних заглавных букв."
msgid "All caps subject label"
msgstr "Тема заглавными"
msgid "All caps subject help"
msgstr "Разрешить заголовки тем, состоящие из одних заглавных букв."
msgid "Require e-mail label"
msgstr "Обязательный email гостя"
msgid "Require e-mail help"
msgstr "Если гостям разрешено отправлять комментарии, требовать от них указать email."
msgid "Signatures subhead"
msgstr "Подписи"
msgid "BBCode sigs label"
msgstr "BBCodes в подписи"
msgstr "BBcode в подписях"
msgid "BBCode sigs help"
msgstr "Разрешить BBCodes в подписи пользователя."
msgstr "Разрешить BB-коды в подписях пользователей."
msgid "Image tag sigs label"
msgstr "Тег IMG в подписи"
msgstr "Тег IMG в подписях"
msgid "Image tag sigs help"
msgstr "Разрешить тег [img][/img] в подписи пользователя (не рекомендуется)."
msgstr "Разрешить тег [img][/img] в подписях пользователей (не рекомендуется)."
msgid "All caps sigs label"
msgstr "Подпись заглавными"
msgid "Smilies label"
msgstr "Смайлы в сообщениях"
msgid "All caps sigs help"
msgstr "Разрешить подписи, состоящие из одних заглавных букв."
msgid "Smilies help"
msgstr "Преобразовывать смайлы из сообщений в графические иконки."
msgid "Smilies sigs label"
msgstr "Смайлы в подписях"
msgid "Smilies sigs help"
msgstr "Преобразовывать смайлы из подписей пользователей в графические иконки."
msgid "Clickable links label"
msgstr "Распознавать ссылки"
msgid "Clickable links help"
msgstr "Если включено, ForkBB будет автоматически распознавать URL-ы в сообщениях и делать их кликабельными гиперссылками."
msgid "Quote depth label"
msgstr "Максимальная глубина [quote]"
msgid "Quote depth help"
msgstr "Сколько раз тег [quote] может вкладываться в другие [quote], все теги свыше указанного порога будут игнорироваться."