When you click on a person's profile, and you click on "Recent Activity" button next to the Summary button... it doesn't show the person's recent activity.. instead it shows your own recent activity. :O
Ooops, the u={user_id} is missing from the URL.
And also the attachments, displays your own attachments ;)
In your ProfileInfo.Controller.php,
Just add the bolded parts:
$context['current_member'] = $this->_memID;
$context['summarytabs'] = array(
'summary' => array(
'name' => $txt['summary'],
'templates' => array(
array('summary', 'user_info'),
array('contact', 'other_info'),
array('user_customprofileinfo', 'moderation'),
),
'active' => true,
),
'recent' => array(
'name' => $txt['profile_recent_activity'],
'templates' => array('posts', 'topics', 'attachments'),
'active' => true,
'href' => $scripturl . '?action=profileInfo;sa=recent;xml;u='.$context['current_member'].';' . $context['session_var'] . '=' . $context['session_id'],
),
This should solve the problem! Not sure if it's the best way though.. wonder what will the "official fix" be?
https://github.com/elkarte/Elkarte/commit/e6d253f12dfbd11d5f9d84e78cec3ca97624cf0a
Error 404 page not found :p
When I'll push it live it will be fine...unless I rebased in the meantime. :P
Stalking can re commence!