diff options
author | Alec <arr70017@uga.edu> | 2018-11-12 01:54:11 -0500 |
---|---|---|
committer | Alec <arr70017@uga.edu> | 2018-11-12 01:54:11 -0500 |
commit | a2480f992d9f35bfe9d9742adf4883e2982211f9 (patch) | |
tree | 460b69e3b3196b8e57fb753c7a55c31b044bb9d9 | |
parent | f4063e475dff62f68bdd4c813bf3450492abb3c1 (diff) | |
download | forums-a2480f992d9f35bfe9d9742adf4883e2982211f9.tar forums-a2480f992d9f35bfe9d9742adf4883e2982211f9.tar.gz forums-a2480f992d9f35bfe9d9742adf4883e2982211f9.tar.bz2 forums-a2480f992d9f35bfe9d9742adf4883e2982211f9.tar.xz forums-a2480f992d9f35bfe9d9742adf4883e2982211f9.zip |
[ticket/15872] Add show_user_activity to display_user_activity_modify_actives
Add config option for toggling most active forum & topic in the user profile.
A bool was added to display_user_activity_modify_actives to achieve this.
PHPBB3-15872
-rw-r--r-- | phpBB/includes/functions_display.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 4c1a90d5b5..792467019f 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -1241,6 +1241,7 @@ function display_user_activity(&$userdata_ary) } $userdata = $userdata_ary; + $show_user_activity = true; /** * Alter list of forums and topics to display as active * @@ -1248,9 +1249,11 @@ function display_user_activity(&$userdata_ary) * @var array userdata User's data * @var array active_f_row List of active forums * @var array active_t_row List of active posts + * @var bool show_user_activity Show user forum and topic activity * @since 3.1.0-RC3 + * @changed 3.2.5-RC1 Added show_user_activity into event */ - $vars = array('userdata', 'active_f_row', 'active_t_row'); + $vars = array('userdata', 'active_f_row', 'active_t_row', 'show_user_activity'); extract($phpbb_dispatcher->trigger_event('core.display_user_activity_modify_actives', compact($vars))); $userdata_ary = $userdata; unset($userdata); @@ -1287,7 +1290,7 @@ function display_user_activity(&$userdata_ary) 'ACTIVE_TOPIC_PCT' => sprintf($l_active_pct, $active_t_pct), 'U_ACTIVE_FORUM' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $active_f_id), 'U_ACTIVE_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $active_t_id), - 'S_SHOW_ACTIVITY' => true) + 'S_SHOW_ACTIVITY' => $show_user_activity) ); } |