Hello I installed the heartbeat module and it works great. I am able to show images, and messages fine. However, I created a new content type for tee shirt designs and I want to show the image of the design in the heartbeat stream. The message for the shirt images shows up but the image does not. This is the code I am using to show the message and image can you asssist me with better code?

!username has added a!title.<div class="images"><img src="/files/imagecache/design_thumpnail/!image"</img></div>

Comments

Stalski’s picture

It's better to render the image another way. The image tag is not closed in your code as well. Here is how i always do it:

!username has added !title.<div class="images">!image"</div>

I will give you a link where i explained the ways how you can achieve such a feature with tokens.
So with code, you create a token specific for you cck image (on the content type) and use it in your rule.
http://heartbeat.menhireffect.be/docs/how-add-variables-and-tokens

If you don't use rules but custom code, you can just create the image as you would do other wise. Here is a link with all the ways how you can add the avatar in the user object. You could do the same thing for nodes.
http://heartbeat.menhireffect.be/faq/it-possible-include-acting-users-av...

Feel free to reopen this issue when you have questions on this matter.

Stalski’s picture

With this approach and merging the message , !image will be replace by all images in a grouping manner. This works very nicely as i did it a lot like that.

Stalski’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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