phpBB

Development Wiki

Release Highlights/3.1.6

From phpBB Development Wiki

This page highlights important changes in phpBB 3.1.6

Security and Hardening

  • Update Twig and PLUpload to the newest minor versions

New Features

  • Automatically remove inner quotes when the nesting is too deep
  • Add links to the Customisation Database to the Extensions, Styles and Language tab in the ACP

Notable Changes

Notable Bug Fixes

  • Fix jump to page option
  • Fix missing fonts when using the CDN option

Event changes

PHP Events (Hook Locations)

Identifier Placement Arguments Added in Release Explanation
core.acp_profile_create_edit_after includes/acp/acp_profile.php action, field_data, field_type, options, s_hidden_fields, save, step, submit 3.1.6-RC1 Event to add template variables for new profile field table fields
core.acp_profile_create_edit_init includes/acp/acp_profile.php action, exclude, field_row, field_type, save, step, submit, visibility_ary 3.1.6-RC1 Event to add initialization for new profile field table fields
core.acp_profile_create_edit_save_before includes/acp/acp_profile.php action, field_data, field_type, profile_fields 3.1.6-RC1 Event to modify profile field configuration data before saving to database
core.avatar_driver_upload_delete_before phpbb/avatar/driver/upload.php destination, error, prefix, row 3.1.6-RC1 Before deleting an existing avatar
core.avatar_driver_upload_move_file_before phpbb/avatar/driver/upload.php destination, error, prefix, row 3.1.6-RC1 Before moving new file in place (and eventually overwriting the existing avatar with the newly uploaded avatar)
core.delete_forum_content_before_query includes/acp/acp_forums.php forum_id, post_counts, table_ary, topic_ids 3.1.6-RC1 Perform additional actions before forum content deletion
core.download_file_send_to_browser_before download/file.php attach_id, attachment, display_cat, download_mode, extension, mode, thumbnail 3.1.6-RC1 Event to modify data before sending file to browser
core.generate_profile_fields_template_headlines phpbb/profilefields/manager.php profile_cache, restrict_option, tpl_fields 3.1.6-RC1 Event to modify template headlines of the generated profile fields
core.get_avatar_after includes/functions.php alt, avatar_data, html, ignore_config, row 3.1.6-RC1 Event to modify HTML <img> tag of avatar
core.mcp_change_poster_after includes/mcp/mcp_post.php post_info, userdata 3.1.6-RC1 This event allows you to perform additional tasks after changing a post's poster
core.mcp_forum_view_before includes/mcp/mcp_forum.php action, forum_info, post_id_list, source_topic_ids, start, to_topic_id, topic_id_list 3.1.6-RC1 Get some data in order to execute other actions.
core.modify_format_display_text_before includes/message_parser.php allow_bbcode, allow_magic_url, allow_smilies, text, uid, update_this_message 3.1.6-RC1 Event to modify the text before it is parsed
core.posting_modify_submit_post_after posting.php data, forum_id, mode, page_title, poll, post_author_name, post_data, post_id, redirect_url, topic_id, update_message, update_subject 3.1.0-RC5 This event allows you to define errors after the post action is performed
core.posting_modify_submit_post_before posting.php data, forum_id, mode, page_title, poll, post_author_name, post_data, post_id, topic_id, update_message, update_subject 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, draft_id, 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_results_modify_search_title search.php author_id, keywords, l_search_title, search_id, show_results, start, total_match_count 3.1.0-RC4 Modify the title and/or load data for the search results page
core.session_create_after phpbb/session.php session_data 3.1.6-RC1 Event to send new session data to extension
core.session_gc_after phpbb/session.php 3.1.6-RC1 Event to trigger extension on session_gc
core.session_kill_after phpbb/session.php new_session, session_id, user_id 3.1.6-RC1 Event to send session kill information to extension
core.ucp_activate_after includes/ucp/ucp_activate.php message, user_row 3.1.6-RC1 This event can be used to modify data after user account's activation
core.ucp_pm_view_messsage includes/ucp/ucp_pm_viewmessage.php cp_row, folder, folder_id, id, message_row, mode, msg_data, msg_id, user_info 3.1.0-a1 Modify pm and sender data before it is assigned to the template
core.ucp_register_agreement includes/ucp/ucp_register.php 3.1.6-RC1 Allows to modify the agreements.
core.update_session_after phpbb/session.php session_data, session_id 3.1.6-RC1 Event to send update session information to extension
core.user_setup_after phpbb/user.php 3.1.6-RC1 Execute code at the end of user setup

Template Events

