Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
funature CreditAttribution: funature commentedafter looking into the module file, i think useractivity stream should be the right choice.
Comment #2
Stalski CreditAttribution: Stalski commentedIt 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.
Comment #3
funature CreditAttribution: funature commentedi 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?
Comment #4
Stalski CreditAttribution: Stalski commentedWell 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)
Comment #5
funature CreditAttribution: funature commentedgreat! 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.