Closed (fixed)
Project:
Heartbeat
Version:
6.x-4.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
8 Jun 2010 at 13:18 UTC
Updated:
22 Jun 2010 at 14:50 UTC
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
Comment #1
Stalski commentedIt'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.
Comment #2
Stalski commentedWith 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.
Comment #3
Stalski commented