[paid] Changing "Mood / music / location" labels.

Nov 16, 2006 20:40

An interesting oversight (?) in the layer prevents you from using the "normal" method to change the mood/music/location labels in Bloggish. kunzite1 posted the solution in s2bloggish. I am reposting it here before it gets buried.

-------------------------------------------

Use this code in your layer. Replace the words in green with your own.

set text_meta_mood = "Schmood";

set text_meta_music = "Schmusic";

set text_meta_location = "Schmocal";

function Entry::print_metadata() {

if (size $.metadata) {

"""
\n""";

foreach var string m ($.metadata) {

"
"; print lang_metadata_title($m); ": ";

if ($m == "mood") {

" $.mood_icon ";

}

print $.metadata{$m}; "\n";

}

"\n";

}

}

tutorial, mood and music, tutorial:metadata

Previous post Next post
Up