Closed (fixed)
Project:
Heartbeat
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
6 Jan 2011 at 10:06 UTC
Updated:
2 Apr 2012 at 18:38 UTC
I managed to build my messages using Realnames with rules and display them with display suite, but when a user reacts it's the username instead of realname that shows.
Is there maybe a way to change this?
Thank you soo much for this incredible module,
D
Comments
Comment #1
Stalski commentedYes, You need to simple override the theme function "function theme_heartbeat_comment".
You will need to take over the function and replace this line beneath with your realname implementation (I checked realname for you, and think the sollution, included in the code beneath as well)
Comment #2
Donaldd commentedIt works!! :)
Thank you soo much Stalski!
Comment #3
Stalski commentedGlad i can refer to this issue now. I will spontanuously create a documentation page on
http://heartbeat.menhireffect.be/docs/using-realname-module
Comment #5
c-c-m commentedSorry to reopen this. Could you explain where and how is to be copied that piece of code?
thanks!
Comment #6
Stalski commentedIt is explained on that page. Its a theme override for theme_heartbeat_comment. So just the basic drupal theme implemenation.
phptemplate_heartbeat_comment in your module or theme's template.php will fix your problem. That is what theme functions are for.
Comment #7
c-c-m commentedSorry to say that that page didn't say where to place the code, although a user with knowledge in theme functions may have already known that because it seems obvious. It is not my case. That's why I made a dummy question, but I really needed it.
Thank you anyway for your explanations, I know now where to place that code and future theme functions.
Comment #8
misterpronin commentedWho knows what to do in drupal 7? Thanks in advance))
Comment #9
Stalski commented