Commit 1ae4426e by Scott Vivian

Add option for Terms & Conditions checkbox

parent e80081bc
...@@ -340,11 +340,12 @@ ...@@ -340,11 +340,12 @@
'show_a_c_links' => 1, 'show_a_c_links' => 1,
'show_a_form_immediate' => 'if_no_as', 'show_a_form_immediate' => 'if_no_as',
'show_c_reply_buttons' => 1, 'show_c_reply_buttons' => 1,
'show_custom_welcome' => 1, 'show_custom_welcome' => 0,
'show_fewer_cs_count' => 5, 'show_fewer_cs_count' => 5,
'show_fewer_cs_from' => 10, 'show_fewer_cs_from' => 10,
'show_full_date_days' => 7, 'show_full_date_days' => 7,
'show_message_history' => 1, 'show_message_history' => 1,
'show_register_terms' => 0,
'show_selected_first' => 1, 'show_selected_first' => 1,
'show_url_links' => 1, 'show_url_links' => 1,
'show_user_points' => 1, 'show_user_points' => 1,
...@@ -404,8 +405,12 @@ ...@@ -404,8 +405,12 @@
$value = strlen(qa_opt('custom_in_head')) > 0; $value = strlen(qa_opt('custom_in_head')) > 0;
break; break;
case 'register_terms':
$value = qa_lang_html_sub('options/default_terms', qa_html(qa_opt('site_title')));
break;
case 'custom_sidebar': case 'custom_sidebar':
$value=qa_lang_html_sub('options/default_sidebar', qa_html(qa_opt('site_title'))); $value = qa_lang_html_sub('options/default_sidebar', qa_html(qa_opt('site_title')));
break; break;
case 'editor_for_qs': case 'editor_for_qs':
......
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
'default_sidebar' => "Welcome to ^, where you can ask questions and receive answers from other members of the community.", 'default_sidebar' => "Welcome to ^, where you can ask questions and receive answers from other members of the community.",
'default_subject' => 'A message from ^', 'default_subject' => 'A message from ^',
'default_suffix' => 'Q&A', 'default_suffix' => 'Q&A',
'default_terms' => 'I agree to the ^ Terms & Conditions and Privacy Policy',
'do_ask_check_qs' => 'Check for similar questions when asking:', 'do_ask_check_qs' => 'Check for similar questions when asking:',
'do_close_on_select' => 'Close questions with a selected answer:', 'do_close_on_select' => 'Close questions with a selected answer:',
'do_complete_tags' => 'Show matching tags while typing:', 'do_complete_tags' => 'Show matching tags while typing:',
...@@ -237,7 +238,7 @@ ...@@ -237,7 +238,7 @@
'show_custom_header' => 'Custom HTML at top of every page:', 'show_custom_header' => 'Custom HTML at top of every page:',
'show_custom_home' => 'Custom content in home page instead of Q&A', 'show_custom_home' => 'Custom content in home page instead of Q&A',
'show_custom_in_head' => 'Custom HTML in <head> section of every page:', 'show_custom_in_head' => 'Custom HTML in <head> section of every page:',
'show_custom_register' => 'Custom message on register form - HTML allowed:', 'show_custom_register' => 'Custom message on registration form - HTML allowed:',
'show_custom_sidebar' => 'Custom HTML in sidebar box on every page:', 'show_custom_sidebar' => 'Custom HTML in sidebar box on every page:',
'show_custom_sidepanel' => 'Custom HTML in side panel on every page:', 'show_custom_sidepanel' => 'Custom HTML in side panel on every page:',
'show_custom_welcome' => 'Custom message in email sent to new registered users:', 'show_custom_welcome' => 'Custom message in email sent to new registered users:',
...@@ -250,6 +251,7 @@ ...@@ -250,6 +251,7 @@
'show_never' => 'Never', 'show_never' => 'Never',
'show_notice_visitor' => 'Notice at top for first time visitors - HTML allowed:', 'show_notice_visitor' => 'Notice at top for first time visitors - HTML allowed:',
'show_notice_welcome' => 'Notice at top for new registered users - HTML allowed:', 'show_notice_welcome' => 'Notice at top for new registered users - HTML allowed:',
'show_register_terms' => 'Terms & Conditions checkbox on registration form - HTML allowed:',
'show_selected_first' => 'Move selected answer to the top:', 'show_selected_first' => 'Move selected answer to the top:',
'show_url_links' => 'Detect and link URLs in posts:', 'show_url_links' => 'Detect and link URLs in posts:',
'show_user_points' => 'Show points next to usernames:', 'show_user_points' => 'Show points next to usernames:',
......
...@@ -207,6 +207,7 @@ ...@@ -207,6 +207,7 @@
'show_message_history' => 'checkbox', 'show_message_history' => 'checkbox',
'show_notice_visitor' => 'checkbox', 'show_notice_visitor' => 'checkbox',
'show_notice_welcome' => 'checkbox', 'show_notice_welcome' => 'checkbox',
'show_register_terms' => 'checkbox',
'show_selected_first' => 'checkbox', 'show_selected_first' => 'checkbox',
'show_url_links' => 'checkbox', 'show_url_links' => 'checkbox',
'show_user_points' => 'checkbox', 'show_user_points' => 'checkbox',
...@@ -308,7 +309,7 @@ ...@@ -308,7 +309,7 @@
if (!QA_FINAL_EXTERNAL_USERS) { if (!QA_FINAL_EXTERNAL_USERS) {
require_once QA_INCLUDE_DIR.'qa-util-image.php'; require_once QA_INCLUDE_DIR.'qa-util-image.php';
array_push($showoptions, 'show_custom_register', 'custom_register', 'show_notice_welcome', 'notice_welcome', 'show_custom_welcome', 'custom_welcome'); array_push($showoptions, 'show_custom_register', 'custom_register', 'show_register_terms', 'register_terms', 'show_notice_welcome', 'notice_welcome', 'show_custom_welcome', 'custom_welcome');
array_push($showoptions, '' ,'allow_login_email_only', 'allow_change_usernames', 'allow_private_messages', 'show_message_history', 'page_size_pms', 'allow_user_walls', 'page_size_wall', '', 'avatar_allow_gravatar'); array_push($showoptions, '' ,'allow_login_email_only', 'allow_change_usernames', 'allow_private_messages', 'show_message_history', 'page_size_pms', 'allow_user_walls', 'page_size_wall', '', 'avatar_allow_gravatar');
...@@ -326,6 +327,7 @@ ...@@ -326,6 +327,7 @@
$checkboxtodisplay = array( $checkboxtodisplay = array(
'custom_register' => 'option_show_custom_register', 'custom_register' => 'option_show_custom_register',
'register_terms' => 'option_show_register_terms',
'custom_welcome' => 'option_show_custom_welcome', 'custom_welcome' => 'option_show_custom_welcome',
'notice_welcome' => 'option_show_notice_welcome', 'notice_welcome' => 'option_show_notice_welcome',
'notice_visitor' => 'option_show_notice_visitor', 'notice_visitor' => 'option_show_notice_visitor',
...@@ -1087,6 +1089,7 @@ ...@@ -1087,6 +1089,7 @@
break; break;
case 'show_custom_register': case 'show_custom_register':
case 'show_register_terms':
case 'show_custom_welcome': case 'show_custom_welcome':
case 'show_notice_welcome': case 'show_notice_welcome':
case 'show_notice_visitor': case 'show_notice_visitor':
...@@ -1094,6 +1097,7 @@ ...@@ -1094,6 +1097,7 @@
break; break;
case 'custom_register': case 'custom_register':
case 'register_terms':
case 'custom_welcome': case 'custom_welcome':
case 'notice_welcome': case 'notice_welcome':
case 'notice_visitor': case 'notice_visitor':
......
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