justine! (exeunt) wrote in component_help,
justine!
exeunt
component_help

  • Mood:
  • Music:

Coding wrong.

I'm getting errors. I got the tutorial from
[Error: Irreparable invalid markup ('<a [...] 46728.html">') in entry. Owner must fix manually. Raw contents below.]

<div align=JUSTIFY> I'm getting errors. I got the tutorial from <a href="http://www.livejournal.com/community/component_help/"46728.html">here</a>.


<lj-cut text="Code under here."># """ $e.text """;

# Print Mood and/or Music Fields:
# If we have a mood to print
if ($e.metadata{"mood"}=="") {
# first we need a spacer after the entry text
# """<br/><br/>""";
# and then we print the mood label, followed by a mood icon if one exists, followed by the mood text.
# If you want the mood icon to be after the mood text, then you need to change the order of the two lines in red.
"""<b> $*text_meta_mood : </b>""";
if (defined $e.mood_icon) { """ $e.mood_icon """; }
print $e.metadata{"mood"};
"""<br/>""";
if ($e.metadata{"music"}=="") { """<br/>"""; }
}
# If we have music to print
if ($e.metadata{"music"}!="") {
# If we didn't print a spacer because the mood was empty, then print one
if ($e.metadata{"mood"}=="") { """<br/><br/>"""; }
# then print the actual music label and the music
"""<b> $*text_meta_music : </b>"""; print $e.metadata{"music"};
"""<br/><br/>""";
}

""" $e.text """;

# Close off the entry text area
print_content_bottom();

}</lj-cut>


Can anyone see the problem? I just want the current mood and music to be shifted updwards. Can someone do that for me? Am I doing something wrong? Thanks in advance.</div>
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 9 comments