Sidebar help!

Aug 14, 2006 13:09

Hello all. I'm new here and I have a problem with my new Opal layout.
I don't want all of that stuff that I have in my sidebar now, look here: madeleneG. I just want the usericon, then my own two boxes, and then the navigation box. So I want to take away the calender and the links, and move the navigation down under my own boxes. I have tried, but then the whole sidebar get smaller.

Here is the code I use, would be so nice if someone could help me with it:

layerinfo "type" = "theme";
layerinfo "name" = "Default Template";
layerinfo author_name = "Halffling on LiveJournal.com";
layerinfo author_email = "halffling@livejournal.com";
layerinfo des = "Based on the template offered by ignited";
layerinfo lang = "en";
layerinfo source_viewable = 0;
layerinfo is_public = 0;

set text_post_comment = "Comment";
set text_read_comments = "1 comment // # comments";
set text_post_comment_friends = "Comment";
set text_read_comments_friends = "1 // # ";
set text_meta_music = "Music";
set text_meta_mood = "Mood";
set show_entry_userpic = true;
set lang_fmt_date_short = "%%day%%, %%month%% %%dayord%% %%yyyy%%";
set lang_fmt_time_short = "%%h%%:%%min%%%%a%%m";
set text_back = "Back";
set text_forward = "Forward";
set links_header = "Links";
set tags_aware = true;

function Page::print_custom_head() {
"""

""";
}

function print_stylesheet() {
"""
/* Hello! This is the stylesheet of Halffling @ LJ. */
/* My comments are placed between things like this */
/* in order to help you along. */

body {
background-color:#FFFFFF;
background-image:url(http://img109.imageshack.us/img109/8276/bg20xw7.gif);
background-attachment:fixed;
font-family:Trebuchet MS;
color:#818181;
font-size:11px;
line-height:9pt;
overflow-x:hidden;
margin:5px;
margin-top:10px;
}

html {
scrollbar-face-color:#DADADA;
scrollbar-arrow-color:#DADADA;
scrollbar-highlight-color:#E6E6E6;
scrollbar-3dlight-color:#C1C1C1;
scrollbar-shadow-color:#CDCDCD;
scrollbar-darkshadow-color:#C1C1C1;
scrollbar-track-color:#FFFFFF;
}

.pagealign {
text-align:center;
}

.bodytable {
width:50%;
}

/* borders along the page. */
/* To disable a border, change to 0px */
.border4 {
border:1px solid #B4B4B4;
}

.border3 {
border:2px solid #CDCDCD;
}

.border2 {
border:1px solid #9A9A9A;
}

/* links on page */
a, a b {
color:#4B4B4B;
font-weight:bold;
text-decoration:none;
}

/* links when cursor is hovering over it */
a:hover, a:hover b, a:hover .nosubject {
color:#737373;
font-weight:bold;
text-decoration:none;
}

/* italicized text. Remove if you don't want it a different color */
i {
color:#595959;
}

/* bolded text. Remove if you don't want it a different color */
b {
color:#595959;
}

/* change to 'float:right' if you want your posting icon on the right. */
.userpic2 {
float:left;
text-align:right;
margin-top:0px;
margin-right:0px;
}

/*if userpic in the sidebar is enabled. */
#userpic {
overflow:visible;
text-align:center;
margin-bottom:5px;
padding:2px;
}

/* the next three deal with the navigation links at the top */
#nav {
font-size:10px;
letter-spacing:2px;
text-transform:uppercase;
padding-top:10px;
white-space:nowrap;
}

#nav a {
font-size:10px;
color:#E6E6E6;
text-decoration:none;
padding-left:12px;
padding-right:10px;
padding-top:1px;
background-color:#B4B4B4;
}

#nav a:hover {
color:#737373;
background-color:#CDCDCD;
}

/* main area of text */
#content {
background-color:#DADADA;
padding:2px;
}

.sidetd {
width:175px;
}

/* the columns */
.columncontent {
font-size:11px;
text-align:center;
background-color:#E6E6E6;
padding:2px;
}

/* the header of each column */
.columncontent strong {
font-size:10px;
color:#737373;
font-weight:bold;
text-transform:uppercase;
}

/* text area of the columns */
.columnitem {
padding:2px;
margin-top:4px;
background-color:#FFFFFF;
border:1px solid #9A9A9A;
overflow:visible;
}

/* links in the side column */
#sidecolumn a {
color:#9A9A9A;
font-size:10px;
text-decoration:none;
}

#sidecolumn a:hover {
color:#000000;
font-size:10px;
text-decoration:none;
}

/* the calendar on the side */
.calrow {
clear:both;
width:120px;
text-align:center;
}

.calempty {
width:5px;
}

.calactitem {
font-size:9px;
text-align:center;
background-color:#CDCDCD;
}

.calinitem {
font-size:9px;
text-align:center;
}

/* days on the calendar page */
.bigday {
font-size:11px;
font-weight:bold;
}

/* the text area on the Reply to Post or Comment page */
input, textarea, select {
color:#818181;
font-family:Trebuchet MS;
font-size:11px;
background-color:#FFFFFF;
border:1px solid #C1C1C1;
}

/* the subject of the post */
.subject {
color:#3D3D3D;
font-size:12px;
font-weight:bold;
text-transform:uppercase;
padding-top:1px;
padding-bottom:1px;
}

/* the following deal with entries themselves */
.entry {
font-size:11px;
margin-bottom:10px;
}

.entrycontent {
width:50%;
}

/* mood & song */
.meta {
text-transform:uppercase;
font-size:10px;
font-weight:bold;
}

/* tags */
.tags {
color:#9A9A9A;
font-size:9px;
background-color:#D0D0D0;
text-transform:uppercase;
padding:1px;
}

/* the next two are where it says "posted by" */
.entryinfo {
color:#9A9A9A;
font-size:10px;
font-weight:bold;
text-transform:uppercase;
background-color:#E6E6E6;
padding-top:2px;
padding-bottom:2px;
}

/* the next three deal with the links at the bottom of each entry */
.entrylinks {
font-size:9px;
padding-top:2px;
padding-bottom:2px;
background-color:#C1C1C1;
text-align:center;
}

.entrylinks a {
color:#4B4B4B;
text-align:center;
text-transform:uppercase;
text-decoration:none;
white-space:nowrap;
}

.entrylinks a:hover {
color:#000000;
background-color:#B4B4B4;
text-decoration:none;
}

/* when a whole bunch of replies occurs and they turn to boxes */
.minicomment {
font-size:11px;
padding:4px;
background-color:#E6E6E6;
border:2px solid #FFFFFF;
}

.minicommentholder {
border:1px solid #C1C1C1;
}

.messageholder {
border:1px solid #C1C1C1;
margin-bottom:5px;
margin-top:5px;
}

/* when viewing comments, where it says "comments" */
.notablemessage {
padding:4px;
}

/* year in calendar page */
.systemtext {
color:#447369;
font-weight:bold;
text-transform:uppercase;
}

/* back, forward links, etc. */
.systemmessage {
font-size:11px;
background-color:#E6E6E6;
border:2px solid #FFFFFF;
}

.systemmessage a {
padding-left:10px;
padding-right:10px;
padding-top:2px;
padding-bottom:2px;
}

.systemmessage TD {
font-size:11px;
padding:2px;
}

/* on the comments page, the username of the commenter */
.postedby {
font-size:11px;
text-transform:uppercase;
}

/* if you enabled IP logging */
.ip {
color:#447369;
}

/* if logged in, this edits the "mass action on selected comments" option */
.multiform {
font-weight:bold;
}

/* the links that say 'back to top' at the bottom of each entry */
.backtop {
text-align:right;
}

.backtop a {
color:#A7A7A7;
}

/* I'm not sure if the next two really do anything */
.friendcolor {
width:10px;
height:10px;
}

.friendname {
text-decoration:none;
}
""";
}

