Livejournal
Log in
Post
Friends
My journal
windiain
in
s2_for_dummies
Location
Jul 02, 2006 21:00
Anyone know what I need to include to stop people's locations show up with the rest of the metadata? I just find it really annoying. I'm using A Sturdy Gesture, if that's important. Thanks in advance. :)
Leave a comment
Comments 7
ex_uniquewo
July 3 2006, 08:16:46 UTC
Code for your Theme Layer:
function Entry::print_metadata() {
var string caption;
var string val;
var Image i;
if (size $.metadata == 0 and size $.tags == 0) { return; }
println """
""";
if ($this.tags) {
var int tcount = 0;
"
Tags: ";
foreach var Tag t ($this.tags) {
"""
$t.name
""";
$tcount++;
if ($tcount != size $this.tags) { ", "; }
}
"";
}
if (size $.metadata != 0) {
foreach var string k ($.metadata) {
$caption = $k;
$val = $.metadata{$k};
if ($k == "music") {
$caption = $*text_meta_music;
}
elseif ($k == "location") {
$caption = $*text_meta_location;
}
elseif ($k == "mood") {
$caption = $*text_meta_mood;
if (defined $.mood_icon) {
$i = $.mood_icon;
$val = """
(
...
)
Reply
windiain
July 3 2006, 16:42:52 UTC
Thank you so very much - you're a star! :)
Reply
ex_uniquewo
July 3 2006, 16:46:00 UTC
You're welcome :)
Reply
reelpersona
July 22 2006, 07:21:59 UTC
Hey, would you have this code for Generator? :)
Reply
Thread 7
Leave a comment
Up
Comments 7
function Entry::print_metadata() {
var string caption;
var string val;
var Image i;
if (size $.metadata == 0 and size $.tags == 0) { return; }
println """
""";
if ($this.tags) {
var int tcount = 0;
"
Tags: ";
foreach var Tag t ($this.tags) {
""" $t.name""";
$tcount++;
if ($tcount != size $this.tags) { ", "; }
}
"";
}
if (size $.metadata != 0) {
foreach var string k ($.metadata) {
$caption = $k;
$val = $.metadata{$k};
if ($k == "music") {
$caption = $*text_meta_music;
}
elseif ($k == "location") {
$caption = $*text_meta_location;
}
elseif ($k == "mood") {
$caption = $*text_meta_mood;
if (defined $.mood_icon) {
$i = $.mood_icon;
$val = """
( ... )
Reply
Reply
Reply
Reply
Leave a comment