Skip to main content
Topic: Recent Activity in a person's profile error (1.1) (Read 2180 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Recent Activity in a person's profile error (1.1)

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

Facta, non verba.

Re: Recent Activity in a person's profile error (1.1)

Reply #1

Ooops, the u={user_id} is missing from the URL.
Bugs creator.
Features destroyer.
Template killer.

Re: Recent Activity in a person's profile error (1.1)

Reply #2

And also the attachments, displays your own attachments ;)
sorry for my bad english

Re: Recent Activity in a person's profile error (1.1)

Reply #3

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?

Facta, non verba.


Re: Recent Activity in a person's profile error (1.1)

Reply #5

Error 404 page not found :p
Facta, non verba.

Re: Recent Activity in a person's profile error (1.1)

Reply #6

When I'll push it live it will be fine...unless I rebased in the meantime. :P
Bugs creator.
Features destroyer.
Template killer.

Re: Recent Activity in a person's profile error (1.1)

Reply #7

Stalking can re commence!