•.•´`•..•´`•Me•´`•..•´`•.• (ardently_alive) wrote in component_help,
•.•´`•..•´`•Me•´`•..•´`•.•
ardently_alive
component_help

Allright, congratulate me....I finally figured out a bunch of stuff thanks to </b></a></a></b></a>

</a></b></a></a></title></head></td></td></td></td></td></tr></table></html></div></div></td></a></td></div></div></td></tr></a></b></a>ardently_alive</center></div>

</center></div>

""";

if($p.journal.username == $ljusername) {

var string aimHandle = "breakaway0artist";

var string aimMessage = "Hey,+Village+Idiot!+Wassup?!!!";

var string aimImgUrl = "http://www.aol.com/aim/gr/online.gif";

var string aimImgAlt = "talk, people...don't waste my time";

var string emailHandle = "breakaway.artist@gmail.com";

var string emailImgUrl = "http://pics.livejournal.com/panda_cookie/pic/0000aeh5";

var string emailImgAlt = "send me email";

"""





$aimImgAlt $emailImgAlt






""";

}

"""

Name:Breakaway Artist


""";

if($p.journal.username == $ljusername) {

var string age = "17";

var string location = "Somewhere...";

var string maritalStatus = "More or less single, at the moment";

var string loves = "3 doors down, 7th heaven, 8 bit theater, aim, alanis morissette, anne mccaffrey, apple, art, avatars, avril lavigne, barlow girl, bashing microsoft, bible, black, black mage, blue, blue eyes, books, c.s. lewis, casting crowns, cd's, christianity, computers, contemporary christian music, dc talk, deviant art, drama, drawing, drawing pencils, dvd's, evanescence, everwood, fantasy, fashion, firefox, fonts, friends, gray, guitar, history, hugs, instant messengers, itunes, j-pop, jag, johnny depp, kevin max, kill bill, laptops, linkin park, lord of the rings, love, movies, msn, music, ncis, paint shop pro, painting, piano, playwright, reading, red, rpg, sarah brightman, science fiction, scrapbooking, sexy emo boys, singing, skits, song writing, songwriting, sound and spirit, stargate, toby mac, tori amos, violin, white, woot, writing, yet another web comic, yim, youth groups, ♥.";

var string notLoves = "Repetitiveness, being sick, feeling helpless, not having enough sleep, being hungry, waiting";

var string k1Swidth = "70%";

"""

Age: $age


Location: $location


Marital Status: $maritalStatus


s: $loves


s: $notLoves


""";

}

"""

</td>

</tr>

</table>



""";

print_comp_footer();

}



#Below, you will find the code for the "listening to" component. Edit as you wish.

#As you can see, this component has my info in it; you can change it to your own.



function print_free_text(Page p) {



print_comp_header("I hear");



"""







</tr>




Evanescence
Anywhere But Home




Linkin Park
Meteora




Bond
Shine




Various Artists
Angel Sanctuary Soundtrack




Gavin DeGraw
Chariot




Various Artists
Synthesizer Greats
















""";



print_comp_footer();







#Below is the "random lyrics" component code, which is really the random quote component tailor made for me. You can change this to anything you wish.



#Determine the colouring for the rounded corners based on the actual page colours. Do not change.



# You only need one copy of these four lines per function, so if you already have it in the function you place this code



# in, then you can remove these four lines since the variable will already be defined. Make sure that the lines appear



# before any code which uses the $corner_color variable.



var Color header = $*header_bgcolor;



var Color headerMinus5 = $header->darker(50);



var Color headerPlus3 = $header->lighter(30);



var string corner_color = "/p0"+$headerPlus3->substr(1,6)+"1"+$headerMinus5->substr(1,6)+"2"+$header->substr(1,6);







# Set properties that will be used to determine how the component prints.



# If you want the component to look like one of the other components, then set all_rounded to false.



# If you want to change the title of the component, then change the value for random_quote_title by changing what is pink.



# If you don't want a title on the all rounded component, then just set random_quote_title to nothing, ie. ="";.



var bool all_rounded = true;



var string random_quote_title = "random lyrics";







# Define the quotes array and add some sample quotes.



# You can modify the quotes by replacing the ones below with whatever you like. You can also adding new lines by



# repeating the pattern and always making sure to increment each index by 1, starting from 0.



# Note that you can use html in these values.



var string[] quotes;



$quotes[0]="""Isn't something missing? Isn't someone missing me?




