Karen Richards (shwinenee) wrote in component_help,
Karen Richards
shwinenee
component_help

  • Mood:

Width

On my journal, the width of my journal is just a little bit bigger than my header, but on the friends' page they are the same size. I can't figure out how to do the same for my recent entries page. None of my entries are stretching it, so I don't know what's up. Can someone help?


layerinfo "type" = "theme";

layerinfo "name" = "Layer";

set background_scrolling = "fixed";

set show_free_text = true;

set show_profile= true;

set show_summary = true;

function Page::print_custom_head() {

"""









""";



}







function print_free_text(Page p)

{

print_comp_header("Random Quote");



"""



"If you were sitting in your living room watching tv, having a poptart and a soda, and some drunkin idiot walked into your home wanting to use your bathroom, you'd fucking call the cops."
-Mike Shinoda



""";



print_comp_footer();

}









function print_profile(Page p) {



print_comp_header("profile");

"""

 










$p.journal.default_pic







User: </a></b></a>shwinenee


Name: Karen Richards


Age: 14


Location: Minnesota


















""";

print_comp_footer();

}





function CommentInfo::print() {

if (not $.enabled) { return; }

if ($.count > 0 or $.screened) {

$this->print_readlink();

""" // """;

}

$this->print_postlink();

}





function page_layout(Page p) {

# Set this to the width that you want both the navbar (if it exists) and the whole journal to be

# may be percentage (70%) or number of pixels (700px).

var string k1Swidth = "70%";



# Start the html document and print the head section which controls the page title, stylesheet information,

# server supplied head content, and custom header informtion from the print_custom_head function.

var string title = $p->title();

"""





""";



# Start the body section of the html document which controls the visible parts of the page.

"""""";



# If you want a picture to be at the top of your journal, edit and decomment this section remove the # from the next line.

"""
Header
""";



if($k1Swidth != "") {

"""
""";

}



# Print the navigation bar if it is needed. This can be incorporated into any other tutorials which override

# the page_layout() function, and should be placed immediately after the tag above.

if (not $*comp_navbar or $*comp_state=="none") {

"""
""";

print "$*nav_entries_text";

print "$*nav_friends_text";

print "$*nav_calendar_text";

print "$*nav_info_text";

if ($p.journal.website_url != "") {

print "$p.journal.website_name";

}

$p->lay_viewspec_nav(); # prints previous / next links including arrow images

"""



""";

}



# Print a spacer at the top of the page above the components and main area.

"""
""";



# Start the table which lays out the components and main area in side-by-side layout

"""







""";



# If the components are supposed to be on the left side of the page, then print them, followed by a column

# with a spacer which is to seperate the components and the main area.

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

print_my_components($p);

"""



""";

}



# Print the main area of the page.

print_my_entries($p, $title);



# If the components are supposed to be on the right side of the page, then first print a column with a spacer

# and then print the components after the spacer.

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

"""



""";

print_my_components($p);

}



# Finish off the table for the body

"""























""";



if($k1Swidth != "") {

"""
""";

}



# End the body section and end the html document

"""





""";

}



# Change the way RecentPage and FriendsPage summaries print. (FriendsPage inherits from RecentPage)

function RecentPage::lay_print_summary() {



# print the header of the component and determine the size of the entries array

print_comp_header("page summary");

var int size = size $.entries - 1;

if ($size<0) { return; }



# loop on the entries

foreach var int pos (0..$size) {



# Get the Entry and start the summary line

var Entry e = $.entries[$pos];

var string subject = ($e.subject!=""?$e->plain_subject():"(no subject)");

"""
""";



# On the Friends page print: : : [+]

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

"""$e.poster """;

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

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

"""$subject""";

if ($e.comments.count>0) { """ [+$e.comments.count]"""; }



# On the Recent page print:
""";



# If it's not the last summary line, print a seperator bar

if ($size!=$pos) {

"""





""";

}



# End the loop for entries

}



# Print the component footer when done.

print_comp_footer();

}
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 2 comments