function Page::lay_print_sidebar () {

var string intro = """
Hey to you and welcome to the journal of the Swedish princess Madelene. Nah, I'm not really the real Swedish princess, but we can pretend I am. This journal is Friends locked, so if you want to be added, comment and I will give you a yay or nay back. Kisses!

""";
print_box(" ♥ MADELENE ♥ ", $intro);

# $this->lay_print_summary();
$this->lay_print_calendar();
$this->print_linklist();
$this->lay_print_freetext();

var string navigate = """











""";
print_box("Livejournal Navigation", $navigate);

var string newcolumn1 = """
Hpbooks

http://img148.imageshack.us/img148/6088/hpbooksxw2.jpg">

Hpmovies

http://img148.imageshack.us/img148/1074/hpmoviesmh9.jpg">

Slash

http://img148.imageshack.us/img148/3083/slashbj1.jpg">

Harry/Draco

http://img148.imageshack.us/img148/8027/hdaa9.jpg">

Queer as folk

http://img148.imageshack.us/img148/5284/qafbu3.jpg">

Clothes/Fashion

http://img148.imageshack.us/img148/1959/clothesgu9.jpg">

History

http://img148.imageshack.us/img148/3668/tudorto8.jpg">

""";
print_box("THINGS I LIKE", $newcolumn1);

var string newcolumn2 = """
Insert something here!

Insert something here!

""";
print_box("Yet another column", $newcolumn2);

}

function Page::lay_print_header () {
# this is the order of the links
var string[] views_order = [];

var string title = $this->title();
"""


""";
}

function Page::print () {
var string title = $this->title();
"""
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

  madeleneG.livejournal.com       Pretty in Pink

""";
$this->print_head();
"""









http://img109.imageshack.us/img109/9528/boydh2mm5.jpg">


""";
# $this->lay_print_username();
$this->lay_print_header();
"""












""";
# $this->lay_print_userpic();
$this->lay_print_sidebar();
"""


""";
$this->print_body();
$this->lay_print_subnav();
"""









""";
}

