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.
I currently have Facebook style statuses working with heartbeat, so that when a user adds a FB status, it creates a heartbeat entry. However, what I can't get is the avatar of the person making the FB status update to show. There is no token for it in the Triggered Rules token list, because the FB status tokens are different than the rest of my Triggered Rules for Heartbeat. It's not author created, but sender created. I can get the UID of the sender of the FB status, but not the avatar. Is there a way to add this, and if so, where exactly should I add it?
Comments
Comment #1
vishun CreditAttribution: vishun commentedThere are a couple approaches outlined on the developers site at http://heartbeat.menhireffect.be/faq/it-possible-include-acting-users-av...
It seems I may be using yet another approach via a custom theme callback from a similar FBSS and Heartbeat integration module.
Comment #2
fives CreditAttribution: fives commentedTo be honest I find the documentation site assumes you know a lot about heartbeat, which I don't. I don't know where to put the code they say for creating custom tokens, and I'm not even sure that will solve my problem.
When I tried to use the theming method, that didn't work either because when users change their profile pictures, heartbeat looks for their old profile picture and can't find it, and displays a broken image.
Is there anywhere I can see what I have access to in $variables[message]? Maybe I can do something with that.
What is your solution, exactly?
Comment #3
jason_hvdn CreditAttribution: jason_hvdn commentedThe heartbeat module is a crap. Even simple function as displaying avatar take you DAYS to have it done. Crappy stuff