phpBB

Development Wiki

Release Highlights/3.1.9

From phpBB Development Wiki

Revision as of 15:46, 16 April 2016 by Marc (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page highlights important changes in phpBB 3.1.9

New Features

  • Respect X-Forwarded-Headers for upgrading non-SSL to SSL connection - Proxy's request to upgrade users to using SSL instead of non-SSL communication will be correctly respected (e.g. when using HAproxy). This requires default ports for SSL and can only be used for upgrading from non-SSL to SSL and not to downgrade from SSL to non-SSL.
  • Disable sending headers - Extension authors can disable sending headers in the page_header() function and the controller helper's render() method

Notable Changes

  • Q&A fallback to non-default language questions - Q&A will try to fall back to Q&A combos that are not the current or default language if it's enabled and no valid Q&A set for the current or default language are set. If this is not possible, the captcha system will throw an error and prevent registrations without filling out the captcha caused by the invalid setup and misconfiguration.

Notable Bug Fixes

  • Removed automatic approve of unapproved posts - Editing an unapproved post as a moderator will no longer automatically approve it.
  • Email queue not cached by opcache - Email queue won't be cached by opcache anymore. This caused issues with dulicate emails.
  • Correct column default in MSSQL - Database column default will no longer be incorrectly escaped in MSSQL (caused upgrade issues for 3.0.x to 3.1.x)
  • Modified since for files served with download/file.php - The modified since header was not correctly served
  • File update when using non-file based cache - Admins updating when using caches like memcache no longer see the comparing files page over and over again when looking at file changes
  • Attachments display according to the correct BBCode ID - Attachments displayed now correctly correspond to the ones defined by the attachment BBCodes that were added using the frontend

Event changes

PHP Events (Hook Locations)

Identifier Placement Arguments Added in Release Explanation
core.avatar_driver_upload_move_file_before phpbb/avatar/driver/upload.php destination, error, filedata, prefix, row 3.1.6-RC1 Before moving new file in place (and eventually overwriting the existing avatar with the newly uploaded avatar)
core.decode_message_after includes/functions_content.php bbcode_uid, message_text 3.1.9-RC1 Use this event to modify the message after it is decoded
core.decode_message_before includes/functions_content.php bbcode_uid, message_text 3.1.9-RC1 Use this event to modify the message before it is decoded
core.gen_sort_selects_after includes/functions_content.php def_sd, def_sk, def_st, limit_days, s_limit_days, s_sort_dir, s_sort_key, sort_by_text, sort_days, sort_dir, sort_key, sorts, u_sort_param 3.1.9-RC1 Run code before generated sort selects are returned
core.login_box_before includes/functions.php admin, err, l_explain, l_success, redirect, s_display 3.1.9-RC1 This event allows an extension to modify the login process
core.login_box_redirect includes/functions.php admin, redirect 3.1.0-RC5 This event allows an extension to modify the redirection when a user successfully logs in
core.topic_review_modify_post_list includes/functions_posting.php attachments, cur_post_id, forum_id, mode, post_list, rowset, show_quote_button, topic_id 3.1.9-RC1 Event to modify the posts list for topic reviews
core.viewforum_get_topic_data viewforum.php forum_data, forum_id, sort_days, sort_dir, sort_key, sql_array, topics_count 3.1.0-a1 Event to modify the SQL query before the topic data is retrieved
core.viewforum_modify_sort_data_sql viewforum.php forum_id, sort_days, sort_dir, sort_key, sql_array, start 3.1.9-RC1 Modify the sort data SQL query for getting additional fields if needed
core.viewtopic_add_quickmod_option_before viewtopic.php allow_change_type, forum_id, post_id, quickmod_array, topic_data, topic_id, topic_tracking_info, viewtopic_url 3.1.9-RC1 Event to modify data in the quickmod_array before it gets sent to the

Template Events

Identifier Prosilver Placement (If applicable) Subsilver Placement (If applicable) Added in Release Explanation
memberlist_view_contact_custom_fields_after memberlist_view.html memberlist_view.html 3.1.9-RC1 Add content after the user contact related custom fields
memberlist_view_contact_custom_fields_before memberlist_view.html memberlist_view.html 3.1.9-RC1 Add content before the user contact related custom fields
memberlist_view_non_contact_custom_fields_after memberlist_view.html memberlist_view.html 3.1.9-RC1 Add content after the user not contact related custom fields
memberlist_view_non_contact_custom_fields_before memberlist_view.html memberlist_view.html 3.1.9-RC1 Add content before the user not contact related custom fields
memberlist_view_zebra_after memberlist_view.html memberlist_view.html 3.1.9-RC1 Add content after the user friends/foes links
memberlist_view_zebra_before memberlist_view.html memberlist_view.html 3.1.9-RC1 Add content before the user friends/foes links

ACP Template Events

None