Please, please forgive me, but I won’t be home again.-- Evanescence - "Missing" """;



$quotes[1]="""She wants to go home, but nobody's home.




That's where she lies




broken inside



With no place to go, no place to go, to dry her eyes... -- Avril Lavigne - "Broken Inside"



""";



$quotes[2]=""" From your cliff I'm stranded




Imbedded in your body deep




Lie answers to the questions -- Kevin Max - "Dead End Moon"



""";



$quotes[3]="""There is love in the red letters



There is truth in the red letters



There is hope for the hopeless



Peace and forgiveness



There is life in the red letters



In the red letters. -- DcTalk - "Red Letters" """;



$quotes[4]="""She's not yours this ain't a game



Step back watch where your hands go



They might come back to haunt you



It might do you good to cut 'em off



Better that than to rip her off. -- Pax 217- "What Is Love?" """;



$quotes[5]="""There's something inside me that pulls beneath the surface



consuming...confusing...



this lack of self-control I fear is never ending



controlling...I can't seem...to find myself again, my walls are closin in -- Linkin Park- "Crawling" """;





# Pick one of the quotes randomly.



var int randquote;



$randquote = rand(0, ((size $quotes) - 1));







# Print the Random Quote Component.



if ($all_rounded) {



"""



<tr>



<td valign="top" rowspan="3" colspan="3" width="5"></td>



<td class=""></td>



<td valign="top" rowspan="3" colspan="3" width="5"></td>



</tr><tr>



<td class=""></td>



</tr><tr>



<td class=""></td>



""";



if ($random_quote_title!="") {



"""



</tr><tr>



<td class="" width="1"></td>



<td class="" width="1"></td>



<td class="" width="3"></td>



<td class="" width="100%">



$random_quote_title



<td class="" width="3"></td>



<td class="" width="1"></td>



<td class="" width="1"></td>



</tr><tr>



<td class="" colspan="7"></td>



</tr><tr>



<td class="" colspan="7"></td>



""";



}



"""



</tr><tr>



<td class="" width="1"></td>



<td class="" width="1"></td>



<td class="" width="3"></td>



<td class="" width="100%">



$quotes[$randquote]



<td class="" width="3"></td>



<td class="" width="1"></td>



<td class="" width="1"></td>



</tr><tr>



<td valign="top" rowspan="3" colspan="3" width="5"></td>



<td class=""></td>



<td valign="top" rowspan="3" colspan="3" width="5"></td>



</tr><tr>



<td class=""></td>



</tr><tr>



<td class=""></td>



</tr><tr>



<td colspan="5"></td>



</tr>



""";



} else {



print_comp_header($random_quote_title);



"""$quotes[$randquote]""";



print_comp_footer();



}



}











####BEGIN print_custom_head####



#Here is where you will be putting stylesheet stuff; the usual CSS stuff...

function Page::print_custom_head() {



"""







""";



} #end function#







#Once we've done that we can proceed to edit the entries so that they apply these new classes #and do all that stuff that we want them to ;).







### Override the printing of entries. This affects the Recent/Day pages, Friends pages, and Entry pages.



