Last time I explored the log message system was when I was doing activity type viewing with Rules and buddylist2 in Drupal 5. As I remember, you are not able to display content related information the way Facebook does. Has that changed?
For example in Facebook when someone changes their user picture a small thumb of the new picture is shown likewise uploaded videos will display as a playable mini-thumb as well as photo thumbs are shown in the activity steam. Can this be done with Heartbeat? For example could it be as powerful for the log to make a relationship with the nid and pull in teaser informartion through views?
Maybe it is like this already...I'm not sure. Would love to hear your thoughts on this.
Greetz from Holland,
Marius
PS. If this is not feasible at all, could it support log-type class names in the list? This in order to create icons to represent the type of log message, e.g., a relationship log, comment log, content log, login log, og log. Than at least you can create some visual styling to the heartbeat listing.
Comments
Comment #1
Stalski commentedHey,
Sorry for the late answer.
This is certainly possible as i did all what you indicated in a site I worked on at work. I really have to document everything because it can get a bit complicated.
When you build a heartbeatmessage, you can use html tags in it. Everything should be handled fine. I uses somethings like:
<span class="user">!username</span> posted !title.On how to show user images or avatar changes, is a bit more comlicated. For this you have to make a token yourself using the token hooks. I will give you an excerpt of code i used successfully.
As you can see, I used the image_cache module and a gallery module. I handled this project-specific and is rather difficult to bring into the heartbeat code. For the video and vid-thumb , be my guest and try it out. With the rules and token approach, we are limited to the the hooks i gave an example of.
Heartbeat just uses a trick of own variables that are assigned to tokens (by users of this module) and making it free for us to handle specific project needs.
I hope i helped you with this.
Comment #2
Stalski commentedComment #3
mariusooms commentedAbsolutely...will give it a whirl when I get a chance.
Regards,
Marius