Hi,

I remember there was quite a bit of discussion about how to put Facebook-style User avatars in both full message/tread view as well as a in message inbox listing in Privatemsg 5x-3.0. On my 5.x site I managed to achieve this by integrating custom codes in that discussion with Imagecache Profiles, which resulted in a nice effect and was well received by my end-users. I'm wondering if the same would be possible for Privatemsg 6x??? , (but I found no documentation on how to achieve that.)

I'm also wondering if the autocomlete function in "To:" field could also return the small avatar and user-name ? (we see this at work on most SNS sites like Facebook)

Many-many thanks!

Comments

Berdir’s picture

Version: 6.x-1.1 »

Avatars in the autocomplete seems like a nice idea.

I'm not sure about the thread lists, the issue is that you might have several authors in the same thread and unfortunately, it's not yet possible to figure out the last author (except with separate queries) so which author should be displayed?

New features are however only added to 6.x-2.x-dev, so changing the version. You are of course free to backport a patch (if there will be one).

drupalina’s picture

Avatars appearing in autocomplete:
I think this could be pretty easy for you to achieve!
there was a custom package of modules called "Statusbook" http://www.netrift.com/content/statusbook which tried to emulate Facebook as close as possible.
Download and install the 1x.449 tar.gz on that page and (optionally) the theme sb.1.389.tar.gz. If you enable the core "Statusbook" module and the "Friend" module inside that package, the autocomplete function in "To:" field of the PrivateMsg begins to show avatars of only those users who are "Friends" with the current user. So, the required code is somewhere in "friends" folder. To save you time, you can copy/modify the code from the "friends" module of that "Statusbook" package (I tried, but I'm not a coder). I think the small codes that you need are in "friends.ajax.inc" and also in "friends.module" But it would be nice to have avatars of all users registered on the site (or at least an option for admins what to display).

Which avatars to appear in threaded lists?
I've just tested my 5x-3.0 and the avatars of the Last Replier are appearing with no problems (the topic name stays original because in threaded conversation Subject field is not appearing and therefore cannot be altered). But this is in case of 1-to-1 messages. If I remember correctly, the 5x-3.0 version was not designed with "Reply to All" functionality.

I realise that there might be difficulties and modifications in case of Multi-authored threaded messages (if a message is sent to multiple recepients and then one of the recepients replies to all). In that case, logically, "the avatar of the Last replier" should show, but the title should remain the same with an automated "Re:" added to the title. Look at how Facebook is doing it. It's pretty neat and user-friendly.

oadaeh’s picture

Version: » 6.x-2.x-dev
Component: User interface » Code
Issue summary: View changes
Status: Active » Closed (won't fix)

This issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-1.x branch (bug fixes only) or the 7.x-2.x branch.
Thank you.