Print this Page

EMOTICON Functions

Below is a listing of all the functions.

 

AddEmoticon

AddEmoticon

This function adds an emoticon to the FuseTalk database.

 

Return Type: n/a

 

Name

Type

Description

EmoticonTitle

String

The title of the emoticon (Example: Smile).

EmoticonString

String

The characters that the users input when creating an emoticon (Example: ;) )

EmoticonReplace

String

The characters that FTARG_EMOTICONSTRING will be replaced with (Example: <img src="i/icons/smile.gif" border="0">).

 

Examples

Visual Basic.Net

'Method AddEmoticon

ftObj.AddEmoticon("Smile", ":)", "<img src="i/icons/smile.gif" border="0">")

 

C#

//Method AddEmoticon

ftObj.AddEmoticon("Smile", ":)", "<img src="i/icons/smile.gif" border="0">");

 

ConvertTextToEmoticon

ConvertTextToEmoticon

This function converts a block of text and inserts the emoticons.

 

Return Type: String

 

Name

Type

Description

Text

String

The text you wish to convert.

 

Examples

Visual Basic.Net

Dim MessageBody As String = "This is some text :D"

 

'Method ConvertTextToEmoticon

MessageBody = ftObj.ConvertTextToEmoticon(MessageBody)

MsgBox(MessageBody)

 

'Method UnConvertTextToEmoticon

MessageBody = ftObj.UnConvertTextToEmoticon(MessageBody)

MsgBox(MessageBody)

 

C#

string MessageBody = "This is some text :D";

 

//Method ConvertTextToEmoticon

MessageBody = ftObj.ConvertTextToEmoticon(MessageBody);

Interaction.MsgBox(MessageBody, 0, null);

 

//Method UnConvertTextToEmoticon

MessageBody = ftObj.UnConvertTextToEmoticon(MessageBody);

Interaction.MsgBox(MessageBody, 0, null);

 

DeleteEmoticon

DeleteEmoticon

This function deletes an emoticon from the FuseTalk database.

 

Return Type: n/a

 

Name

Type

Description

EmoticonID

Integer

The ID of the emoticon you wish to delete.

 

Examples

Visual Basic.Net

'Method DeleteEmoticon

ftObj.DeleteEmoticon(Emo.EmoticonID)

 

C#

//Method DeleteEmoticon

ftObj.DeleteEmoticon(Icon.EmoticonID);

 

GetAllEmoticons

GetAllEmoticons

This function will retrieve all the emoticons from a database.

 

Return Type: Emoticon()

 

Examples

Visual Basic.Net

'Method GetAllEmoticons

Dim Emoticons() As Emoticon = ftObj.GetAllEmoticons

Dim Emo As Emoticon

For Each Emo In Emoticons

    MsgBox(Emo.EmoticonString)

Next

 

C#

//Method GetAllEmoticons

FuseTalk.API.Emoticon[] Emoticons = ftObj.GetAllEmoticons();

foreach (FuseTalk.API.Emoticon Emo in Emoticons)

{

interaction.MsgBox(Emo.Emoticonstring, 0, null);

}

 

Related Items

GetEmoticonByID

 

GetEmoticonByID

GetEmoticonByID

This function adds an emoticon to the FuseTalk database.

 

Return Type:Emoticon

 

Name

Type

Description

EmoticonID

Integer

The ID of the emoticon you wish to retrieve.

 

Examples

Visual Basic.Net

'Method GetEmoticonByID

Emo = ftObj.GetEmoticonByID(Emoticons(0).EmoticonID)

MsgBox(Emo.EmoticonString)

 

C#

//Method GetEmoticonByID

FuseTalk.API.Emoticon Icon;

Icon = ftObj.GetEmoticonByID(Emoticons[0].EmoticonID);

Interaction.MsgBox(Icon.Emoticonstring, 0, null);

 

Related Items

GetAllEmoticons

 

UnConvertTextToEmoticon

UnConvertTextToEmoticon

This function converts a block of text and deletes any emoticon that was inserted.

 

Return Type: String

 

Name

Type

Description

Text

String

The text you wish to convert.

 

Examples

Visual Basic.Net

Dim MessageBody As String = "This is some text :D"

 

'Method ConvertTextToEmoticon

MessageBody = ftObj.ConvertTextToEmoticon(MessageBody)

MsgBox(MessageBody)

 

'Method UnConvertTextToEmoticon

MessageBody = ftObj.UnConvertTextToEmoticon(MessageBody)

MsgBox(MessageBody)

 

C#

string MessageBody = "This is some text :D";

 

//Method ConvertTextToEmoticon

MessageBody = ftObj.ConvertTextToEmoticon(MessageBody);

Interaction.MsgBox(MessageBody, 0, null);

 

//Method UnConvertTextToEmoticon

MessageBody = ftObj.UnConvertTextToEmoticon(MessageBody);

Interaction.MsgBox(MessageBody, 0, null);

 

UpdateEmoticon

UpdateEmoticon

This function updates an emoticon from the FuseTalk database.

 

Return Type: n/a

 

Name

Type

Description

EmoticonTitle

String

The title of the emoticon (Example: Smile).

EmoticonString

String

The characters that the users input when creating an emoticon (Example: ;) )

EmoticonReplace

String

The characters that FTARG_EMOTICONSTRING will be replaced with (Example: <img src="i/icons/smile.gif" border="0">).

EmoticonID

Integer

The ID of the emoticon you wish to update.

 

Examples

Visual Basic.Net

'Method UpdateEmoticon

ftObj.UpdateEmoticon("Big Smile", ":D", "<img src="i/icons/smile.gif" border="0">", Emoticons(0).EmoticonID)

 

C#

//Method UpdateEmoticon

ftObj.UpdateEmoticon("Big Smile", ":D", "<img src="i/icons/smile.gif" border="0">", Emoticons(0).EmoticonID)