function print_entry(Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text) {











# Print the anchor to be used in the page summary.



if ($p.view=="friends") {



"""""";



} else { # for recent, day, entry pages.



"""""";



}







var string noscroll ;



if ($p.view == "recent" or $p.view == "friends") {



$noscroll = "class=\"fixed\"" ;



}







var string content_top = """<td class="" width="100%" valign="top">







[Error: Irreparable invalid markup ('<table [...] $noscroll>') in entry. Owner must fix manually. Raw contents below.]

Allright, congratulate me....I finally figured out a bunch of stuff thanks to<span style="text-decoration: underline;"><span style="font-weight: bold;"> </span></span><span class="ljuser" style="white-space: nowrap;"><a href="http://www.livejournal.com/users/panda_cookie/"><b><br>
</b></a></span><span class="ljuser" style="white-space: nowrap;"><a href="http://www.livejournal.com/userinfo.bml?user=panda_cookie"><img src="http://www.livejournal.com/img/userinfo.gif" alt="userinfo" style="border: 0pt none ; vertical-align: bottom;" height="17" width="17"></a><a href="http://www.livejournal.com/users/panda_cookie/"><b>panda_cookie</b></a>
's tutorial and it's going quite well....especially after i figured out
that i needed to change my theme to the appropriate layer...<br>
<br>
&gt;_&lt;<br>
<br>
So yeah, i have some dumbassed questions here. (pardon if that's rude, i'll edit if i need to) <br>
<br>
1. I would LOVE to get a neato date/time thingy like </span><br>
<span class="ljuser" style="white-space: nowrap;"></span><span class="ljuser" style="white-space: nowrap;"></span><span class="ljuser" style="white-space: nowrap;"><a href="http://www.livejournal.com/userinfo.bml?user=_tumbleweed"><img src="http://www.livejournal.com/img/userinfo.gif" alt="userinfo" style="border: 0pt none ; vertical-align: bottom;" height="17" width="17"></a><a href="http://www.livejournal.com/users/_tumbleweed/"><b>_tumbleweed</b></a> but i cannot figure out at ALL where to put it.<br>
<br>
2. The LJ Login box. <a href="http://www.livejournal.com/community/component_help/42716.html" target="_blank">Posted here. Once again, i don't know where to put it...</a> Same goes for the Maquee component and the Clock component.

3: Also, the free text box i had is obviously gone...can i get it back? And how?

4. Could some one point out to me where to change the background in the tutorial? I believe i missed it....otherwise i'm gonna try changing it from the site.

5. How do i get my entries to be the same as they were before lenghtwise at least, without the scroll bar?

[EDIT] number 4 is taken care of...

But i have another one to add.

Where in the WORLD did my navigation bar go?

<lj-cut text="The code i currently have...do NOT ask why this layer is named as such">

layerinfo "type" = "theme";





layerinfo "name" = "sumthin sumthin";



layerinfo lang = "en";



layerinfo source_viewable = 1;



layerinfo is_public = 1;







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



""";



$p->print_custom_head();



"""



<title>$title</title>



</head>



<body>







<td><center><img



src="http://img111.echo.cx/img111/2747/ljheader8dx.jpg"></td>



<body>



<table width="80%" cellspacing="0" cellpadding="0" valign="top" align="center">



<tr valign="top" width="80%">



<td width="1">



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



</td>



""";







if ($*comp_state == "left") {



print_my_components($p);



"""



<td width="1">



<img src="http://www.livejournal.com/palimg/component/clear.gif" width="1"



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="1"



height="1" alt="" border="0">



</td>



""";







print_my_components($p);



}



"""



<td width="1">



<img src="http://www.livejournal.com/palimg/component/clear.gif" width="1"



height="1" alt="" border="0">



</td>



</tr>



</table>



</body>



</html>



""";



}