Identifier Prosilver Placement (If applicable) Subsilver Placement (If applicable) Added in Release Explanation
attachment_file_after attachment.html attachment.html 3.1.6-RC1 Add content after the attachment.
attachment_file_append attachment.html attachment.html 3.1.6-RC1 Add custom attachment types displaying to the bottom of attachment block.
attachment_file_before attachment.html attachment.html 3.1.6-RC1 Add content before the attachment.
attachment_file_prepend attachment.html attachment.html 3.1.6-RC1 Add custom attachment types displaying to the top of attachment block.
mcp_forum_topic_title_before mcp_forum.html mcp_forum.html 3.1.6-RC1 Add some information before the topic title
mcp_forum_topic_title_after mcp_forum.html mcp_forum.html 3.1.6-RC1 Add some information after the topic title
mcp_topic_options_after mcp_topic.html mcp_topic.html 3.1.6-RC1 Add some options (field, checkbox, ...) after the subject field when split a subject
mcp_topic_options_before mcp_topic.html mcp_topic.html 3.1.6-RC1 Add some options (field, checkbox, ...) before the subject field when split a subject
mcp_topic_topic_title_after mcp_topic.html mcp_topic.html 3.1.6-RC1 Add some information after the topic title
mcp_topic_topic_title_before mcp_topic.html mcp_topic.html 3.1.6-RC1 Add some information before the topic title
memberlist_body_rank_append memberlist_body.html memberlist_body.html 3.1.6-RC1 Add information after rank in memberlist. Works in all display modes (leader, group and normal memberlist).
memberlist_body_rank_prepend memberlist_body.html memberlist_body.html 3.1.6-RC1 Add information before rank in memberlist. Works in all display modes (leader, group and normal memberlist).
memberlist_view_rank_after memberlist_view.html 3.1.6-RC1 Add information after rank in memberlist
memberlist_view_rank_avatar_after memberlist_view.html 3.1.6-RC1 Add information after rank in memberlist (with avatar)
memberlist_view_rank_avatar_before memberlist_view.html 3.1.6-RC1 Add information before rank in memberlist (with avatar)
memberlist_view_rank_before memberlist_view.html 3.1.6-RC1 Add information after rank in memberlist
memberlist_view_rank_no_avatar_after memberlist_view.html 3.1.6-RC1 Add information after rank in memberlist (without avatar)
memberlist_view_rank_no_avatar_before memberlist_view.html 3.1.6-RC1 Add information before rank in memberlist (without avatar)
overall_header_feeds overall_header.html overall_header.html 3.1.6-RC1 Add custom feeds
posting_editor_add_panel_tab posting_editor.html 3.1.6-RC1 Add custom panel to post editor
posting_editor_submit_buttons posting_editor.html posting_body.html 3.1.6-RC1 Add custom buttons in the posting editor
posting_layout_include_panel_body posting_layout.html 3.1.6-RC1 Add include of custom panel template body in posting editor
posting_topic_title_before posting_layout.html posting_body.html 3.1.6-RC1 Allows to add some information on the left of the topic title in the posting form
topiclist_row_prepend search_results.html, viewforum_body.html, mcp_forum.html search_results.html, viewforum_body.html, mcp_forum.html 3.1.0-a1 Add content into topic rows (inside the elements containing topic titles)
topiclist_row_append search_results.html, viewforum_body.html, mcp_forum.html search_results.html, viewforum_body.html, mcp_forum.html 3.1.0-a1 Add content into topic rows (inside the elements containing topic titles)
ucp_main_front_user_activity_after ucp_main_front.html ucp_main_front.html 3.1.6-RC1 Add content right after the user activity info viewing UCP front page
ucp_main_front_user_activity_before ucp_main_front.html ucp_main_front.html 3.1.6-RC1 Add content right before the user activity info viewing UCP front page
ucp_pm_history_post_buttons_after ucp_pm_history.html ucp_pm_history.html 3.1.6-RC1 Add post button to private messages in history review (next to quote etc), at the end of the list.
ucp_pm_history_post_buttons_before ucp_pm_history.html ucp_pm_history.html 3.1.6-RC1 Add post button to private messages in history review (next to quote etc), at the start of the list.
ucp_pm_history_post_buttons_list_after ucp_pm_history.html 3.1.6-RC1 Add post button custom list to private messages in history review (next to quote etc), after the original list.
ucp_pm_history_post_buttons_list_before ucp_pm_history.html 3.1.6-RC1 Add post button custom list to private messages in history review (next to quote etc), before the original list.
ucp_pm_history_review_after ucp_pm_history.html ucp_pm_history.html 3.1.6-RC1 Add content after the private messages history review.
ucp_pm_history_review_before ucp_pm_history.html ucp_pm_history.html 3.1.6-RC1 Add content before the private messages history review.
ucp_pm_viewmessage_post_buttons_list_after ucp_pm_viewmessage.html 3.1.6-RC1 Add post button custom list to private messages (next to edit, quote etc), after the original list.
ucp_pm_viewmessage_post_buttons_list_before ucp_pm_viewmessage.html 3.1.6-RC1 Add post button custom list to private messages (next to edit, quote etc), before the original list.
ucp_pm_viewmessage_rank_after ucp_pm_viewmessage.html 3.1.6-RC1 Add data after the rank on the user profile when viewing a private message
ucp_pm_viewmessage_rank_before ucp_pm_viewmessage.html 3.1.6-RC1 Add data before the rank on the user profile when viewing a private message
viewtopic_dropdown_bottom_custom viewtopic_body.html 3.1.6-RC1 Create a custom dropdown menu
viewtopic_dropdown_top_custom viewtopic_body.html 3.1.6-RC1 Create a custom dropdown menu
viewtopic_body_poll_after viewtopic_body.html viewtopic_body.html 3.1.6-RC1 Add content after the poll panel.
viewtopic_body_poll_before viewtopic_body.html viewtopic_body.html 3.1.6-RC1 Add content before the poll panel.
viewtopic_body_postrow_rank_after viewtopic_body.html viewtopic_body.html 3.1.6-RC1 Add data after the rank on the user profile when viewing a post
viewtopic_body_postrow_rank_before viewtopic_body.html viewtopic_body.html 3.1.6-RC1 Add data before the rank on the user profile when viewing a post

ACP Template Events

Identifier Placement Added in Release Explanation
acp_forums_custom_settings acp_forums.html 3.1.6-RC1 Add its own box (fieldset) for extension settings
acp_profile_contact_before acp_profile.html 3.1.6-RC1 Add extra options to custom profile field configuration in the ACP