Line 52 | Line 52 |
---|
// Grab icons $icons = $cache->obtain_icons();
|
// Grab icons $icons = $cache->obtain_icons();
|
$bbcode = false;
// Instantiate BBCode if need be if ($message_row['bbcode_bitfield']) { include($phpbb_root_path . 'includes/bbcode.' . $phpEx); $bbcode = new bbcode($message_row['bbcode_bitfield']); }
| |
// Load the custom profile fields if ($config['load_cpf_pm'])
| // Load the custom profile fields if ($config['load_cpf_pm'])
|
Line 197 | Line 188 |
---|
$u_pm = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=compose&u=' . $author_id); }
|
$u_pm = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=compose&u=' . $author_id); }
|
if ($user_info['user_jabber'] && $auth->acl_get('u_sendim'))
| if ($config['jab_enable'] && $user_info['user_jabber'] && $auth->acl_get('u_sendim'))
|
{ $u_jabber = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=jabber&u=' . $author_id); }
| { $u_jabber = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=jabber&u=' . $author_id); }
|
Line 213 | Line 204 |
---|
'AUTHOR_AVATAR' => (isset($user_info['avatar'])) ? $user_info['avatar'] : '', 'AUTHOR_JOINED' => $user->format_date($user_info['user_regdate']), 'AUTHOR_POSTS' => (int) $user_info['user_posts'],
|
'AUTHOR_AVATAR' => (isset($user_info['avatar'])) ? $user_info['avatar'] : '', 'AUTHOR_JOINED' => $user->format_date($user_info['user_regdate']), 'AUTHOR_POSTS' => (int) $user_info['user_posts'],
|
| 'U_AUTHOR_POSTS' => ($config['load_search'] && $auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$author_id&sr=posts") : '',
|
'CONTACT_USER' => $user->lang('CONTACT_USER', get_username_string('username', $author_id, $user_info['username'], $user_info['user_colour'], $user_info['username'])),
'ONLINE_IMG' => (!$config['load_onlinetrack']) ? '' : ((isset($user_info['online']) && $user_info['online']) ? $user->img('icon_user_online', $user->lang['ONLINE']) : $user->img('icon_user_offline', $user->lang['OFFLINE'])),
| 'CONTACT_USER' => $user->lang('CONTACT_USER', get_username_string('username', $author_id, $user_info['username'], $user_info['user_colour'], $user_info['username'])),
'ONLINE_IMG' => (!$config['load_onlinetrack']) ? '' : ((isset($user_info['online']) && $user_info['online']) ? $user->img('icon_user_online', $user->lang['ONLINE']) : $user->img('icon_user_offline', $user->lang['OFFLINE'])),
|
Line 273 | Line 265 |
---|
* @var array message_row Array with message data * @var array cp_row Array with senders custom profile field data * @var array msg_data Template array with message data
|
* @var array message_row Array with message data * @var array cp_row Array with senders custom profile field data * @var array msg_data Template array with message data
|
| * @var array user_info User data of the sender
|
* @since 3.1.0-a1
|
* @since 3.1.0-a1
|
| * @changed 3.1.6-RC1 Added user_info into event
|
*/ $vars = array( 'id',
| */ $vars = array( 'id',
|
Line 284 | Line 278 |
---|
'message_row', 'cp_row', 'msg_data',
|
'message_row', 'cp_row', 'msg_data',
|
| 'user_info',
|
); extract($phpbb_dispatcher->trigger_event('core.ucp_pm_view_messsage', compact($vars)));
| ); extract($phpbb_dispatcher->trigger_event('core.ucp_pm_view_messsage', compact($vars)));
|