From 7dddf9578c2167b0c1554e0bfd024bfeffa54d2b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 14 Jul 2019 13:20:06 +0200 Subject: [PATCH] Generic event before the username Replaces #2946 --- com.woltlab.wcf/templates/boxSignedInAs.tpl | 7 +++++-- com.woltlab.wcf/templates/boxStaffOnline.tpl | 5 ++++- com.woltlab.wcf/templates/recentActivityListItem.tpl | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/com.woltlab.wcf/templates/boxSignedInAs.tpl b/com.woltlab.wcf/templates/boxSignedInAs.tpl index 3bd70c4300..cf7bfb3b00 100644 --- a/com.woltlab.wcf/templates/boxSignedInAs.tpl +++ b/com.woltlab.wcf/templates/boxSignedInAs.tpl @@ -3,7 +3,10 @@
-

{$__wcf->user->username}

+

+ {event name='beforeUsername'} + {$__wcf->user->username} +

{if MODULE_USER_RANK} {if $__wcf->getUserProfileHandler()->getUserTitle()}

{$__wcf->getUserProfileHandler()->getUserTitle()}

@@ -18,4 +21,4 @@ {include file='userInformationStatistics' user=$__wcf->getUserProfileHandler()->getUserProfile()}
-
\ No newline at end of file + diff --git a/com.woltlab.wcf/templates/boxStaffOnline.tpl b/com.woltlab.wcf/templates/boxStaffOnline.tpl index fe2b9172f2..6e464e7e2c 100644 --- a/com.woltlab.wcf/templates/boxStaffOnline.tpl +++ b/com.woltlab.wcf/templates/boxStaffOnline.tpl @@ -4,7 +4,10 @@
-

{$userOnline->username}

+

+ {event name='beforeUsername'} + {$userOnline->username} +

{if MODULE_USER_RANK} {if $userOnline->getUserTitle()}

{$userOnline->getUserTitle()}

diff --git a/com.woltlab.wcf/templates/recentActivityListItem.tpl b/com.woltlab.wcf/templates/recentActivityListItem.tpl index 5e609c54e9..7c847e04e5 100644 --- a/com.woltlab.wcf/templates/recentActivityListItem.tpl +++ b/com.woltlab.wcf/templates/recentActivityListItem.tpl @@ -6,6 +6,7 @@

+ {event name='beforeUsername'} {$event->getUserProfile()->username} {@$event->time|time}

-- 2.20.1