From ed3f46a9b14a94be0a7da564d5ca25198390e7dc Mon Sep 17 00:00:00 2001 From: javiexin Date: Sat, 4 Jul 2015 01:51:06 +0200 Subject: [PATCH] [ticket/13982] Add events around ranks Add events to present information around ranks in the memberlist, user profile, viewtopic profile and private message profile. PHPBB3-13982 --- phpBB/docs/events.md | 96 +++++++++++++++++++ .../prosilver/template/memberlist_body.html | 2 +- .../prosilver/template/memberlist_view.html | 4 + .../template/ucp_pm_viewmessage.html | 2 + .../prosilver/template/viewtopic_body.html | 2 + .../subsilver2/template/memberlist_body.html | 2 +- .../subsilver2/template/memberlist_view.html | 2 + .../subsilver2/template/viewtopic_body.html | 2 + 8 files changed, 110 insertions(+), 2 deletions(-) diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index a76da95f7b..bc8825be7f 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -517,6 +517,24 @@ mcp_front_latest_unapproved_before * Since: 3.1.3-RC1 * Purpose: Add content before latest unapproved posts list +memberlist_body_rank_append +=== +* Locations: + + styles/prosilver/template/memberlist_body.html + + styles/subsilver2/template/memberlist_body.html +* Since: 3.1.6-RC1 +* Purpose: Add information after rank in memberlist. Works in +all display modes (leader, group and normal memberlist). + +memberlist_body_rank_prepend +=== +* Locations: + + styles/prosilver/template/memberlist_body.html + + styles/subsilver2/template/memberlist_body.html +* Since: 3.1.6-RC1 +* Purpose: Add information before rank in memberlist. Works in +all display modes (leader, group and normal memberlist). + memberlist_body_username_append === * Locations: @@ -591,6 +609,48 @@ memberlist_view_content_prepend * Since: 3.1.0-b3 * Purpose: Add custom content to the user profile view before the main content +memberlist_view_rank_after +=== +* Locations: + + styles/subsilver2/template/memberlist_view.html +* Since: 3.1.6-RC1 +* Purpose: Add information after rank in memberlist + +memberlist_view_rank_avatar_after +=== +* Locations: + + styles/prosilver/template/memberlist_view.html +* Since: 3.1.6-RC1 +* Purpose: Add information after rank in memberlist (with avatar) + +memberlist_view_rank_avatar_before +=== +* Locations: + + styles/prosilver/template/memberlist_view.html +* Since: 3.1.6-RC1 +* Purpose: Add information before rank in memberlist (with avatar) + +memberlist_view_rank_before +=== +* Locations: + + styles/subsilver2/template/memberlist_view.html +* Since: 3.1.6-RC1 +* Purpose: Add information after rank in memberlist + +memberlist_view_rank_no_avatar_after +=== +* Locations: + + styles/prosilver/template/memberlist_view.html +* Since: 3.1.6-RC1 +* Purpose: Add information after rank in memberlist (without avatar) + +memberlist_view_rank_no_avatar_before +=== +* Locations: + + styles/prosilver/template/memberlist_view.html +* Since: 3.1.6-RC1 +* Purpose: Add information before rank in memberlist (without avatar) + memberlist_view_user_statistics_after === * Locations: @@ -1227,6 +1287,23 @@ ucp_pm_viewmessage_print_head_append * Since: 3.1.0-a1 * Purpose: Add asset calls directly before the `` tag of the Print PM screen +ucp_pm_viewmessage_rank_after +=== +* Locations: + + styles/prosilver/template/ucp_pm_viewmessage.html +* Since: 3.1.6-RC1 +* Purpose: Add data after the rank on the user profile when viewing +a private message + +ucp_pm_viewmessage_rank_before +=== +* Locations: + + styles/prosilver/template/ucp_pm_viewmessage.html +* Since: 3.1.6-RC1 +* Purpose: Add data before the rank on the user profile when viewing +a private message + + ucp_prefs_personal_prepend === * Locations: @@ -1663,6 +1740,25 @@ viewtopic_body_postrow_post_notices_before * Since: 3.1.0-b2 * Purpose: Add posts specific custom notices at the notices top. +viewtopic_body_postrow_rank_after +=== +* Locations: + + styles/prosilver/template/viewtopic_body.html + + styles/subsilver2/template/viewtopic_body.html +* Since: 3.1.6-RC1 +* Purpose: Add data after the rank on the user profile when viewing +a post + +viewtopic_body_postrow_rank_before +=== +* Locations: + + styles/prosilver/template/viewtopic_body.html + + styles/subsilver2/template/viewtopic_body.html +* Since: 3.1.6-RC1 +* Purpose: Add data before the rank on the user profile when viewing +a post + + viewtopic_body_topic_actions_before === * Locations: diff --git a/phpBB/styles/prosilver/template/memberlist_body.html b/phpBB/styles/prosilver/template/memberlist_body.html index 512df7b0a7..4ea0bc2f1e 100644 --- a/phpBB/styles/prosilver/template/memberlist_body.html +++ b/phpBB/styles/prosilver/template/memberlist_body.html @@ -102,7 +102,7 @@ - {memberrow.RANK_IMG}{memberrow.RANK_TITLE} {memberrow.USERNAME_FULL}
{L_SELECT} ] + {memberrow.RANK_IMG}{memberrow.RANK_TITLE} {memberrow.USERNAME_FULL}
{L_SELECT} ] {memberrow.POSTS}{memberrow.POSTS}
{memberrow.custom_fields.PROFILE_FIELD_VALUE}
  {memberrow.JOINED} diff --git a/phpBB/styles/prosilver/template/memberlist_view.html b/phpBB/styles/prosilver/template/memberlist_view.html index 5d8e6ec8a8..8ecca49a60 100644 --- a/phpBB/styles/prosilver/template/memberlist_view.html +++ b/phpBB/styles/prosilver/template/memberlist_view.html @@ -11,8 +11,10 @@
{AVATAR_IMG}
+
{RANK_TITLE}
{RANK_IMG}
+
@@ -26,8 +28,10 @@ [ {L_USE_PERMISSIONS} ] +
{L_RANK}{L_COLON}
{RANK_TITLE}
 {L_RANK}{L_COLON}
{RANK_IMG}
+
{L_USER_IS_INACTIVE}{L_COLON}
{USER_INACTIVE_REASON}
{L_AGE}{L_COLON}
{AGE}
diff --git a/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html b/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html index 02c5f5b1a5..7704209fc8 100644 --- a/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html +++ b/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html @@ -27,7 +27,9 @@ {MESSAGE_AUTHOR_FULL} +
{RANK_TITLE}
{RANK_IMG}
+
{L_POSTS}{L_COLON} {AUTHOR_POSTS}{AUTHOR_POSTS}
{L_JOINED}{L_COLON} {AUTHOR_JOINED}
diff --git a/phpBB/styles/prosilver/template/viewtopic_body.html b/phpBB/styles/prosilver/template/viewtopic_body.html index 5b8078877e..e77fc1dada 100644 --- a/phpBB/styles/prosilver/template/viewtopic_body.html +++ b/phpBB/styles/prosilver/template/viewtopic_body.html @@ -142,7 +142,9 @@ +
{postrow.RANK_TITLE}
{postrow.RANK_IMG}
+
{L_POSTS}{L_COLON} {postrow.POSTER_POSTS}
{L_JOINED}{L_COLON} {postrow.POSTER_JOINED}
diff --git a/phpBB/styles/subsilver2/template/memberlist_body.html b/phpBB/styles/subsilver2/template/memberlist_body.html index d412a6a64b..79b78f32a4 100644 --- a/phpBB/styles/subsilver2/template/memberlist_body.html +++ b/phpBB/styles/subsilver2/template/memberlist_body.html @@ -67,7 +67,7 @@ {memberrow.USERNAME_FULL}{L_SELECT} ]  {memberrow.JOINED}  {memberrow.POSTS} - {memberrow.RANK_IMG}{memberrow.RANK_TITLE} + {memberrow.RANK_IMG}{memberrow.RANK_TITLE}  {EMAIL_IMG}  diff --git a/phpBB/styles/subsilver2/template/memberlist_view.html b/phpBB/styles/subsilver2/template/memberlist_view.html index 00c627f62e..24e96c412c 100644 --- a/phpBB/styles/subsilver2/template/memberlist_view.html +++ b/phpBB/styles/subsilver2/template/memberlist_view.html @@ -26,6 +26,7 @@ {USERNAME} [ {L_USER_BAN} ] [ {L_USER_ADMIN} ] + {RANK_TITLE} @@ -36,6 +37,7 @@ {RANK_IMG} + {AVATAR_IMG} diff --git a/phpBB/styles/subsilver2/template/viewtopic_body.html b/phpBB/styles/subsilver2/template/viewtopic_body.html index 721aa5cb01..f679d25853 100644 --- a/phpBB/styles/subsilver2/template/viewtopic_body.html +++ b/phpBB/styles/subsilver2/template/viewtopic_body.html @@ -190,6 +190,7 @@ {postrow.ONLINE_IMG} + {postrow.RANK_TITLE} @@ -200,6 +201,7 @@ {postrow.RANK_IMG} +