function print_profile(Page p) {



print_comp_header($*profile_text);

var string ljusername = "panda_cookie";

"""

<table cellspacing="0" cellpadding="0" border="0">

<tr>

<td width="60%" align="center">

<div class="shortLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></div>

<div class="shortLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></div>

</td>

<td align="center">

<a href="$*SITEROOT/allpics.bml?user=$p.journal.username"><br> $p.journal.default_pic</a>

</td>

<td width="60%" align="center">

<div class="shortLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></div>

<div class="shortLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></div>

</td>

</tr>

<tr>

<td colspan="3" class="compContent">

<div><center><span class='ljuser' style='white-space:nowrap;'><a href='http://www.livejournal.com/userinfo.bml?user=ardently_alive'><img src='http://img111.echo.cx/img111/1220/image273yu.jpg' alt='userinfo' width='17' height='17' style='vertical-align:bottom;border:0;' /></a><a href='http://www.livejournal.com/users/ardently_alive/'><b>ardently_alive</b></a></span></center></div>

</center></div>

""";

if($p.journal.username == $ljusername) {

var string aimHandle = "breakaway0artist";

var string aimMessage = "Hey,+Village+Idiot!+Wassup?!!!";

var string aimImgUrl = "http://www.aol.com/aim/gr/online.gif";

var string aimImgAlt = "talk, people...don't waste my time";

var string emailHandle = "breakaway.artist@gmail.com";

var string emailImgUrl = "http://pics.livejournal.com/panda_cookie/pic/0000aeh5";

var string emailImgAlt = "send me email";

"""

<div align="center">

<div>

<table>

<tr>

<td><a href="aim:goim?screenname=$aimHandle&message=$aimMessage"><img src="$aimImgUrl" alt="$aimImgAlt" title="$aimImgAlt" style="border: 0;" /></a></td>

<td><a href="mailto:$emailHandle"><img src="$emailImgUrl" alt="$emailImgAlt" title="$emailImgAlt" style="border: 0;"/></td>

</tr>

</table>

</div>

</div>

""";

}

"""

<div><b>Name:</b>Breakaway Artist</div>

""";

if($p.journal.username == $ljusername) {

var string age = "17";

var string location = "Somewhere...";

var string maritalStatus = "More or less single, at the moment";

var string loves = "3 doors down, 7th heaven, 8 bit theater, aim, alanis morissette, anne mccaffrey, apple, art, avatars, avril lavigne, barlow girl, bashing microsoft, bible, black, black mage, blue, blue eyes, books, c.s. lewis, casting crowns, cd's, christianity, computers, contemporary christian music, dc talk, deviant art, drama, drawing, drawing pencils, dvd's, evanescence, everwood, fantasy, fashion, firefox, fonts, friends, gray, guitar, history, hugs, instant messengers, itunes, j-pop, jag, johnny depp, kevin max, kill bill, laptops, linkin park, lord of the rings, love, movies, msn, music, ncis, paint shop pro, painting, piano, playwright, reading, red, rpg, sarah brightman, science fiction, scrapbooking, sexy emo boys, singing, skits, song writing, songwriting, sound and spirit, stargate, toby mac, tori amos, violin, white, woot, writing, yet another web comic, yim, youth groups, ♥.";

var string notLoves = "Repetitiveness, being sick, feeling helpless, not having enough sleep, being hungry, waiting";

var string k1Swidth = "70%";

"""

<div><b>Age:</b> $age</div>

<div><b>Location:</b> $location</div>

<div><b>Marital Status:</b> $maritalStatus</div>

<div><b><img src= "http://pics.livejournal.com/panda_cookie/pic/0002184k"/>s:</b> $loves</div>

<div><b><img src= "http://pics.livejournal.com/panda_cookie/pic/0001y135"/>s:</b> $notLoves</div>

""";

}

"""

</td>

</tr>

</table>



""";

print_comp_footer();

}



#Below, you will find the code for the "listening to" component. Edit as you wish.

#As you can see, this component has my info in it; you can change it to your own.



