Location: PHPKode > projects > Chirp: The Microblog > chirp.v.1.1/docs/doc.09.emoticons.txt
Emoticon use is turned on in the Chirp asmin area

by placing a 1 in the box provided.  A 0 means

that the feature is turned off.



Emoticon packs are images located in the emoticons 

directory located in the Chirp installation directory.



All you have to do is create a directory and drop your

emoticon images in them.  They should be in gif format

and use the same names as provided in the default 

directory.



Once you have the directory made and your images are 

dropped into it, you can select the directory in the

chirp admin section.  From this point on your images

will be used for emotes.



For expert users.

I made emoticon control easy to find and handle through

programming.  If you look in the Chirp includes folder

locate the emoticon.inc.php file and open it using your 

favorite text editor.  If you've been playing along then

you should be using notepadd++ by now.



You will see a bunch of entries that look like this



':)'  => '<img src="%URL%emoticons/'.$emoticon_pack.'/smile.gif" align="absmiddle">',

':-)' => '<img src="%URL%emoticons/'.$emoticon_pack.'/smile.gif" align="absmiddle">',

':('  => '<img src="%URL%emoticons/'.$emoticon_pack.'/sad.gif" align="absmiddle">',

':-(' => '<img src="%URL%emoticons/'.$emoticon_pack.'/sad.gif" align="absmiddle">',

';)' => '<img src="%URL%emoticons/'.$emoticon_pack.'/wink.gif" align="absmiddle">',

'8)' => '<img src="%URL%emoticons/'.$emoticon_pack.'/cool.gif" align="absmiddle">',

'8O' => '<img src="%URL%emoticons/'.$emoticon_pack.'/shock.gif" align="absmiddle">',



This list is called an array.  It is a list of all possible 

emoticon sequences possible.  I will break down a line



':)'  => '<img src="%URL%emoticons/'.$emoticon_pack.'/smile.gif" align="absmiddle">',



The first part is what you are looking for in the message



':)'



So if you have a new emtoicon that you want to use then 

you would change this to what ever you want.  For example

I have an image that has a unibrow.  I would do this



'|-)'



The next item is the symbol that tells what this emoticon

relates to and looks like this



=>



I know you programmers know it by something else but I am 

writing this for an experienced user and not a programmer.



Finally we insert the link to my new unibrow.gif file so it is 

associated with the new emote



'<img src="%URL%emoticons/'.$emoticon_pack.'/unibrow.gif" align="absmiddle">',



It is important to note that if you are placing this at the end of

the list you do not need the comma.  The comma is used to separate

the line entries.  I will act like I placed my new unibrow into

the center of my list. And the new line looks like this



'|-)' => '<img src="%URL%emoticons/'.$emoticon_pack.'/unibrow.gif" align="absmiddle">',



There you have it.  If you need more help with this make sure

you hit up the forums.
Return current item: Chirp: The Microblog