Commit d46809f4 by Scott

Add option to ignore hotness on page views

parent c5d532c5
......@@ -362,21 +362,24 @@ function qa_default_option($name)
'points_q_voted_max_loss' => 3,
'points_select_a' => 3,
'q_urls_title_length' => 50,
'recalc_hotness_q_view' => 1,
'show_a_c_links' => 1,
'show_a_form_immediate' => 'if_no_as',
'show_c_reply_buttons' => 1,
'show_compact_numbers' => 1,
'show_custom_welcome' => 0,
'show_post_update_meta' => 1,
'show_fewer_cs_count' => 5,
'show_fewer_cs_from' => 10,
'show_full_date_days' => 7,
'show_message_history' => 1,
'show_post_update_meta' => 1,
'show_register_terms' => 0,
'show_selected_first' => 1,
'show_url_links' => 1,
'show_user_points' => 1,
'show_user_titles' => 1,
'show_view_count_q_page' => 0,
'show_view_counts' => 0,
'show_when_created' => 1,
'site_text_direction' => 'ltr',
'site_theme' => 'Snow',
......
......@@ -203,6 +203,7 @@ return array(
'recalc_categories_note' => ' - for post categories and category counts',
'recalc_categories_recounting' => 'Recounting questions for ^1 of ^2 categories...',
'recalc_categories_updated' => 'Recalculated for ^1 of ^2 posts...',
'recalc_hotness_q_view_note' => 'Slightly more efficient if disabled, but hotness values will become out of date if views are given higher importance in settings',
'recalc_points' => 'Recalculate user points',
'recalc_points_complete' => 'All user points were successfully recalculated.',
'recalc_points_note' => ' - for user ranking and points displays',
......
......@@ -238,6 +238,7 @@ return array(
'points_vote_up_q' => 'Voting up a question:',
'q_urls_remove_accents' => 'Remove accents from question URLs:',
'q_urls_title_length' => 'Question title length in URLs:',
'recalc_hotness_q_view' => 'Recalculate hotness on every question page view:',
'register_notify_admin' => 'Email me when a new user registers:',
'search_module' => 'Use search module:',
'show_a_form_immediate' => 'Show answer form immediately:',
......
......@@ -193,6 +193,7 @@ $optiontype = array(
'notify_admin_q_post' => 'checkbox',
'notify_users_default' => 'checkbox',
'q_urls_remove_accents' => 'checkbox',
'recalc_hotness_q_view' => 'checkbox',
'register_notify_admin' => 'checkbox',
'show_c_reply_buttons' => 'checkbox',
'show_compact_numbers' => 'checkbox',
......@@ -387,7 +388,7 @@ switch ($adminsection) {
case 'viewing':
$subtitle = 'admin/viewing_title';
$showoptions = array(
'q_urls_title_length', 'q_urls_remove_accents', 'do_count_q_views', 'show_view_counts', 'show_view_count_q_page', '',
'q_urls_title_length', 'q_urls_remove_accents', 'do_count_q_views', 'show_view_counts', 'show_view_count_q_page', 'recalc_hotness_q_view', '',
'voting_on_qs', 'voting_on_q_page_only', 'voting_on_as', 'voting_on_cs', 'votes_separated', '',
'show_url_links', 'links_in_new_window', 'show_when_created', 'show_full_date_days'
);
......@@ -423,6 +424,7 @@ switch ($adminsection) {
$checkboxtodisplay = array(
'show_view_counts' => 'option_do_count_q_views',
'show_view_count_q_page' => 'option_do_count_q_views',
'recalc_hotness_q_view' => 'option_do_count_q_views',
'votes_separated' => 'option_voting_on_qs || option_voting_on_as',
'voting_on_q_page_only' => 'option_voting_on_qs',
'show_full_date_days' => 'option_show_when_created',
......@@ -1202,6 +1204,10 @@ foreach ($showoptions as $optionname) {
$optionfield['note'] = qa_lang_html('admin/characters');
break;
case 'recalc_hotness_q_view':
$optionfield['note'] = '<span class="qa-form-wide-help" title="' . qa_lang_html('admin/recalc_hotness_q_view_note') . '">?</span>';
break;
case 'min_num_q_tags':
case 'max_num_q_tags':
$optionfield['note'] = qa_lang_html_sub('main/x_tags', ''); // this to avoid language checking error: a_lang('main/1_tag')
......
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