phpBB

Development Wiki

Release Highlights/3.1.5

From phpBB Development Wiki

This page highlights important changes in phpBB 3.1.5

Security and Hardening

  • Hardening: Use autocomplete=off for password fields
  • Hardening: Do not populate password fields in the ACP settings with the old password - Thanks Fortify Open Source Review for suggesting
  • Content Permissons: Post subjects from protected subforums were listed incorrectly on the forum index in the following two scenarios: 1. Forum that has no forum password has a subforum with a password. 2. Forum with read permissions has a subforum without read permissions "Can read forum", but with list permissions "Can see forum" - Thanks 5hocK for suggesting

New Features

  • Events - More events have been added to the template and the php core

Notable Bug Fixes

  • Printing topics with webkit - Properly display background images when printing with webkit browser
  • Language files for xCP modules - Adding multiple language files for acp/mcp/ucp modules was incorrectly handled for extensions
  • Several Controller Fixes - AJAX responses did not support exceptions messages, AJAX responses did not support meta_refresh and redirect

Event changes

PHP Events (Hook Locations)

Identifier Placement Arguments Added in Release Explanation
core.bbcode_second_pass_by_extension includes/bbcode.php params_array, return 3.1.5-RC1 Event to perform bbcode second pass with
core.generate_forum_nav includes/functions_display.php forum_data, forum_template_data, microdata_attr, navlinks, navlinks_parents 3.1.5-RC1 Event to modify the navlinks text
core.get_logs_main_query_before phpbb/log/log.php count_logs, forum_id, get_logs_sql_ary, keywords, limit, log_time, log_type, mode, offset, profile_url, sort_by, sql_additional, topic_id, user_id 3.1.5-RC1 Modify the query to obtain the logs data
core.mcp_front_queue_unapproved_total_before includes/mcp/mcp_front.php forum_list, sql_ary 3.1.5-RC1 Allow altering the query to get the number of unapproved posts
core.mcp_front_reports_count_query_before includes/mcp/mcp_front.php forum_list, sql 3.1.5-RC1 Alter sql query to count the number of reported posts
core.mcp_post_additional_options includes/mcp/mcp_post.php action, post_info 3.1.5-RC1 This event allows you to handle custom post moderation options
core.mcp_post_template_data includes/mcp/mcp_post.php attachments, mcp_post_template_data, post_info, s_additional_opts 3.1.5-RC1 Event to add/modify MCP post template data
core.mcp_reports_report_details_query_after includes/mcp/mcp_reports.php forum_id, post_id, report, report_id, sql_ary 3.1.5-RC1 Allow changing the data obtained from the user-submitted report.
core.mcp_reports_report_details_query_before includes/mcp/mcp_reports.php forum_id, post_id, report_id, sql_ary 3.1.5-RC1 Allow changing the query to obtain the user-submitted report.
core.move_topics_before_query includes/functions_admin.php auto_sync, forum_id, forum_ids, table_ary, topic_ids 3.1.5-RC1 Perform additional actions before topics move
core.posting_modify_submission_errors posting.php error, forum_id, mode, page_title, poll, post_data, post_id, submit, topic_id 3.1.0-RC5 This event allows you to define errors before the post action is performed
core.posting_modify_template_vars posting.php cancel, error, form_enctype, forum_id, load, message_parser, mode, moderators, page_data, page_title, post_data, post_id, preview, refresh, s_action, s_hidden_fields, s_topic_icons, save, submit, topic_id 3.1.0-a1 This event allows you to modify template variables for the posting screen
core.search_mysql_author_query_before phpbb/search/fulltext_mysql.php author_ary, author_name, ex_fid_ary, firstpost_only, m_approve_fid_sql, result_count, sort_by_sql, sort_days, sort_dir, sort_key, sql_author, sql_fora, sql_sort, sql_sort_join, sql_sort_table, sql_time, sql_topic_id, start, topic_id 3.1.5-RC1 Allow changing the query used to search for posts by author in fulltext_mysql
core.search_mysql_keywords_main_query_before phpbb/search/fulltext_mysql.php author_ary, author_name, ex_fid_ary, join_topic, result_count, search_query, sort_by_sql, sort_days, sort_dir, sort_key, sql_match, sql_match_where, sql_sort, sql_sort_join, sql_sort_table, start, topic_id 3.1.5-RC1 Allow changing the query used to search for posts using fulltext_mysql
core.search_native_author_count_query_before phpbb/search/fulltext_native.php ex_fid_ary, firstpost_only, select, sort_by_sql, sort_days, sort_dir, sort_key, sql_author, sql_fora, sql_sort, sql_sort_join, sql_sort_table, sql_time, start, topic_id, total_results 3.1.5-RC1 Allow changing the query used to search for posts by author in fulltext_native
core.search_native_keywords_count_query_before phpbb/search/fulltext_native.php author_ary, author_name, ex_fid_ary, group_by, join_topic, must_contain_ids, must_exclude_one_ids, must_not_contain_ids, result_count, search_query, sort_by_sql, sort_days, sort_dir, sort_key, sql_match, sql_match_where, sql_sort, sql_sort_join, sql_sort_table, sql_where, start, topic_id 3.1.5-RC1 Allow changing the query used for counting for posts using fulltext_native
core.search_postgres_author_count_query_before phpbb/search/fulltext_postgres.php author_ary, author_name, ex_fid_ary, firstpost_only, m_approve_fid_sql, result_count, sort_by_sql, sort_days, sort_dir, sort_key, sql_author, sql_fora, sql_sort, sql_sort_join, sql_sort_table, sql_time, sql_topic_id, start, topic_id 3.1.5-RC1 Allow changing the query used to search for posts by author in fulltext_postgres
core.search_postgres_keywords_main_query_before phpbb/search/fulltext_postgres.php author_ary, author_name, ex_fid_ary, join_topic, result_count, sort_by_sql, sort_days, sort_dir, sort_key, sql_match, sql_match_where, sql_sort, sql_sort_join, sql_sort_table, start, topic_id, tsearch_query 3.1.5-RC1 Allow changing the query used to search for posts using fulltext_postgres
core.validate_bbcode_by_extension includes/message_parser.php params_array, return 3.1.5-RC1 Event to validate bbcode with the custom validating methods
core.viewonline_modify_forum_data_sql viewonline.php sql_ary 3.1.5-RC1 Modify the forum data SQL query for getting additional fields if needed
core.viewtopic_modify_poll_data viewtopic.php cur_voted_id, forum_id, poll_info, s_can_vote, s_display_results, topic_data, topic_id, viewtopic_url, vote_counts, voted_id 3.1.5-RC1 Event to manipulate the poll data
core.viewtopic_modify_poll_template_data viewtopic.php cur_voted_id, poll_end, poll_info, poll_most, poll_options_template_data, poll_template_data, poll_total, topic_data, viewtopic_url, vote_counts, voted_id 3.1.5-RC1 Event to add/modify poll template data

Template Events

Identifier Prosilver Placement (If applicable) Subsilver Placement (If applicable) Added in Release Explanation
forumlist_body_category_header_row_append forumlist_body.html 3.1.5-RC1 Add content after the header row of the category on the forum list.
forumlist_body_category_header_row_prepend forumlist_body.html 3.1.5-RC1 Add content before the header row of the category on the forum list.
mcp_post_additional_options mcp_post.html mcp_post.html 3.1.5-RC1 Add content within the list of post moderation actions
search_body_form_before search_body.html search_body.html 3.1.5-RC1 Add content before the search form
viewforum_forum_title_after viewforum_body.html viewforum_body.html 3.1.5-RC1 Add content directly after the forum title on the View forum screen
viewforum_forum_title_before viewforum_body.html viewforum_body.html 3.1.5-RC1 Add content directly before the forum title on the View forum screen
viewtopic_body_post_buttons_list_after viewtopic_body.html 3.1.5-RC1 Add post button custom list to posts (next to edit, quote etc), after the original list.
viewtopic_body_post_buttons_list_before viewtopic_body.html 3.1.5-RC1 Add post button custom list to posts (next to edit, quote etc), before the original list.

ACP Template Events

No changes