From b550d1db0aec95c658ccd89447308f380de5d1d6 Mon Sep 17 00:00:00 2001
From: rxu
Date: Sat, 1 Jul 2023 00:20:24 +0700
Subject: [PATCH] [ticket/17152] Add template event to viewtopic_body.html
Add template event to viewtopic_body.html before the message
PHPBB3-17152
---
phpBB/docs/events.md | 7 +++++++
phpBB/styles/prosilver/template/viewtopic_body.html | 2 ++
2 files changed, 9 insertions(+)
diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md
index cc0d5f7a21..db85aaa8f2 100644
--- a/phpBB/docs/events.md
+++ b/phpBB/docs/events.md
@@ -3304,6 +3304,13 @@ viewtopic_body_postrow_content_after
* Since: 3.2.4-RC1
* Purpose: Add content after the message content in topics views
+viewtopic_body_postrow_content_before
+===
+* Locations:
+ + styles/prosilver/template/viewtopic_body.html
+* Since: 3.3.11-RC1
+* Purpose: Add content before the message content in topics views
+
viewtopic_body_postrow_custom_fields_after
===
* Locations:
diff --git a/phpBB/styles/prosilver/template/viewtopic_body.html b/phpBB/styles/prosilver/template/viewtopic_body.html
index 198304e293..ea65c7eac8 100644
--- a/phpBB/styles/prosilver/template/viewtopic_body.html
+++ b/phpBB/styles/prosilver/template/viewtopic_body.html
@@ -336,6 +336,8 @@
+ {% EVENT viewtopic_body_postrow_content_before %}
+
{postrow.MESSAGE}