Cocoa (
momijizukamori) wrote in
dw_dev2024-09-11 08:37 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
Entry tags:
Patching Mood Themes
Writing this down for future documentation purposes because I don't feel like fighting with the wiki today.
1) Create a new folder in
2) Put all the images for the new moodtheme in the new folder. Each image filename should be in the format
3) In a commandline, run
4) Take the formatted output from (3), including the line beginning with MOODTHEME, and paste it at the end of
5) Update the database, following the regular dev maintenance update steps.
1) Create a new folder in
$LJHOME/htdocs/img/mood
with a short-but relevant name2) Put all the images for the new moodtheme in the new folder. Each image filename should be in the format
<emotion>.<file extension>
, with the emotion in lowercase, eg, 'cheerful.png'. There is a list of valid emotion names on the wiki3) In a commandline, run
$LJHOME/bin/misc/mood-maker.pl --dir <dir name from step 1> --name "<visible title for mood theme>" --desc "<short description of mood theme>"
. Neither the name nor the description should contain any : characters. This will output formatted text, or error if there's a file that doesn't match one of the available preset moods.4) Take the formatted output from (3), including the line beginning with MOODTHEME, and paste it at the end of
$LJHOME/bin/upgrading/moods.dat
5) Update the database, following the regular dev maintenance update steps.