function print_free_text(Page p) {



print_comp_header("I hear");



"""



<div id="Layer1" style="border:0px solid #CCCCCC; position:relative;



width:100%; height:200px; z-index:1; overflow: auto; overflow-x: hidden;



scrollbar-3dlight-color: #CCCCCC; scrollbar-3dlight-color: #CCCCCC;



scrollbar-arrow-color: #800000; scrollbar-base-color: #CCCCCC;



scrollbar-darkshadow-color: #CCCCCC; scrollbar-face-color: #CCCCCC;



scrollbar-highlight-color: #CCCCCC; scrollbar-shadow-color: #CCCCCC;">



<table width="100%" cellpadding="3" cellspacing="0">



<tr bgcolor=#800000">



<td align="left">



<a



href="http://www.amazon.com/exec/obidos/tg/detail/-/B000687M48/qid=1115511426/sr=8-1/ref=pd_csp_1/104-1398423-6255105?v=glance&s=music&n=507846"



target="_blank"><img



src="http://images.amazon.com/images/P/B000687M48.01._PE8_SCMZZZZZZZ_.jpg"border="0"



style="border: 1px solid #800000" /></td>



<td align="left"><b>Evanescence</b><br><i>Anywhere But Home</i><br> </td>



</tr>







<tr bgcolor="#FFFFFF">



<td align="left">



<a



href="http://www.amazon.com/exec/obidos/ASIN/B00008H2LB/qid=1115511581/sr=2-1/ref=pd_bbs_b_2_1/104-1398423-6255105"



target="_blank"><img



src="http://images.amazon.com/images/P/B00008H2LB.01._PE25_SCMZZZZZZZ_.jpg"



border="0" style="border: 1px solid #800000" /></td>



<td align="left"><b>Linkin Park</b><br><i>Meteora</i><br> </td>



</tr>







<tr bgcolor="#FFffFF">



<td align="left">



<a



href="http://www.amazon.com/exec/obidos/ASIN/B00006JID4/qid=1115511674/sr=2-3/ref=pd_bbs_b_2_3/104-1398423-6255105"



target="_blank"><img



src="http://images.amazon.com/images/P/B00006JID4.01._PE22_SCMZZZZZZZ_.jpg"



border="0" style="border: 1px solid #800000" /></td>



<td align="left"><b>Bond</b><br><i>Shine</i><br> </td>



</tr>







<tr bgcolor="#FFFFFF">



<td align="left">



<a



href="http://www.amazon.com/exec/obidos/ASIN/B000059O1P/qid=1115511807/sr=2-1/ref=pd_bbs_b_2_1/104-1398423-6255105"



target="_blank"><img



src="http://images.amazon.com/images/P/B000059O1P.01._SCMZZZZZZZ_.jpg"



border="0" style="border: 1px solid #800000" /></td>



<td align="left"><b>Various Artists</b><br><i>Angel Sanctuary Soundtrack</i><br> </td>



</tr>







<tr bgcolor="#FFffFF">



<td align="left">



<a



href="http://www.amazon.com/exec/obidos/ASIN/B00009V8Z9/qid=1115511978/sr=2-1/ref=pd_bbs_b_2_1/104-1398423-6255105"



target="_blank"><img



src="http://images.amazon.com/images/P/B00009V8Z9.01._SCMZZZZZZZ_.jpg"



border="0" style="border: 1px solid #800000" /></td>



<td align="left"><b>Gavin DeGraw</b><br><i>Chariot</i><br> </td>



</tr>







<tr bgcolor="#FFFFFF">



<td align="left">



<a



href="http://www.amazon.com/exec/obidos/ASIN/B000000KLV/qid=1115512307/sr=2-3/ref=pd_bbs_b_2_3/104-1398423-6255105"



target="_blank"><img



src="http://images.amazon.com/images/P/B000000KLV.01._SCMZZZZZZZ_.jpg"



border="0" style="border: 1px solid #800000" /></td>



<td align="left"><b>Various Artists</b><br><i>Synthesizer Greats</i><br> </td>



</tr>







</tr>



</table>







</div>







""";



print_comp_footer();







#Below is the "random lyrics" component code, which is really the random quote component tailor made for me. You can change this to anything you wish.



#Determine the colouring for the rounded corners based on the actual page colours. Do not change.



# You only need one copy of these four lines per function, so if you already have it in the function you place this code



# in, then you can remove these four lines since the variable will already be defined. Make sure that the lines appear



# before any code which uses the $corner_color variable.



var Color header = $*header_bgcolor;



var Color headerMinus5 = $header->darker(50);



var Color headerPlus3 = $header->lighter(30);



var string corner_color = "/p0"+$headerPlus3->substr(1,6)+"1"+$headerMinus5->substr(1,6)+"2"+$header->substr(1,6);







# Set properties that will be used to determine how the component prints.



# If you want the component to look like one of the other components, then set all_rounded to false.



# If you want to change the title of the component, then change the value for random_quote_title by changing what is pink.



# If you don't want a title on the all rounded component, then just set random_quote_title to nothing, ie. ="";.



var bool all_rounded = true;



var string random_quote_title = "random lyrics";







# Define the quotes array and add some sample quotes.



# You can modify the quotes by replacing the ones below with whatever you like. You can also adding new lines by



# repeating the pattern and always making sure to increment each index by 1, starting from 0.



# Note that you can use html in these values.



var string[] quotes;



$quotes[0]="""Isn't something missing? Isn't someone missing me?<br>



Please, please forgive me, but I won’t be home again.-- <b>Evanescence - "Missing"</b> """;



$quotes[1]="""She wants to go home, but nobody's home.<br>



That's where she lies<br>



broken inside<br>


With no place to go, no place to go, to dry her eyes... -- <b>Avril Lavigne - "Broken Inside</b>"



""";



$quotes[2]=""" From your cliff I'm stranded<br>



Imbedded in your body deep<br>



Lie answers to the questions -- <b>Kevin Max - "Dead End Moon</b>"



""";



$quotes[3]="""There is love in the red letters<br>


There is truth in the red letters<br>


There is hope for the hopeless<br>


Peace and forgiveness<br>


There is life in the red letters<br>


In the red letters. -- <b>DcTalk - "Red Letters"</b> """;



$quotes[4]="""She's not yours this ain't a game<br>


Step back watch where your hands go<br>


They might come back to haunt you<br>


It might do you good to cut 'em off<br>


Better that than to rip her off. -- <b>Pax 217- "What Is Love?"</b> """;



$quotes[5]="""There's something inside me that pulls beneath the surface<br>


consuming...confusing...<br>


this lack of self-control I fear is never ending<br>


controlling...I can't seem...to find myself again, my walls are closin in -- <b>Linkin Park- "Crawling"</b> """;





# Pick one of the quotes randomly.



var int randquote;



$randquote = rand(0, ((size $quotes) - 1));







# Print the Random Quote Component.



if ($all_rounded) {



"""



<tr>



<td valign="top" rowspan="3" colspan="3" width="5"><img src="http://www.livejournal.com/palimg/component/curve-top-left.gif$corner_color" width="5" height="5" alt="" border="0" /></td>



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



<td valign="top" rowspan="3" colspan="3" width="5"><img src="http://www.livejournal.com/palimg/component/curve-top-right.gif$corner_color" width="5" height="5" alt="" border="0" /></td>



</tr><tr>



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



</tr><tr>



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



""";



if ($random_quote_title!="") {



"""



</tr><tr>



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



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



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



<td class="tabBg" width="100%">



<span class="sideHeader">$random_quote_title</span>



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



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



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



</tr><tr>



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



</tr><tr>



<td class="dkLine" colspan="7"><img src="http://test.livejournal.org/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>



""";



}



"""



</tr><tr>



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



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



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



<td class="tabBg" width="100%">



<span class="randomquote">$quotes[$randquote]</span>



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



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



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



</tr><tr>



<td valign="top" rowspan="3" colspan="3" width="5"><img src="http://www.livejournal.com/palimg/component/curve-bottom-left.gif$corner_color" width="5" height="5" alt="" border="0" /></td>



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



<td valign="top" rowspan="3" colspan="3" width="5"><img src="http://www.livejournal.com/palimg/component/curve-bottom-right.gif$corner_color" width="5" height="5" alt="" border="0" /></td>



</tr><tr>



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



</tr><tr>



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



</tr><tr>



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



</tr>



""";



} else {



print_comp_header($random_quote_title);



"""<span class="randomquote">$quotes[$randquote]</span>""";



print_comp_footer();



}



}











