Mood Icons

Table of Contents

How mood icons are displayed

You can indicate your mood in any of your journal entries. The mood you enter will normally be displayed with your entry, and if it's one of the server-supported moods, a matching picture (a mood icon) will usually appear too.

To indicate a mood when you post a journal entry from your Web browser, use the “Current Mood” box on the full version of the Update Journal page. You can choose a server-supported mood by scrolling through the list. Alternatively, you can leave the selection set to “None, or other”; then your mood will be whatever you type in the box labelled “Other” (which you can leave empty if you don't wish to indicate your mood). Later, you can edit your mood selection, the same way you would edit any other part of your journal entry.

Exactly how your mood is displayed depends on the style of the page where it appears. When your entry is viewed as part of your journal, you control the style and the set of icons used to represent moods. When your entry is viewed on someone else's Friends page, its appearance is determined by the style of their page, and by whether they decided to impose their own choice of mood icons or let each Friend choose their own.

The rest of this Guide explains how to choose a set of mood icons (called a mood theme), and how to create your own if you want to.

Choosing a mood theme

LiveJournal provides a number of public mood themes, which are available to all users. You can preview any of them on the LiveJournal Moods page.

To choose the mood theme you want to use for your journal, go to the Modify Journal page. Make sure you're logged in under the correct user name, click “Proceed...”, and on the next page scroll down to “Mood Icons”. Select a mood icon set. After you click “Save Changes”, icons from the set you selected should appear on your Recent Entries page, your Day view, and your message boards, wherever one of the server-supported moods is indicated. Optionally, you can also force the same icons to appear on your Friends page, in place of the icons selected by your Friends.

If the mood icons don't appear where they should, the problem could be that you're using a custom style which doesn't support mood icons, or that you've chosen single-color mood icons which are the same color as the background.

If you've created a personal (non-public) mood theme, as described below, you'll be able to select it from the Modify Journal page, the same way you would select a public theme. However, personal themes aren't listed on the LiveJournal Moods page, so they can't be previewed.

Creating mood icons

You're reading this (hopefully) because you want to create your own mood theme. Please read the whole document through before beginning!

The images you need to create

Each icon must be stored in an image file. The server currently supports over 130 moods for which you can create icons, and it is possible that more moods will be added in the future.

That doesn't mean you need to create 130 images! Instead, the moods are sorted in a hierarchical structure, and as long as the basic (top level) moods are defined, there will be an image for each mood. Look at the LiveJournal Moods page to see the relationships.

For example, because “aggravated” is below “angry”, the icon you specify for “angry” will automatically be used for “aggravated” unless you explicitly pick another icon for “aggravated”.

Also, each mood has an associated mood ID (in parentheses on the LiveJournal Moods page). Later in this process, you'll need to know the ID of the mood to which each of your images should be assigned.

Considerations for your images

  • GIFs are a popular format, because they allow both transparency and animation.
  • The images can be any size, though large images are both visually obtrusive and time-consuming to load.
  • They don't all need to be the same size.
  • Remember that your images can be used on a variety of backgrounds! Don't assume that everyone has their text over white (or black). Or, you can decide that your icons will only work against a certain background, and design accordingly... but this will restrict your user base.
  • Remember that these images will be imported into the LiveJournal database by name, either by you or by someone else. Give descriptive names to your image files (the mood name will suffice: for example, ‘aggravated.gif’ for the “aggravated” mood).

Also, read the next section before beginning.

Turning your icons into a mood theme

One of the features of accounts with Professional package of service is the ability to make personal mood themes, special to your journal, by entering data about the images yourself. If you don't want your theme to be a public theme, or if you want to see how your theme will look before it becomes a public theme, then you'll need to create it yourself.

First of all, your pictures must be available on a separate server. (You can't upload your mood images directly to LiveJournal's site; see FAQ #6 for more information). Also, you must know the dimensions (width and height, in pixels) of each image.

When you're ready to continue, make sure you're logged in, and go to LiveJournal's command console, where you can enter the commands to define your mood theme. (There is a reference, in case you need it, which describes all of the console commands, and explains how to escape double-quote and backslash characters.)

The first thing you're going to do is create the theme. Execute the command:

moodtheme_create name des


name = the name of your new theme, which will be displayed in the lists from which users select.
des = a short description for your theme, which will be accessible through the console's moodtheme_list command.

For example:

moodtheme_create "Munch's Screamers" "You've seen 'distressed'. Now see the rest."

If you're successful, you'll see a page which tells you so and gives you a number (the theme ID) identifying your new mood theme. Remember this number, as it will be used every time you enter information for a mood. (If you forget it, you can execute the moodtheme_list command to find out the IDs of all the themes available to you.)

Now it's time for the tedious part. You'll assign each of your image files to a mood, by executing a command of the form:

moodtheme_setpic themeID moodID picURL width height


themeID = the number given to you after you created the mood theme.
moodID = the number of a mood for which you created an icon; you can find these numbers in parentheses on the LiveJournal Moods page (example: 15 for “happy”).
picURL = the full URL (Web address) of your mood icon.
width = width of the image, in pixels.
height = height of the image, in pixels.

For the assignment to take effect, you must provide all of the information listed. For example:

moodtheme_setpic 180 15 http://www.yoursite.com/happy.gif 20 20

It might be daunting to think of specifying over 100 images this way, but remember that the images are nested. It's possible to represent all of the moods by specifying only 15 images.

When you've finished creating your theme, you can go to the Modify Journal page, and select the new theme as the mood icon set for your journal.