Postponed (maintainer needs more info)
Project:
Instant messenger
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2010 at 21:26 UTC
Updated:
24 May 2010 at 17:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
pahariwalla commentedHi,
I'm glad you're doing this. First of all, it's a good practice to override the theming function instead of editing the module file itself. To override, you can add a function in your theme's template.php file. If you are using a theme called mytheme, then you would declare the function
and then copy/paste from im.module code into that function and Drupal will use that instead of the function in im.module.
Anyway,
First question regarding the other persons uid. $user is you, $msg['ruid'] is the person you are talking to.
Second question re: position of picture. Sorry I don't know css enough to give you the right answer. But what you probably want to do is something like wrap the picture into a div with a class, and then style the div in your css (mytheme/style.css) using float: left or something like that.
e.g.
If you are doing this in a chatroom, then you will do something like the above. However, this will put a load on the server because you are doing a user_load for every line of chat. If you are doing this in a 1-on-1 conversation, then the best would be to load the user once only at the top , e.g.
Hope this at least helps. When you do manage to get this working and can send me a patch or a copy of your code, I can also add this coolness as into the module as an option. Thanks!
Comment #2
pahariwalla commentedComment #3
d4rkngel commentedHi,
what I did for me is to show the user pic on the friend-list, since maybe sometimes you forget who is "mark093" and maybe you need to see the user profile or the user picture, so my modification provide the user picture with the username...
hope this helps..