I just installed a new layout and somehow I seriously screwed it up. There are several things wrong with it.
1. My components don't start till half way down my friends and most recents page, but is at the top of my comments page.
2. There are colors in my layout that I didn't put there. The color is sort of a maroon on the left side of each component header, you can barely see it. but why is it there, I didn't choose any maroon color?
3. Some of the text in my component is not showing but I can not find any part of the code that is wrong or different. One line shows up the next line doesn't. i.e. "Feature" text for the movie title, first movie text shows up second one doesn't.
4. I have a header and background image, but the background image is not showing up. This worked with my last layout.
5. The last component, "Favorite Icons" is way off line to the rest of the components.
I am using a theme layer with "no errors" but something is drastically wrong.
Do I need to search through all the FAQ's for each individual problem or can someone help me with all of them.
Thanks.
Bethany
I should probably add my code, cuz obviously there's something wrong with it, eh? Okay so I can do that little scroll box thing... but WHOA wait a minute, why is some of it coming up with green and yellow??? I'm so confused. Also I have my background image in Edit Customization -> Presentation. That's what I told to do with my previous layout, which worked... without nearly this many complications.
layerinfo "type" = "theme";
layerinfo "name" = "Carrie";
##################
##COMPONENT CODE##
##################
function print_free_text(Page p) {
print_comp_header("About my Diary");
"""
This journal is Friends Only. And I like to be upfront, but I rarely add friends, searchers. Sorry for any inconvenience.
Header made by lj:<b>Shonte' Brown (flwrgrl)</b>, layout customizations help lj:<b>jesster2282</b> and FO banner made by lj:<b>mandiep24</b>.<br>
<b><i>Please be respectful when participating in my journal, please no vulgar, graphic or rude language. I vaule my friends; every one, RL and online are special to me. I would like everyone to feel welcome and safe here.</i></b></font><br>
""";
print_comp_footer();
print_comp_header("I Believe...");
"""
<div id="Layer1" style="position:relative; width:210px; height:250px; z-index:1; overflow: auto; overflow-x: hidden;">Philippians 1:3-4 "I thank my God every time I remember you. In all my prayers for all of you, I always pray with joy."<br>
I believe - that we don't have to change friends if we understand that friends change.<br>
Hebrews 8:10 "This is the covenant I will make with the house of Israel, after that time, declares the Lord. I will put my laws in their minds and write them on their hearts. I will be their God, and they will be my people."<br>
I believe - that we are responsible for what we do, no matter how we feel.<br>
Philippians 1:6 "being confident of this, that he who began a good work in you will carry it on to completion until the day of Christ Jesus."<br>
I believe - that just because someone doesn't love you the way you want them to doesn't mean they don't love you with all they have.<br>
Rejoice in the Lord always and again I say REJOICE!<br>
I believe - that our background and circumstances may have influenced who we are, but we are responsible for who we become.<br>
Philippians 4:8 "Finally, brothers, whatever is true, whatever is noble, whatever is right, whatever is pure, whatever is lovely, whatever is admirable–if anything is excellent or praiseworthy–think about such things."<br>
</div>
""";
print_comp_footer();
print_comp_header("Features");
"""
<table width="100%" cellpadding="3" cellspacing="0">
<tr bgcolor="$*main_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/QBPrincess.jpg" border="0" style="border: 1px solid #FFFFFF" alt="Quarterback Princess" title="Quarterback Princess" /></td>
<td align="left"><b>Quarterback Princess</b><br></td>
</tr>
<tr bgcolor="$*comp_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/1stDaughter.jpg" border="0" style="border: 1px solid #FFFFFF" alt="First Daughter" title="First Daughter" /></td>
<td align="left"><b>First Daughter</b><br></td>
</tr>
<tr bgcolor="$*main_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/HTLAG.jpg" border="0" style="border: 1px solid #FFFFFF" alt="How To Lose A Guy in 10 Days" title="How To Lose A Guy in 10 Days" /></td>
<td align="left"><b>How To Lose A Guy in 10 Days</b><br></td>
</tr>
<tr bgcolor="$*comp_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/PD.jpg" border="0" style="border: 1px solid #FFFFFF" alt="Princess Diaries 2" title="Princess Diaries 2" /></td>
<td align="left"><b>Princess Diaries 1&2</b><br></td>
</tr>
<tr bgcolor="$*comp_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/PW.jpg" border="0" style="border: 1px solid #FFFFFF" alt="Pretty Woman" title="Pretty Woman" /></td>
<td align="left"><b>Pretty Woman</b><br><font size=-2>(edited for TV Version)</font><br></td>
</tr>
<tr bgcolor="$*comp_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/Monsters.jpg" border="0" style="border: 1px solid #FFFFFF" alt="Monsters, Inc." title="Monsters, Inc." /></td>
<td align="left"><b>Monsters Inc.</b><br></td>
</tr>
</table>
""";
print_comp_footer();
print_comp_header("People");
"""
<table width="100%" cellpadding="3" cellspacing="0">
<tr bgcolor="$*main_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/audrey.jpg" border="0" style="border: 1px solid #000000" alt="Movie" title="Movie" /></td>
<td align="left"><b>Audrey Hepburn</b><br></td>
</tr>
<tr bgcolor="$*main_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/tommy.jpg" border="0" style="border: 1px solid #000000" alt="Movie" title="Movie" /></td>
<td align="left"><b>My Tommy (Tom Cruise)</b><br></td>
</tr>
<tr bgcolor="$*comp_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/marc.jpg" border="0" style="border: 1px solid #000000" alt="Movie" title="Movie" /></td>
<td align="left"><b>Marc Blucas</b><br></td>
</tr>
<tr bgcolor="$*main_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/annegeddes.jpg" border="0" style="border: 1px solid #000000" alt="Movie" title="Movie" /></td>
<td align="left"><b>Anne Geddes</b><br></td>
</tr>
</table>
""";
print_comp_footer();
print_comp_header("Most Recent Favorite Artists");
"""
<table width="100%" cellpadding="3" cellspacing="0">
<tr bgcolor="$*main_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/Carrie.jpg" border="0" style="border: 1px solid #000000" alt="Album" title="Album" /></td>
<td align="left"><br><i>Carrie Underwood</i></td>
</tr>
<tr bgcolor="$*comp_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/jeremy.jpg" border="0" style="border: 1px solid #000000" alt="Album" title="Album" /></td>
<td align="left"><br><i>Jeremy Camp</i></td>
</tr>
<tr bgcolor="$*comp_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/Amy.jpg" border="0" style="border: 1px solid #000000" alt="Album" title="Album" /></td>
<td align="left"><br><i>Amy Grant</i></td>
</tr>
<tr bgcolor="$*main_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/nsync.jpg" border="0" style="border: 1px solid #000000" alt="Album" title="Album" /></td>
<td align="left"><br><i>*NSYNC</i></td>
</tr>
<tr bgcolor="$*comp_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/Deb.jpg" border="0" style="border: 1px solid #000000" alt="Album" title="Album" /></td>
<td align="left"><br><i>Deborah (Debbie) Gibson</i></td>
</tr>
<tr bgcolor="$*comp_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/Brit.jpg" border="0" style="border: 1px solid #000000" alt="Album" title="Album" /></td>
<td align="left"><br><i>(young) Britney Spears</i></td>
</tr>
<tr bgcolor="$*comp_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/dctalk.jpg" border="0" style="border: 1px solid #000000" alt="Album" title="Album" /></td>
<td align="left"><br><i>DC Talk</i></td>
</tr>
</table>
""";
print_comp_footer();
print_comp_header("Most Watched TV");
"""
<table width="100%" cellpadding="3" cellspacing="0">
<tr bgcolor="$*main_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/AIlogo.jpg" border="0" style="border: 1px solid #000000" alt="TV SHOW" title="TV SHOW" /></td>
<td align="left"><b>American Idol</b><br></td>
</tr>
<tr bgcolor="$*comp_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/TARlogo.jpg" border="0" style="border: 1px solid #000000" alt="TV SHOW" title="TV SHOW" /></td>
<td align="left"><b>Amazing Race</b><br></td>
</tr>
<tr bgcolor="$*main_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/homemakeover.jpg" border="0" style="border: 1px solid #000000" alt="TV SHOW" title="TV SHOW"/></td>
<td align="left"><b>Extreme Home Makeover</b><br></td>
</tr>
<tr bgcolor="$*comp_bgcolor">
<td align="right">
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Layout/GA.jpg" border="0" style="border: 1px solid #000000" alt="TV SHOW" title="TV SHOW" /></td>
<td align="left"><b>Grey's Anatomy</b><br></td>
</tr>
</table>
<tr bgcolor="$*comp_bgcolor">
<td align="right">
("Favorite TV of all time");
<td align="left"><b>Growing Pains</b>, <b>Cosby Show</b>, <b>Rags to Riches</b>, <b>90210</b>, <b>American Dreams</b>, <b>Family Ties.</b><br></td>
</tr>
</table>
""";
print_comp_footer();
print_comp_header("Some fav Icons");
"""
<div id="Layer1" style="position:relative; width:210px; height:470px; z-index:1; overflow: auto; overflow-x: hidden;">
Some of my favorite icons, but that I never really use to post with: (roll over icon for credit source.)<br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/AllGrownUp.gif" title="LJ:princess_diary"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/Staybymyside.gif" title="LJ:princess_diary"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/babyproof.jpg" title="LJ:myradar"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/blackonemanonewoman.jpg" title="LJ:princess_diary"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/howto01.gif" title="LJ:sugarshock"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/prettywomandate.jpg" title="LJ:braz3n"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/bbblues.gif" title="LJ:mzrison"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/everafter02.gif" title="LJ:iconographic"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/girls4.png" title="LJ:i_whore"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/oeonemore.jpg" title="LJ:_trees"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/tom-blinks.gif" title="LJ:greyday"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/topgun04.jpg" title="LJ:kryssibug"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/toosexy.gif" title="LJ:roxstarniki"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/th10POEM.png" title="LJ:i_whore"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/promisehouse.gif" title="LJ:grandentrance"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/10AM.jpg" title="LJ:princess_diary"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/happybase.png" title="LJ:erics_babygirl"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/FRIENDSpeephole.png" title="LJ:sensibility_"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/candace.jpg" title="candacecameronbure.net"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/90s-13.jpg" title="LJ:joann_nicole"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/alexellen.gif" title="LJ:_diamondicons"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/alexisa01.png" title="LJ:_anyonebutyou"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/rc_040409_podsquad1.jpg" title="LJ:roniabirk"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/BooHeart.gif" title="LJ:princess_diary"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/cinderella.jpg" title="LJ:caroleella"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/aurorasleepbeautypinkblue2.gif" title="LJ:dinkylorenzo"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/poohfriends.gif" title="LJ:athinamarie"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/ladyfamily.jpg" title="LJ:underwaterfairy"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/kissfrog.png" title="LJ:bellarose16"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/HilaryHaylie.jpg" title="LJ:elizabeth1127"><br>
<img src="http://img.photobucket.com/albums/v293/princessbeth22/Icons/OULOGO.gif" title="LJ:princess_diary"><br>
</div>
""";
print_comp_footer();
}
#################
##END COMPONENT##
#################
#############################
##SHRINK/CENTER/HEADER CODE##
#############################
function page_layout(Page p) {
var string k1Swidth = "90%";
var string k1Sheader_url = "http://pics.livejournal.com/princess_diary/pic/00036aqd";
var string k1Sheader_alt = "credit:Shonte' Brown (flwrgrl)"; # optional header image alt text
var string title = $p->title();
"""
<html>
<head>
<link rel="stylesheet" href="$p.stylesheet_url" type="text/css"/>
$p.head_content
"""; $p->print_custom_head(); """
<title>$title</title>
</head>
""";
"""<body style="text-align:center;">""";
if($k1Sheader_url != "") {
"""<div align="center"><img src="$k1Sheader_url" alt="$k1Sheader_alt" title="$k1Sheader_alt" /></div>""";
}
if($k1Swidth != "") {
"""<table style="border: 0px; margin: auto; padding: 0px; width:$k1Swidth;"><tr><td>""";
}
if (not $*comp_navbar or $*comp_state=="none") {
""" <div class="header">""";
var string[] views_order = ["recent", "friends", "archive", "userinfo"]; # view order
var string{} view_text = { # build text hash
"recent" => $*nav_entries_text,
"fri ends" => $p.journal_type != "C" ? $*nav_friends_text : $*text_view_friends_comm,
"arc hive" => $*nav_calendar_text,
"userinf o" => $*nav_info_text
};
var string base_url = $p.journal->base_url(); # get base url
var string{} view_url = { # build url hash
"recent" => "$base_url/",
"fri ends" => "$base_url/friends/",
"arc hive" => "$base_url/calendar/",
"userinf o" => "$*SITEROOT/userinfo.bml?user=$p.journal.u sername&mode=full"
};
foreach var string v ($views_order) {
print """<span class="header-item"><a href="$view_url{$v}">$view_text{$v}</a>< /span>""";
}
# to add your own links you can use these as a templates
# print """<span class="header-item"><a href="$*SITEROOT/tools/memories.bml?user= $p.journal.username">memories</a></span> """;
# print """<span class="header-item"><a href="http://www.yahoo.com/">yahoo!</a></span>""";
if ($p.journal.website_url != "") {
print "<span class=\"header-item\"><a href=\"$p.journal.website_url\">$p.journ al.website_name</a></span>";
}
$p->lay_viewspec_nav(); # prints previous / next links including arrow images
"""
</div>
""";
}
"""<div><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="" border="0" /></div>""";
"""
<table cellspacing="0" cellpadding="0" valign="top">
<tr valign="top" width="100%">
<td width="3">
<img src="$*PALIMGROOT/component/clear.gif" width="3" height="1" alt="" border="0" />
</td>
""";
if ($*comp_state == "left") {
print_my_components($p);
"""
<td width="3">
<img src="$*PALIMGROOT/component/clear.gif" width="3" height="1" alt="" border="0" />
</td>
""";
}
print_my_entries($p, $title);
"""
<td width="3">
<img src="$*PALIMGROOT/component/clear.gif" width="3" height="1" alt="" border="0" />
</td>
</tr>
</table>
""";
if($k1Swidth != "") {
"""</td></tr></table>""";
}
"""
</body>
</html>
""";
}
#################################
##END HEADER/SHRINK/CENTER##
#################################
Edit: I figured how to make all the text for the movie title, artists, etc to show up. I don't need them in tables so I've started just deleting the tables, don't know why it didn't work before but I don't care, I just want it all to work.