I've set my "personal heartbeat" block to show on my user profile page (user/3), but when I go view another user's profile page (user/4) it still shows my heartbeat activity, not the other person's.

Is there a way to only show the heartbeat activity for the user's page you are on?

Thanks

Comments

Stalski’s picture

Assigned: Unassigned » Stalski
Status: Active » Needs work

Ok,

I will look into this, but yes it is possible. I even think you could build it with views.
I will try this first:
- add heartbeat view
- choose the heartbeat row style plugin
- set a filter for the access type, personal
- set an argument based on wildcards in url

I will keep you informed. Maybe i will provide this as menu item with page as well.

Stalski’s picture

Status: Needs work » Fixed

Hey,

Ready to use.
next nightly release will include:
- views update to the access handler, taking a extra filter argument acting user/requested user. By choosing this you can make another block-display or page-display for the given parameters. This will be handy to use in your custom website.
- extra default block provided to show on the user /profile page as you were trying to do. This works for me now. You will see this new block in the administer blocks with the name "Personal heartbeat for requested user"

I hoped I helped you with this. I was in fact a feature that was there in the beginning but forgot to take it with me after refactoring the code.

Thx

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gilcpd’s picture

But using Views will not allow to use the "Heartbeat attachements" right? So for instance it wont be possible to "react" or comment on each heartbeat or flag it.

Also taking the opportunity, is there a way to combine the updates stream from Heartbeat and Activity Stream module into one?
Is there a module for it, or can I create Rules for each new "Activity Stream" item to create one Heartbeat item so I have both streams in one block?

Thanks :D

Stalski’s picture

That is correct.
What we will be able to do in the future, is choose a build mode (Heartbeat Display Suite) so we can manage the fields ourself. This way we could still have that, but that is not for the upcoming week.

drupov’s picture

subscribe

ManyNancy’s picture

Status: Closed (fixed) » Active

So the personal heartbeat block always shows current user heartbeat not profile user heartbeat?

So there basically is no way to get the profile user heartbeat with attachments for now?

Stalski’s picture

Status: Active » Needs work

Yes there is.
For each stream, there is a block available with a setting for this (block setting). if you enable "show activity for displayed user", then it should show activity as you requested.

Currently there is no page with that functionality but i am working on it.
With views (but then you don't have all nice features of heartbeat display), it is possible too using arguments.

Thus: for the moment: enable block private, configure the stream for it, configure the block settings for it and it should work.

regards,

Stalski

Stalski’s picture

Status: Needs work » Fixed

There is a page available on the profile page now as well. When enabling the stream to the profile, it adds a menu item.
Blocks with setting to handle differently on profile page will work as well.

Stalski’s picture

Status: Fixed » Closed (fixed)
gargsuchi’s picture

Status: Closed (fixed) » Active

I needed to show the connected heartbeat on user profile and it works great initially. But the moment it polls the data (10 secs in my case), the polling is done for the current user and not the user whose profile we r having a look at. It seems that during the poll, the context is not being maintained.

Stalski’s picture

Status: Active » Needs work

hmm I will look into this. During poll new messages should pop on top and the dates need to be refreshed. During polling , the user context gets lost appearantly.
I will have to bug this out.

Stalski’s picture

After a lot of sweat, this is fixed locally. A release is planned soon.

Stalski’s picture

Status: Needs work » Active
mstef’s picture

[edit]

Stalski’s picture

So if you configure the block to show it for the displayed user on the user page, it does not work for you?

terbs’s picture

No, it does not work.

If I assign the 'public heartbeat' block to the profile page, and check the "Show activity for the displayed user on the user profile page" it still only shows activity of the currently logged in user.

Stalski’s picture

@aiquandol: that's not even possible for the public heartbeat in normal behavior. Public heartbeat does not have a uid in the query ( AND ua.uid > 0 AND ua.access > 0 ).
This feature is only available with the built-in private and related or connected heartbeat. It would be with your custom streams as well whenever you use the uid in the query for your streamobject.

Stalski’s picture

Status: Active » Fixed

So i checked and rechecked this, even added a permission feature to let you control the access on the personal heartbeat stream by default.
So public heartbeat is public to all and takes no consideration of the current or displayed user. The messages are just shown according to the permissions set by the actor of each message.

As i mentioned, i rechecked the personal heartbeat with "Show activity for the displayed user on the user profile page" enabled and it seems to work just fine.

If this keeps happening, feel free to reopen this issue and we will take it from there with a use case i can reproduce.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.