Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
AliVireTechnologies1 #1
Member since Jun 2013 · 58 posts
Group memberships: Members
Show profile · Link to this post
Subject: how can i use smilies and convert text to smilies
I want to use smiles in my chat, how can i use it .
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
parse the message body and replace text for smileys like
;-)
with an image.
Avatar
pmchaudhary #3
Member since Jul 2014 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: How to send smiley/Emotion icons?
Hi,

We can parse the text when we receive the smiley text like ";-)" ":)" ...

But how to send them to show as icon? when we send the text it is not converted to smiley icon in GTalk..  it is showing as text only as typed ";-)" ":)"

Thanks in advance.
Avatar
Alex #4
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
what you do is correct.
The problem is that Google does not follow the standards here. What they send is the following:

  1. <message iconset="classic" from="user@gmail.com/gmail.6BBA8B45" type="chat" id="some_id">
  2. <body>:D</body>
  3. </message>

They have the additional attribute iconset on the message tag to specify which of their iconssets should be used.
Once you add this attribute to your messages it will work.

  1. msg.SetAttribute("iconset", "classic");

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS