how to display the activities of a user if other users visit this user's profile page, just like the personal activity stream of a friend's user page. in D7 there are User Activity and Activity for one single instance, if i choose User Activity, it just show the activities of the logged-in user, no matter in which user's page. if i choose the Activity for one single instance, it always show "No activity yet.", but i'm quite sure, there should be something to display. I really don't know how to configure it. the documentation is not for this version.

Comments

funature’s picture

after looking into the module file, i think useractivity stream should be the right choice.

Stalski’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Active » Closed (cannot reproduce)

It is indeed user activity stream you need. That should work by default on pages like user/%user/user-activity, which is configurable at the user stream configuration page.
when using blocks, you configure your block so "Show activity for the displayed user on the user profile page" is enabled. That is used when you place the stream block on a user/%user page.

This works at my end in latest dev. In 7.x-1.0 this was broken indeed. A release is coming soon.

funature’s picture

i use panels in user profile. and it is mentioned in some forum threads, maybe panels module is not good supported by this module, but there is still a solution, like http://drupal.org/node/1393322 . is that right?

Stalski’s picture

Status: Closed (cannot reproduce) » Closed (fixed)

Well as that issue mentions, you can just add the block in the panel (on the user page) and then the block configuration will do its job. That's why the other issue got fixed.
What I do plan to do, is add ctools content panes integration which would take the panels arguments as heartbeat contextual arguments. That's a plan after the next release this weekend.

So answer: you can use panels (I do it too, but you'd still need to use blocks - configuring them in the blocks administration page)

funature’s picture

great! but i get the Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1572 of .../includes/bootstrap.inc). i don't know if it is caused by heartbeat or panels.