Commit 267c11b9 by Scott

Add allow_anonymous_naming and allow_close_own_questions options

parent 3ecffa5e
...@@ -217,8 +217,10 @@ function qa_default_option($name) ...@@ -217,8 +217,10 @@ function qa_default_option($name)
} }
$fixed_defaults = array( $fixed_defaults = array(
'allow_anonymous_naming' => 1,
'allow_change_usernames' => 1, 'allow_change_usernames' => 1,
'allow_close_questions' => 1, 'allow_close_questions' => 1,
'allow_close_own_questions' => 1,
'allow_multi_answers' => 1, 'allow_multi_answers' => 1,
'allow_private_messages' => 1, 'allow_private_messages' => 1,
'allow_user_walls' => 1, 'allow_user_walls' => 1,
......
...@@ -21,8 +21,10 @@ ...@@ -21,8 +21,10 @@
*/ */
return array( return array(
'allow_anonymous_naming' => 'Allow anonymous posters to specify their name:',
'allow_change_usernames' => 'Allow users with posts to change their username:', 'allow_change_usernames' => 'Allow users with posts to change their username:',
'allow_close_questions' => 'Allow questions to be manually closed:', 'allow_close_questions' => 'Allow questions to be manually closed:',
'allow_close_own_questions' => 'Allow users to close their own questions:',
'allow_login_email_only' => 'Only log in by email address (not username):', 'allow_login_email_only' => 'Only log in by email address (not username):',
'allow_multi_answers' => 'Allow multiple answers per user:', 'allow_multi_answers' => 'Allow multiple answers per user:',
'allow_no_category' => 'Allow questions with no category', 'allow_no_category' => 'Allow questions with no category',
......
...@@ -137,8 +137,10 @@ $optiontype = array( ...@@ -137,8 +137,10 @@ $optiontype = array(
'show_full_date_days' => 'number', 'show_full_date_days' => 'number',
'smtp_port' => 'number', 'smtp_port' => 'number',
'allow_anonymous_naming' => 'checkbox',
'allow_change_usernames' => 'checkbox', 'allow_change_usernames' => 'checkbox',
'allow_close_questions' => 'checkbox', 'allow_close_questions' => 'checkbox',
'allow_close_own_questions' => 'checkbox',
'allow_login_email_only' => 'checkbox', 'allow_login_email_only' => 'checkbox',
'allow_multi_answers' => 'checkbox', 'allow_multi_answers' => 'checkbox',
'allow_private_messages' => 'checkbox', 'allow_private_messages' => 'checkbox',
...@@ -464,7 +466,7 @@ switch ($adminsection) { ...@@ -464,7 +466,7 @@ switch ($adminsection) {
$subtitle = 'admin/posting_title'; $subtitle = 'admin/posting_title';
$showoptions = array('do_close_on_select', 'allow_close_questions', 'allow_self_answer', 'allow_multi_answers', 'follow_on_as', 'comment_on_qs', 'comment_on_as', ''); $showoptions = array('do_close_on_select', 'allow_close_questions', 'allow_close_own_questions', 'allow_self_answer', 'allow_multi_answers', 'follow_on_as', 'comment_on_qs', 'comment_on_as', 'allow_anonymous_naming', '');
if (count(qa_list_modules('editor')) > 1) if (count(qa_list_modules('editor')) > 1)
array_push($showoptions, 'editor_for_qs', 'editor_for_as', 'editor_for_cs', ''); array_push($showoptions, 'editor_for_qs', 'editor_for_as', 'editor_for_cs', '');
...@@ -486,6 +488,7 @@ switch ($adminsection) { ...@@ -486,6 +488,7 @@ switch ($adminsection) {
$formstyle = 'wide'; $formstyle = 'wide';
$checkboxtodisplay = array( $checkboxtodisplay = array(
'allow_close_own_questions' => 'option_allow_close_questions',
'editor_for_cs' => 'option_comment_on_qs || option_comment_on_as', 'editor_for_cs' => 'option_comment_on_qs || option_comment_on_as',
'custom_ask' => 'option_show_custom_ask', 'custom_ask' => 'option_show_custom_ask',
'extra_field_prompt' => 'option_extra_field_active', 'extra_field_prompt' => 'option_extra_field_active',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment