webOS Nation Forums > webOS apps and software > webOS development > How To Get Your Avatar In The Chat & Change the Color of the Chat Balloons
1 2 3 4 5 6 7 8  ... Last
Member: as4life
at: 02:33 PM 07/19/2009
Originally Posted by elryon:
I got the avatar to center and be wrapped correctly...
the only changes needed to the original messaging.css are:

line 644:
my-chat .message-container {
width 255px;
}

and line 676:

/* 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: inline-block;
width: 40px;
height: 40px;
}

then proceed with adding your avatar pic as before.
Can you post a screenshot? I reverted back to the original messaging.css file and followed your edits and now my pictures aren't in the bubble (it overlaps it)
Reply
Member: as4life
at: 03:17 PM 07/19/2009
also, how do you move my avator to the left? Or better yet have the whole messaging interface look like ichat?
Reply
Member: as4life
at: 03:30 PM 07/19/2009
nvm i figured out that my image is looking like that because of the backround
Reply
Member: elryon
at: 03:35 PM 07/19/2009
Originally Posted by as4life:
Can you post a screenshot? I reverted back to the original messaging.css file and followed your edits and now my pictures aren't in the bubble (it overlaps it)
make sure it doesnt contain the commas after the lines... here's a screenshot:

screenshot.jpg

I'll go back over and see if I made anymore changes I might have missed.
Attached:
Reply
Member: elryon
at: 04:11 PM 07/19/2009
Originally Posted by as4life:
also, how do you move my avator to the left? Or better yet have the whole messaging interface look like ichat?
not sure about ichat... never used it. but you can move the avatar to the left with a few changes.. did you want both avatars or just yours on the left?

first change starting around line 133:

img.avatar-location {
left: 6px;
position: absolute;
margin: 13px 12px 0px 0px;
}

img.avatar-overlay {
left: 2px;
margin-top: 10px;
position: absolute;
}

then around line 643:

.their-chat .message-container {
width: 265px;
}
.my-chat .message-container {
width: 265px;
}

and finally around 661:

.my-chat .chat-balloon-wrapper {
padding-left: 40px;
}
.their-chat .chat-balloon-wrapper {
padding: 1px 0;
font-size: 18px;
word-wrap: break-word !important;
}
.their-chat .chat-balloon-wrapper {
padding-left: 8px;

here's a screenshot... screenshot2.jpg
Attached:
Reply
Member: sarah peterman
at: 04:14 PM 07/19/2009
Originally Posted by elryon:
I got the avatar to center and be wrapped correctly...
the only changes needed to the original messaging.css are:

line 644:
my-chat .message-container {
width 255px;
}

and line 676:

/* 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: inline-block;
width: 40px;
height: 40px;
}

then proceed with adding your avatar pic as before.
Nice job, thank you. :-)
Reply
Member: elryon
at: 04:33 PM 07/19/2009
Originally Posted by sarah peterman:
Nice job, thank you. :-)
someone wouldnt happen to have a copy of the original messaging.css file I could download? I never backed it up and have done a lot of tinkering now...
please post a link and I can wget it directly to the emulator.
Reply
Member: sarah peterman
at: 04:37 PM 07/19/2009
Originally Posted by elryon:
someone wouldnt happen to have a copy of the original messaging.css file I could download? I never backed it up and have done a lot of tinkering now...
please post a link and I can wget it directly to the emulator.
Here is the link to chatview-assistant.js and messaging.css
Reply
Member: sarah peterman
at: 04:58 PM 07/19/2009
Here's some more...

chat-view-greypeachleft.pngchat-view-greypeach.png
chat-view-pinkleft.pngchat-view-pink.png
chat-view-pinktipleft.pngchat-view-pinktip.png
chat-view-purpleleft.pngchat-view-purple.png
Attached:
Reply
Member: as4life
at: 05:11 PM 07/19/2009
Originally Posted by elryon:
not sure about ichat... never used it. but you can move the avatar to the left with a few changes.. did you want both avatars or just yours on the left?

first change starting around line 133:

img.avatar-location {
left: 6px;
position: absolute;
margin: 13px 12px 0px 0px;
}

img.avatar-overlay {
left: 2px;
margin-top: 10px;
position: absolute;
}

then around line 643:

.their-chat .message-container {
width: 265px;
}
.my-chat .message-container {
width: 265px;
}

and finally around 661:

.my-chat .chat-balloon-wrapper {
padding-left: 40px;
}
.their-chat .chat-balloon-wrapper {
padding: 1px 0;
font-size: 18px;
word-wrap: break-word !important;
}
.their-chat .chat-balloon-wrapper {
padding-left: 8px;

here's a screenshot... Attachment 22638
I just want my avatars to move to the left
Reply
Member: elryon
at: 05:19 PM 07/19/2009
Originally Posted by as4life:
I just want my avatars to move to the left
that will take a little more time.. but from what I've seen, it can be done. Right now I'm trying to load the original .css file but cant seem to figure out how to save it on the emulator and replace the one there... any help would be thanked.
Reply
Member: sarah peterman
at: 05:29 PM 07/19/2009
Originally Posted by elryon:
that will take a little more time.. but from what I've seen, it can be done. Right now I'm trying to load the original .css file but cant seem to figure out how to save it on the emulator and replace the one there... any help would be thanked.
Sorry, I won't be of any help with the emulator. :-/
Reply
Member: MaSwaggSoSiQ
at: 05:32 PM 07/19/2009
Originally Posted by elryon:
I got the avatar to center and be wrapped correctly...
the only changes needed to the original messaging.css are:

line 644:
my-chat .message-container {
width 255px;
}

and line 676:

/* 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: inline-block;
width: 40px;
height: 40px;
}

then proceed with adding your avatar pic as before.
so if i do this does that mean i have to go through the whole process again or can i make the noted changes, save and exit?
Reply
Member: elryon
at: 05:38 PM 07/19/2009
Originally Posted by MaSwaggSoSiQ:
so if i do this does that mean i have to go through the whole process again or can i make the noted changes, save and exit?
you should be able to just make the changes, save and exit. If your starting with an already modified file as per the previous instructions, you may want to undo any previous changes and only have the listed ones.
Reply
Member: MaSwaggSoSiQ
at: 05:45 PM 07/19/2009
so basically if i followed sarahs way i need to undo all of those changes before i apply the new ones to center the avatar?
Reply
Member: elryon
at: 05:52 PM 07/19/2009
yes, I believe so.. or if you backed up or original messaging.css just restore that and do the changes I listed. That should do it, I'm testing right now.

yes... it works from the original .css file just making the changes I listed. You will still need to make the rest of the changes to the other file for the image..
Reply
Member: as4life
at: 06:09 PM 07/19/2009
so far this is what i have. Any way to align it properly?



Reply
Member: elryon
at: 06:20 PM 07/19/2009
[QUOTE=as4life;1761708]so far this is what i have. Any way to align it properly?



try editing this:
.my-chat .chat-balloon-wrapper {
padding-left: 40px;
}

changing the padding should help. It did that to me the first time I tried it.
Reply
Member: as4life
at: 06:32 PM 07/19/2009
[QUOTE=elryon;1761720]
Originally Posted by as4life:
so far this is what i have. Any way to align it properly?



try editing this:
.my-chat .chat-balloon-wrapper {
padding-left: 40px;
}

changing the padding should help. It did that to me the first time I tried it.
I already edited the above to what you have.
Reply
Member: as4life
at: 06:33 PM 07/19/2009
also around line 676, my code looks like this:

.my-chat .avatar-location {
left: 6px;
position: absolute;
margin: 13px 12px 0px 0px;
}
.my-chat .avatar-overlay {
left: 2px;
margin-top: 10px;
position: absolute;
}
.my-chat .avatar-container {
display: inline-block;
width: 40px;
height: 40px;
}
Reply
Tagsavatar, chat, css, messaging, my avatar
1 2 3 4 5 6 7 8  ... Last
webOS Nation Forums > webOS apps and software > webOS development > How To Get Your Avatar In The Chat & Change the Color of the Chat Balloons