Skip to content

Ticket/17727 Add core.mcp_notes_user_modify_template_vars + mcp_notes_user_rank_after - #7059

Open
bonelifer wants to merge 1 commit into
phpbb:3.3.xfrom
bonelifer:ticket/17727
Open

bonelifer wants to merge 1 commit into
phpbb:3.3.xfrom
bonelifer:ticket/17727

Conversation

@bonelifer

@bonelifer bonelifer commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Checklist:

  • Correct branch: master for new features; 3.3.x for fixes
  • Tests pass
  • Code follows coding guidelines: master and 3.3.x
  • Commit follows commit message format

Tracker ticket:

https://tracker.phpbb.com/browse/PHPBB-17727

@github-actions

Copy link
Copy Markdown

The attempt to merge branch 3.3.x into master has completed after considering the changes in this PR.

  • Merge result: Conflict ❌

A separate PR will be needed to merge 3.3.x into master.

mcp_notes.php has zero trigger_event() calls anywhere in the file.
mcp_notes_user_view() fetches userrow, computes rank_data and
avatar_img, then goes straight to a single assign_vars() call with no
hook point anywhere in between. The template has no event tag anywhere
either, so there is no way to add anything to this page without
overriding the whole template.

Same gap as core.mcp_warn_user_modify_template_vars and
core.mcp_warn_post_modify_template_vars - all three MCP user-detail
pages share the identical details-block markup for rank/joined/posts/
warnings, and all three lacked any hook near it.

Adds a PHP event before the rest of the function runs, exposing
userrow, rank_data and avatar_img, plus a template event right after
the rank output, at the same position as the other two.

PHPBB-17727
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant