Closed (works as designed)
Project:
Heartbeat
Version:
6.x-4.9
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2010 at 21:42 UTC
Updated:
16 Nov 2010 at 20:46 UTC
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
Comment #1
jaochoo commentedI 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, usetheme('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.
Comment #2
Stalski commentedWhat 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.
Comment #3
LiuShaz commented.patch please :)
Comment #4
sw3b commentedYes ! This could be nice to have !!!