How To Get Your Avatar In The Chat - UPDATED 07/24/09
This will get the avatars (both yours and theirs) in the lower right hand corner. If anyone can get it into the middle of the balloon please share how. For anyone who may have done this before the update, I've placed a ">" on the steps you'll need to do. For everyone else follow the tut like normal. Also, I'd suggest the gradient in the chat balloons all fading to one side. Looks much better that way ;-)
messaging_2009-15-07_193150.jpg
You will need to have your Pre rooted. Also, don't forget to back up everything you touch.
First step is to type:
[CODE]cd /usr/palm/applications/com.palm.app.messaging/stylesheets[/CODE]
then:
[CODE]sudo vi messaging.css[/CODE]
>Starting at line 139 you will see this:
[CODE].chatRow img.avatar-location {
margin-top: -18px;
}
.chatRow img.avatar-overlay {
margin-top: -21px;
}
.chatRow .avatar-container {
vertical-align: middle;
display: inline-block;
}[/CODE]
>Change the margins in location and overlay so that they look like this:
[CODE]
.chatRow img.avatar-location {
margin-top: -39px;
}
.chatRow img.avatar-overlay {
margin-top: -42.5px;
} [/CODE]
>Now comment out the container:
[CODE]/*.chatRow .avatar-container {
vertical-align: middle;
display: inline-block;
}*/ [/CODE]
>Next, scroll down to line 662. You'll see something like this:
[CODE].my-chat .chat-balloon-wrapper,
.their-chat .chat-balloon-wrapper {
padding: 1px 0;
font-size: 18px;
word-wrap: break-word !important;
}[/CODE]
>Add [CODE]padding-right: 40px;[/CODE]
[CODE].my-chat .chat-balloon-wrapper,
.their-chat .chat-balloon-wrapper {
padding: 1px 0;
font-size: 18px;
word-wrap: break-word !important;
padding-right: 40px;
}[/CODE]
>Comment out line 668:
[CODE]/*.their-chat .chat-balloon-wrapper {
padding-right: 8px ;}*/
[/CODE]
On line 676 you will see this:
[CODE]/* Disabling MY avatar because we are not doing this for 1.0 2008-11-05*/
.my-chat .avatar-location,
.my-chat .avatar-overlay,
.my-chat .avatar-container {
display: none;
width: 40px;
height: 40px;
}[/CODE]
Comment out
[CODE] /*.my-chat .avatar-overlay,*/
/*.my-chat .avatar-container*/
/*display: none;*/[/CODE]
Now save: SHIFT zz or ESC :qw
Type:
[CODE]cd /usr/palm/applications/com.palm.app.messaging/app/controllers[/CODE]
[CODE]sudo vi chatview-assistant.
js[/CODE]
Scroll down to line 1286 and remove the /'s. Should look like this:
[CODE] msg.avatar = this.myAvatar || 'images/my-avatar.png'; [/CODE]
Save: SHIFT zz or ESC :qw
Now you need to upload an avatar and find the image location
In terminal type:
[CODE]cd /usr/palm/applications/com.palm.app.messaging/images/[/CODE]
[CODE]sudo wget (url)[/CODE]
[CODE]sudo mv (filename of the avatar you just downloaded) my-avatar.png[/CODE]
Now type:
[CODE]sudo luna-send -n 1 palm://com.palm.applicationManager/rescan {}[/CODE]
You may need to do a full restart of the phone if after doing the above command does not add the avatar.
Change the Color of the Chat Balloons
The png's for the chat balloons are located here:
/usr/palm/applications/com.palm.app.messaging/images/chatview
Look for chat-balloon-right.png (your chat) and chat-balloon-left.png (friend's chat).
I have both images uploaded already.
Edit them using your favorite image editor.
Now uploaded them to where ever. Copy the image location.
Go to terminal and type:
[CODE]cd /usr/palm/applications/com.palm.app.messaging/images/chatview[/CODE]
[CODE]sudo wget (url)[/CODE]
Now you just need to change the name.
Type: [CODE]sudo mv (filename of url) chat-balloon-right.png[/CODE]
Do the same for the left chat balloon.
Now type: [CODE]sudo luna-send -n 1 palm://com.palm.applicationManager/rescan {}[/CODE]
Here are some pictures of edited chat balloons.
messaging_2009-15-07_202633.jpgmessaging_2009-15-07_193150.jpg1247673181554imagejpeg_2.jpgmessaging_2009-15-07_124008.jpg
Kudos goes out to DJPeterman for his help with the padding <3 and to halmo20 and lilmexx323 for help with the tut after the update.
Also thanks should go out to elryon for figuring out how to center avatars and to change the location avatar locations to the left, check out his mod on page 2.
Attached: