Lisa Fewell (liabunny) wrote in component_help,
Lisa Fewell
liabunny
component_help

  • Mood:

Security Icon and Subject...

edit: Ok, nevermind, I got it working now... Thanks daimones for your help! :)

A couple of things I can't figure out...

1. I moved my security icon down to the subject line. However, I wanted it to actually be on the same line and not have a break after it. Is there any way to make that work? (i.e., [icon] subject goes here... )


2. Is there a way to fix it so that if I don't have a subject for the entry it will automatically print "no subject"?

3. How exactly would I combine the security icon part and the subject part so that if there is no subject it will still show the security icon with the entry dash under it, instead of just putting the icon and then the entry text?


My code:
This is from masterslacker's customizing entries tutorial...


  # Start the main entry text area

  #   The first line is needed because I did not use print_system_box_top() as stated above

  """<td class="entryHolderBg" width="100%" valign="top">""";

  print_content_top();



if(defined $e.security_icon) { print $e.security_icon; }

  # If the subject is not empty, then print it followed by the line to seperate it from the entry text

  if ($e.subject!="") { """

        <div class="entryHeader">$e.subject</div>

        <div class="entryDash"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></div>

      </td>

      <td width="1" class="medLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

    </tr>

    <tr>

      <td width="1" class="medLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

      <td class="entry">

  """; }

Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 10 comments