Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
1ae4426e
Commit
1ae4426e
authored
Sep 23, 2014
by
Scott Vivian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option for Terms & Conditions checkbox
parent
e80081bc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
qa-app-options.php
qa-include/qa-app-options.php
+7
-2
qa-lang-options.php
qa-include/qa-lang-options.php
+3
-1
qa-page-admin-default.php
qa-include/qa-page-admin-default.php
+5
-1
No files found.
qa-include/qa-app-options.php
View file @
1ae4426e
...
...
@@ -340,11 +340,12 @@
'show_a_c_links'
=>
1
,
'show_a_form_immediate'
=>
'if_no_as'
,
'show_c_reply_buttons'
=>
1
,
'show_custom_welcome'
=>
1
,
'show_custom_welcome'
=>
0
,
'show_fewer_cs_count'
=>
5
,
'show_fewer_cs_from'
=>
10
,
'show_full_date_days'
=>
7
,
'show_message_history'
=>
1
,
'show_register_terms'
=>
0
,
'show_selected_first'
=>
1
,
'show_url_links'
=>
1
,
'show_user_points'
=>
1
,
...
...
@@ -404,8 +405,12 @@
$value
=
strlen
(
qa_opt
(
'custom_in_head'
))
>
0
;
break
;
case
'register_terms'
:
$value
=
qa_lang_html_sub
(
'options/default_terms'
,
qa_html
(
qa_opt
(
'site_title'
)));
break
;
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
;
case
'editor_for_qs'
:
...
...
qa-include/qa-lang-options.php
View file @
1ae4426e
...
...
@@ -68,6 +68,7 @@
'default_sidebar'
=>
"Welcome to ^, where you can ask questions and receive answers from other members of the community."
,
'default_subject'
=>
'A message from ^'
,
'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_close_on_select'
=>
'Close questions with a selected answer:'
,
'do_complete_tags'
=>
'Show matching tags while typing:'
,
...
...
@@ -237,7 +238,7 @@
'show_custom_header'
=>
'Custom HTML at top of every page:'
,
'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_register'
=>
'Custom message on regist
er
form - HTML allowed:'
,
'show_custom_register'
=>
'Custom message on regist
ration
form - HTML allowed:'
,
'show_custom_sidebar'
=>
'Custom HTML in sidebar box 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:'
,
...
...
@@ -250,6 +251,7 @@
'show_never'
=>
'Never'
,
'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_register_terms'
=>
'Terms & Conditions checkbox on registration form - HTML allowed:'
,
'show_selected_first'
=>
'Move selected answer to the top:'
,
'show_url_links'
=>
'Detect and link URLs in posts:'
,
'show_user_points'
=>
'Show points next to usernames:'
,
...
...
qa-include/qa-page-admin-default.php
View file @
1ae4426e
...
...
@@ -207,6 +207,7 @@
'show_message_history'
=>
'checkbox'
,
'show_notice_visitor'
=>
'checkbox'
,
'show_notice_welcome'
=>
'checkbox'
,
'show_register_terms'
=>
'checkbox'
,
'show_selected_first'
=>
'checkbox'
,
'show_url_links'
=>
'checkbox'
,
'show_user_points'
=>
'checkbox'
,
...
...
@@ -308,7 +309,7 @@
if
(
!
QA_FINAL_EXTERNAL_USERS
)
{
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'
);
...
...
@@ -326,6 +327,7 @@
$checkboxtodisplay
=
array
(
'custom_register'
=>
'option_show_custom_register'
,
'register_terms'
=>
'option_show_register_terms'
,
'custom_welcome'
=>
'option_show_custom_welcome'
,
'notice_welcome'
=>
'option_show_notice_welcome'
,
'notice_visitor'
=>
'option_show_notice_visitor'
,
...
...
@@ -1087,6 +1089,7 @@
break
;
case
'show_custom_register'
:
case
'show_register_terms'
:
case
'show_custom_welcome'
:
case
'show_notice_welcome'
:
case
'show_notice_visitor'
:
...
...
@@ -1094,6 +1097,7 @@
break
;
case
'custom_register'
:
case
'register_terms'
:
case
'custom_welcome'
:
case
'notice_welcome'
:
case
'notice_visitor'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment