. (vintagesky) wrote in component_help,
.
vintagesky
component_help

HELP

Hi. Quick question. I used pamelajoy's tutorial to center my entries. And I used the header code that's in the tutorials on here. I've used the header tutorial before, and it worked fine. But..my journal doesn't have the header that I put into my layers. Yes, it also deleted my 'user info', 'friends' 'recent entries' and 'website' so there's nothing. layerinfo "source_viewable" = 1; function Page::print_custom_head() {
    """
    <style type="text/css">
      body {
        background-image: url(http://img.photobucket.com/albums/v341/syzygyoferised1/44.jpg) ;
        background-repeat: no-repeat ;
        background-attachment: scroll ;
        background-position: top ;
        margin-top: 427px ; # replace HHH with your image height in pixels
      }
      .header {
        text-align: center;
      }
    </style>
    """;
  }

layerinfo "type" = "user";
set font_size = "normal";
set page_recent_items = 20;
set free_text = "testing";
set header_fgcolor_lt = "#ffffff";
set text_meta_mood = "Feeling:";
set nav_entries_text = "Moony";
set calendar_fgcolor = "#cc9933";
set page_friends_items = 30;
set calendar_inactive = "#cc9933";
set show_free_text = true;
set entry_fgcolor = "#ffffff";
set calendar_link = "#cc9933";
set comp_bgcolor = "#993333";
set text_meta_music = "Listening to:";
set header_fgcolor = "#ffffff";
set entry_link_visited = "#ffffff";
set font_family = "Trebuchet MS, sans-serif";
set comments_screened_bgcolor = "#cc9933";
set calendar_active = "#cc9933";
set nav_calendar_text = "Prongs";
set comp_fgcolor = "#ffffff";
set header_link = "#ffffff";
set entry_link = "#613815";
set show_entry_userpic = true;
set entry_bgcolor = "#993333";
set main_bgcolor = "#cc9966";
set color_forms = true;
set comp_state = "right";
set show_profile = true;
set nav_info_text = "Wormtail";
set header_bgcolor = "#cc9966";
set show_summary = true;
set nav_friends_text = "Padfoot";
set comments_bgcolor = "#cc9966";
function page_layout(Page p) {
var string title = $p->title();
"""
<html>
<head>
<link rel="stylesheet" href="$p.stylesheet_url" type="text/css" />
$p.head_content
<title>$title</title>
</head>
<body>
<table width="80%" cellspacing="0" cellpadding="0" valign="top" align="center">
<tr valign="top" width="100%">
<td width="3">
<img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="1" alt="" border="0">
</td>
""";

if ($*comp_state == "left") {
print_my_components($p);
"""
<td width="3">
<img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="1" alt="" border="0">
</td>
""";
}

print_my_entries($p, $title);
if ($*comp_state == "right") {
"""
<td width="3">
<img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="1" alt="" border="0">
</td>
""";

print_my_components($p);
}
"""
<td width="3">
<img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="1" alt="" border="0">
</td>
</tr>
</table>
</body>
</html>
""";
}

Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 14 comments