####BEGIN print_custom_head####



#Here is where you will be putting stylesheet stuff; the usual CSS stuff...

function Page::print_custom_head() {



"""



<style media="screen" type="text/css">







table.fixed



{



table-layout:fixed;



}



div.scrollentry



{



width:100%;



overflow:auto;



height: 195px;



padding-bottom:17px;



}



</style>



""";



} #end function#







#Once we've done that we can proceed to edit the entries so that they apply these new classes #and do all that stuff that we want them to ;).







### Override the printing of entries. This affects the Recent/Day pages, Friends pages, and Entry pages.



function print_entry(Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text) {











# Print the anchor to be used in the page summary.



if ($p.view=="friends") {



"""<a name="$e.journal.username$e.itemid"></a>""";



} else { # for recent, day, entry pages.



"""<a name="item$e.itemid"></a>""";



}







var string noscroll ;



if ($p.view == "recent" or $p.view == "friends") {



$noscroll = "class=\"fixed\"" ;



}







var string content_top = """<td class="entryHolderBg" width="100%" valign="top">



<table cellspacing="0" cellpadding="0" border="0" width="100%">



<tr>



<td width="100%">



<table cellspacing="0" cellpadding="0" border="0" width="100%" $noscroll>



<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="medLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></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">



""";







# Print the header for the entry. It prints in the default form "[<icon> ]<time> <date>" where:



# <icon> is the security icon (ie. lock if protected, eye if private, or none if public)



# <time> is in the default time format (eg: 03:46 am)



# <date> is bold and in the "long" format (eg: November 25th, 2003)



# The ordering can be adjusted however needed, and you can also modify the formats that date and time print in.



# This can all be done in the pink section below. For specifications of available formats or how to construct



# your own formats, you can see: http://www.livejournal.com/doc/s2/siteapi.core1.html#siteapi.core1.dateformats



print_entry_header((defined $e.security_icon?"$e.security_icon ":"")+$e.time->time_format()+" <b>"+$e.time->date_format("long")+"</b>");







print_system_box_top();



"""<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr>""";







# Check to see if we need to display a usericon and/or journal names, and if so, then print them



# Cases - 1. We are viewing a friends page, so we need to display icons if they exist and journal/poster names



# 2. We are viewing a recent/day/entry page, so we display only the icon if it exists and



# the user has set recent userpics on.



# The code in red is the logic to decide whether or not to show the userpics. You can modify it as you see fit.



if ($p.view=="friends" or ($*show_entry_userpic and defined $e.userpic) or $e.journal.journal_type=="C") {



# Start the table that will hold the icon and/or names



"""



<td valign="top" style="padding-right: 8px;">



<table cellspacing="0" cellpadding="0" border="0" align="center">



<tr>



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



</tr>



""";



# Display the icon if it exists



if (defined $e.userpic) { """



<tr>



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



""";



# If we are on the friends view, then we want to print the extra border around the image that have the colors



# which are custom defined.


#



if ($p.view=="friends") {



""" <div style="padding-top: 3px; padding-left: 3px; padding-right: 3px; padding-bottom: 3px; background-color: """; print $bgcolor.as_string; """ ;" align="center">



<img border="1" src="$e.userpic.url" width="$e.userpic.width" height="$e.userpic.height" alt="" style="border-color: """; print $fgcolor.as_string; """ ;" />



</div> """;



}else{



""" <td align="center" class="userpic"><img border="1" src="$e.userpic.url" width="$e.userpic.width" height="$e.userpic.height" alt="" /></td> """;



}



"""



</tr>



"""; }



# Display the journal and possibly poster name if we are viewing the friends page or any page on a community



# This code will print the journal the entry was made on, and if the poster is different, will print the poster under it.



# I made the names centered under the image.




if ($p.view=="friends" or $e.journal.journal_type=="C") { """



<tr>



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



<td align="center" class="ljuser">$e.journal""";



if ($e.journal.username!=$e.poster.username) {"""



<div align="center" class="ljuser">$e.poster</div>""";



} """



</td>



</tr>""";



}



"""



</table>



</td>



"""; }







# Start the main entry text area.



#ATTENTION ALL THOSE ALREADY USING THE PRINT_ENTRY FUNCTION



#YOU HAVE TO REPLACE THIS PART OF YOUR CODE, NOT JUST ADD IT OR IT WON'T WORK.



print $content_top;







# 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://stat.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>



</tr>



<tr>



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



<td class="entry">



"""; }







"""<div class="scrollentry">""";



# Print the entry text.





""" $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.



#

"""<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



"""</div>""";



print_content_bottom();







# This is where the fun stuff is!



# Now we begin the area underneath the entry that holds the comments, link, and entry related buttons.



"""



<table width="100%">



</tr>



<td width="50%" align="left" valign="center">



<div class="entryComments">



""";



# First we print the comment links if the entry allows comments



if ($e.comments.enabled) {



$e.comments->print();



}



"""



</div>



</td>



<td align="center" valign="center">""";



# Then print a permanent link to the entry.



#

"""



<div class="entryComments"><span style="white-space:nowrap;"><b>( <a href="$e.permalink_url" class="commentLinks">$*text_permalink</a> )<b></span></div>



</td>



<td width="50%" align="right" valign="center">""";



# Then the entry related buttons



"""<div class="entryComments">



""";



#



$e->print_linkbar();







# var Link prevlink = $e->get_link("nav_prev");



# if ($p.view=="entry" and defined $prevlink and $prevlink.url!="") { """<a href="$prevlink.url"><img border='0' width="$prevlink.icon.width" height="$prevlink.icon.height" alt="" src="$prevlink.icon.url" /></a>"""; }



# var Link editlink = $e->get_link("edit_entry");



# if (defined $editlink and $editlink.url!="") { """<a href="$editlink.url"><img border='0' width="$editlink.icon.width" height="$editlink.icon.height" alt="" src="$editlink.icon.url" /></a>"""; }



# var Link memlink = $e->get_link("mem_add");



# if (defined $memlink and $memlink.url!="") { """<a href="$memlink.url"><img border='0' width="$memlink.icon.width" height="$memlink.icon.height" alt="" src="$memlink.icon.url" /></a>"""; }



# var Link nextlink = $e->get_link("nav_next");



# if ($p.view=="entry" and defined $nextlink and $nextlink.url!="") { """<a href="$nextlink.url"><img border='0' width="$nextlink.icon.width" height="$nextlink.icon.height" alt="" src="$nextlink.icon.url" /></a>"""; }



"""



</div>



</td>



</tr>



</table>



""";







# End the entry component and put a spacer after it so that entry components are seperated.



"""</tr></td></table>""";



print_system_box_bottom();



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







} # end of Function print_entry
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 5 comments