function Entry::print_metadata() {
var string caption;
var string val;
var Image i;
if (size $.metadata == 0) { return; }
foreach var string k ($.metadata) {
$caption = $k;
$val = $.metadata{$k};
if ($k == "music") {
$caption = $*text_meta_music;
} else {
if ($k == "mood") {
$caption = $*text_meta_mood;
if (defined $.mood_icon) {
$i = $.mood_icon;
$val = """$val $val""";
}
}
}
println """
$caption: $val
""";
}
}

function CommentInfo::print() {
if ($.enabled) {
if ($.count > 0 or $.screened) {
$this->print_readlink();
}
$this->print_postlink();
}
}

function FriendsPage::lay_make_username (Entry e) {
var Friend f = $.friends{$e.journal.username};
var string url = $e.poster->base_url();
"""

""";
}

function Page::lay_make_username(Entry e) {
"""

""";
}

function Page::print_entry (Entry e) {

print """""";
var string time = $e.time->time_format();
var string date = $e.time->date_format();
var string security;
if ($e.security != "") {
$security = """ """width="$e.security_icon.width" height="$e.security_icon.height" """+
"""alt="[$e.security]" />""";
}

var UserLite name;
var string pname;

var bool show_name = ($.view == "friends" or $e.poster.username != $.journal.username or $.view == "entry") ? true : false;
var bool show_pic = (defined $e.userpic and ($.view == "friends" or $*show_entry_userpic or $e.poster.username != $e.journal.username or $.view == "entry")) ? true : false;

"""

""";
if($show_pic) {
"""

$e.poster.name

""";
}
"""
$e.subject


""";
if($show_name) {
$this->lay_make_username($e);
}
var int count = 0;
var string tags = "";
var string tags_root = $.journal->base_url() + "/tag";
foreach var Tag t ($e.tags) {
$tags = $tags + """$t.name""";
if(++$count < size($e.tags)) {
$tags = $tags + ", ";
}
}
if($tags != "") {
$tags = "Tags: " + $tags;
}
"""
$tags



"""; $e->print_text(); """

""";
$e->print_metadata();
"""





""";
}

function ReplyPage::print_body() {
var EntryLite e = $.replyto;
var string poster = defined $e.poster ? $e.poster->as_string() : "(Anonymous)";
var string datetime;
var string time = $e.time->time_format();
var string date = $e.time->date_format();

var UserLite name;
if(defined $e.userpic and $*comment_userpic_style != "off") {
$name = $e.poster;
"""
""";
if (defined $e.userpic or (defined $e.userpic and $.view == "entry" and $*show_entry_userpic)) {
"""""";
}
"""
""";
}
"""

$e.subject



""";

"""

"""; $e->print_text(); """



""";
$.form->print();
"""

""";
}

function RecentPage::lay_print_subnav () {
var string back;
if($.nav.backward_url != "") {
$back = """$*text_back""";
} else {
$back = " ";
}
var string forward;
if($.nav.forward_url != "") {
$forward = """$*text_forward""";
} else {
$forward = " ";
}

var int start = $.nav.skip;
var int end = $.nav.skip + size $.entries;
var string text = "Viewing $start - $end";
"""






$back $text $forward


""";
}

function EntryPage::print_comment(Comment c) {
var string symb;
if ($c.metadata{"picture_keyword"}!=""){
$symb = ": ";
}
var string picword;
if (defined $c.userpic and $*comment_userpic_style !="off") {
$picword = $c.poster.name + $symb + $c.metadata{"picture_keyword"};
}
var string datetime;
$datetime = $c.time->date_format()+", " + $c.time->time_format();

var string parent;
var string thread;
if($c.parent_url != "") {
$parent = """   $*text_comment_parent   """;
}
if($c.thread_url != "") {
$thread = """   $*text_comment_thread   """;
}

var string subjecticon;
if (defined $c.subject_icon) {
$subjecticon = """""";
}

var string ip;
if ($c.metadata{"poster_ip"}) {
$ip = """   """ + $c.metadata{"poster_ip"};
}

var string poster = defined $c.poster ? $c.poster->as_string() : "(Anonymous)";

var string pic;
if (defined $c.userpic and $*comment_userpic_style != "off") {
$pic = """
""";
}

var string indent = ($c.depth - 1) * 25 + "px";
"""


$pic

$poster $ip




$c.subject

$c.text



""";

if ((size $c.replies) > 0 and $c.replies[0].full == false) {
"""
\n""";
$this->print_comments($c.replies);
"
\n";
}
"""


""";
if ((size $c.replies) > 0 and $c.replies[0].full == true) {
$this->print_comments($c.replies);
}
}