From cdca28eb3fbdf96eeb74a117d0daf407630f8932 Mon Sep 17 00:00:00 2001 From: 3D-I Date: Tue, 8 Jun 2021 23:02:42 +0200 Subject: [PATCH] [ticket/16795] Add template events around signature in viewtopic PHPBB3-16795 --- phpBB/docs/events.md | 14 ++++++++++++++ .../styles/prosilver/template/viewtopic_body.html | 5 ++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index 6ae18433e3..a443a048b7 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -3359,6 +3359,20 @@ viewtopic_body_postrow_rank_before * Purpose: Add data before the rank on the user profile when viewing a post +viewtopic_body_postrow_signature_after +=== +* Locations: + + styles/prosilver/template/viewtopic_body.html +* Since: 3.3.5-RC1 +* Purpose: Add content after the signature + +viewtopic_body_postrow_signature_before +=== +* Locations: + + styles/prosilver/template/viewtopic_body.html +* Since: 3.3.5-RC1 +* Purpose: Add content before the signature + viewtopic_body_topic_actions_before === * Locations: diff --git a/phpBB/styles/prosilver/template/viewtopic_body.html b/phpBB/styles/prosilver/template/viewtopic_body.html index be24263011..e4d7ff2705 100644 --- a/phpBB/styles/prosilver/template/viewtopic_body.html +++ b/phpBB/styles/prosilver/template/viewtopic_body.html @@ -367,7 +367,10 @@


{postrow.BUMPED_MESSAGE}
-
{postrow.SIGNATURE}
+ + {% EVENT viewtopic_body_postrow_signature_before %} + {% if postrow.SIGNATURE %}
{{ postrow.SIGNATURE }}
{% endif %} + {% EVENT viewtopic_body_postrow_signature_after %}