Hey Stalsky :)
I have a feat request (another one :P ). Would be cool to have the heartbeat stream integrated with the RealName module. This way in the stream it doesnt show the username simply but the Real user Name.

Anyways, your module is already perfect to me and this feat will just make it even more perfect :). I'm using the version 6-4.9 and its great! I just need to adjust one thing on the stream but I have to check the display suite for the heartbeat (I want to add the avatar of the nodes that appear on the stream, but that's on me :) )

Thanks a bunch.

Gill >_<

Comments

jaochoo’s picture

I am using Heartbeat and RealName together and they are working just fine. I suggest you go one of the 2 following ways:

1) In your hook_heartbeat_theme_alter() function, use theme('username', $user) to print the real name (the RealName module overrides that theme-function, i.e. the theme-function will print the real name if there is one and the username otherwise).
2) Directly log the real name along with the message (look into your Rules setup and log the user->RealName instead of the standard user->username).

I am using the 1st approach (because I also display the user-picture etc. along with the message anyways), but the 2nd should work as well. Advantage of the 2nd approach is that you do not query the database again a second time because you use the data which is provided by the Heartbeat message already.

Stalski’s picture

Status: Active » Closed (works as designed)

What jaochoo said in #1 is totally correct. This is meant by design and indeed as everthing is drupal-wise overridable, the sollution suggested works fine.

LiuShaz’s picture

.patch please :)

sw3b’s picture

Yes ! This could be nice to have !!!