i'm not anti-social ... i just can't stand people (upgasm) wrote in component_help,
i'm not anti-social ... i just can't stand people
upgasm
component_help

  • Mood:
  • Music:

Problems coding the mood and music

So i`m having some problems coding the mood and music, if someone can help me with this i will be so thankful

So i want my mood and music to look like this:

Image hosted by Photobucket.com

i can do it on Opal, thanks to the help gave by halffling, so i modified the code and everything to match the component variables and it works fine on the entries page, the mood and music display the way i want it, but if you go to the friends page there`s an error, i dont know why the whole page is messed up and the sidebar just disappear, tables are inside other tables.

Here is the code i`m using:

var string caption;
var string val;
var Image i;
if (size $e.metadata == 0) { return; }
foreach var string k ($e.metadata) {
$caption = $k;
$val = $e.metadata{$k};
if ($k == "music")

{
$caption = $*text_meta_music;
$val = """$caption: $val
""";
} else {
if ($k == "mood") {
$caption = $*text_meta_mood;
if (defined $e.mood_icon) {
$i = $e.mood_icon;
$val = """$val


$caption: $val""";
}
}

Here is my layer theme, i checked everything twice, and i`m sure the problem is the code above i`m using for my mood and music

Also, is there a way to have the tags display in the same fashion my mood and music is displaying?



Thank you
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 6 comments