Trac is being migrated to new services! Issues can be found in our new YouTrack instance and WIKI pages can be found on our website.

Changes between Initial Version and Version 1 of SmileyThemes


Ignore:
Timestamp:
May 28, 2007, 1:33:23 AM (17 years ago)
Author:
rageboy
Comment:

Emoticon how-to

Legend:

Unmodified
Added
Removed
Modified
  • SmileyThemes

    v1 v1  
     1= Smiley Themes =
     2
     3One important thing to remember is that these smileys only show up on your side. Unless the person you're talking to has the same theme as you installed in the same client, it's not guaranteed that they will see the same pictures as you for the smileys.
     4
     5The way smiley themes work is quite simple. We'll use an example to explain how it works. The name of this theme will be "Hello World!".
     6
     7If we wanted to install Hello World! into pidgin, we would have to do one of two things:
     8 1. Copy a folder, whose contents are described below, into ~/.purple/smileys
     9 2. Drag a tar.gz file, whose contents are described below, onto the list of smiley themes in Tools -> Preferences
     10
     11The first thing you need to know is the contents of the tarball you drag into the smiley themes list. It contains the folder that is described in option 1 above. In our case, this folder would probably be called "Hello_World".
     12
     13Now to describe the contents of Hello_World. This folder contains all the information Pidgin needs to use your theme. It has a lot of picture files that will be how your smileys show up (to you) and a text file named "theme", which tells pidgin what to do with all those pictures. For this example, lets let our list of picture files be:
     14 * happy.png
     15 * sad.png
     16 * grin.png
     17 * hidden.png
     18 * MSN_only.gif
     19 * !GoogleTalk.gif
     20 
     21Then let our theme file look like so:
     22{{{
     23Name=Hello World!
     24Description=Smiley Theme How-To
     25Icon=happy.png
     26Author=Ankit Singla
     27
     28[default]
     29! hidden.png                    C:-) C:)
     30sad.png                         :( :-(
     31happy.png                       :) :-)
     32grin.png                :-D :-d
     33
     34#These show up only in MSN
     35[MSN]
     36sad.png                         :( :-(
     37happy.png                       :) :-)
     38grin.png                :-D :-d
     39MSN_only.gif    :-M :-$
     40
     41#These show up only in XMPP
     42[XMPP]
     43sad.png                         :( :-(
     44happy.png                       :) :-)
     45grin.png                :-D :-d
     46GoogleTalk              :-G :T
     47}}}
     48Blank lines and lines that start with # are ignored. The # means this line is a comment.
     49
     50The first four lines are part of any theme. The first line is the name of our theme, in our case "Hello World!". This shows up in the theme selector in bold. The second line is the description of our theme. This shows up underneath the name and author in the theme selector. The third line is the icon to show in the theme selector, which is a quick way for the user to see which theme they're selecting. The last line is the author of the theme. This shows up next to the name of the theme in the theme selector.
     51
     52Next come the protocol specific sets of smileys. A set of smileys is defined in the following format:
     53{{{
     54[<protocol>]
     55<picture to use>        <text to replace>
     56.
     57.
     58.
     59}}}
     60For example:
     61{{{
     62[MSN]
     63sad.png                         :( :-(
     64happy.png                       :) :-)
     65grin.png                :-D :-d
     66MSN_only.gif    :-M :-$
     67}}}
     68This means, the first line defines which protocol this set defines. In our example, this set will define all of the MSN pictures. Each line after that specifies how to handle each picture you want to use in that protocol. The first element on this line is the name of the picture, so for our first picture, we have sad.png. This must be followed by some whitespace and then a list of strings, separated by whitespace, that will be replaced by the picture sad.png in conversation. So in our case, we're telling pidgin that if it ever sees ":(" or ":-(", it shouln't show us ":(" or ":-(". Instead, it should replace it with sad.png so we see that picture instead.
     69
     70The first set defined in a theme file is usually the default set. This is the set of smileys that pidgin uses if it doesn't find a protocol specific set for that protocol in the rest of the file. So in our file, it will use the default set for AIM, ICQ, IRC, etc. If you notice, in the default set there's a line that starts with an exclamation point. This means the smiley is hidden. If someone types the text associated with that picture, you'll see the picture, but you won't be able to pick that smiley from the smiley selector that pops up from the formatting toolbar.
     71
     72That's it! Congratulations, you know how to make a theme file.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!