Flexible Squares--

Oct 28, 2006 12:09

Hi there,

I posted this entry over at s2flexisquares, but no one seemed to know how to fix this. I'm hoping someone in this more general community has some thoughts!

I just have two (hopefully) simple questions about my layout.

First, every single time I update, my footer moves up about 350 pixels. I fix it every single time, but it keeps happening. I checked my margin value under body {, but it's definitely set to zero. Is there anyway to fix this and prevent it from happening in the future? This is the third layout I've made with flexible squares, but it's the first time something like this has happened.

Second, I added the function print_entry(Page p, Entry e, Color bgcolor, Color fgcolor) bit of code to my layout in order to print the edit entry button, but now it also prints the "edit tags," "add to memories," and "track comments," buttons, even though I don't think they are defined in the bit of code I have in there. Obviously, I'm missing something in there, so if anyone has any ideas how to get rid of those other three buttons, I'd really appreciate it. I'd even settle for those being different looking buttons, because right now all of those things look like my "edit entry" link. I fixed this on my own, finally.

I'd really rather not make my layer public, but if it's necessary, let me know. I've included my code beneath the cut instead.


layerinfo "type" = "theme";
layerinfo "name" = "ded flamingos";
layerinfo author_name = "flamingo_killer @ LJ";

set show_linklist = false;
set show_default_userpic = false;
set text_nosubject = "(no idea)";
set text_view_archive = "Graveyard";
set text_meta_mood = "Murderous?";
set text_post_comment = "ded flamingo";
set text_sidebar_blurb = "";
set show_calendar = true;
set userpic_position = "right";
set text_meta_music = "What they're squawking";
set text_edit = "Undo?";
set view_entry_disabled = true;
set text_read_comments = "1 // # ";
set text_sidebar_links = "";
set text_meta_location = "Hunting in ";
set text_skiplinks_forward = "later kills";
set text_post_comment_friends = "flamingos";
set text_view_userinfo = "WTF??";
set text_read_comments_friends = "1 murdered the // They murdered # ";
set text_previous_entry = "PINK";
set page_friends_items = 40;
set text_memories = "When it was alive";
set text_untrack = "abandon ship";
set text_edit_tags = "triple guns";
set text_skiplinks_back = "earlier hunting trips";
set text_next_entry = "Here birdy";
set text_view_friends = "Other Hunters";
set text_view_recent = "Latest Kills";
set show_blurb = false;
set use_friends_colours = false;
set sidebar_position = "left";
set sidebar_width = 215;

function Page::print_custom_head() {

"""

Oh flamingos..


""";
}

function print_sidebar()
{
var string extra1_title ="";
var string extra1_content ="";
var string extra2_title ="";
var string extra2_content ="";
var string extra3_title ="";
var string extra3_content ="";
var string extra4_title ="";
var string extra4_content ="";
var string extra5_title ="";
var string extra5_content ="";
var string extra6_title ="";
var string extra6_content ="";
var string extra7_title ="";
var string extra7_content="";

$extra1_title = """
  • A Murderous Hunter
  • """;
    $extra1_content = """
  • http://flamingo-killer.livejournal.com/profile">flamingo_killer, aka Alexis. Killed the original plastic flamingo (in the snow) with http://raesa.livejournal.com">Rachel. Currently hunts the wild beasts with http://www.tamdabomb.com">Tamara, http://emmylia.livejournal.com">Mila, http://crazy-clockwork.livejournal.com">Jessica, and http://herekittykitty.livejournal.com">Amy. Menlo grad ’06. http://www.stanford.edu">Stanford freshman. Total h0rcrux, 24/7.

  • """;

    $extra2_title = """
  • Not flamingos
  • """;
    $extra2_content = """
  • Pirates of the Caribbean. Johnny Depp. Alias. Lost. The Daily Show with Jon Stewart. Veronica Mars. Harry Potter. Lord of the Rings. Fight Club. Eternal Sunshine of the Spotless Mind. Star Wars. X-Men. The Matrix. Remember the Titans. Jurassic Park. The Shawshank Redemption. Sin City. Beauty and the Beast. The Lion King. The Beatles. The Rolling Stones. Oasis. OK Go. Radiohead. Nirvana. The Servant. AC/DC. Jefferson Airplane. The Doors.

  • """;

    $extra3_title = """
  • Bloody Pirates
  • """;
    $extra3_content = """
  • To Come.

  • """;

    $extra4_title = """
  • < o >:4 8 15 16 23 42|
  • """;
    $extra4_content = """
  • http://www.livejournal.com/community/_colorbarlove_/209293.html">Rules
    Currently Running:
    Contest #31: Television: http://community.livejournal.com/_colorbarlove_/592984.html#cutid1">Enter

    Contest #30 First Place Winners: http://kat_tastic.livejournal.com/profile">http://stat.livejournal.com/img/userinfo.gif">kat_tastic and
    http://-slavegirl-.livejournal.com/profile">http://stat.livejournal.com/img/userinfo.gif">_slavegirl_
    All other winners: http://community.livejournal.com/_colorbarlove_/592673.html#cutid1">HERE

    All contests listed in the community http://community.livejournal.com/_colorbarlove_/profile">userinfo

  • """;

    $extra5_title = """
  • They liked it when I killed their flamingo
  • """;
    $extra5_content = """
  • http://community.livejournal.com/fks_graphics">http://stat.livejournal.com/img/community.gif">fks_graphics
    http://community.livejournal.com/-colorbarlove-">http://stat.livejournal.com/img/community.gif">_colorbarlove_

  • """;

    $extra6_title = """
  • About the Layout
  • """;
    $extra6_content = """
  • Conceptualized, designed, and executed by the flamingo killer herself. Much thanks and appreciation to
    http://community.livejournal.com/the_lj_reboot">http://stat.livejournal.com/img/community.gif">the_lj_reboot for providing the ammo.

  • """;

    $extra7_title = """
  • Kill Log
  • """;
    $extra7_content = """
  • wtf how do I get my calendar here

  • """;

    print_sidebar_box($extra1_title, $extra1_content);
    print_sidebar_box($extra2_title, $extra2_content);
    print_sidebar_box($extra5_title, $extra5_content);
    print_sidebar_box($extra6_title, $extra6_content);
    print_sidebar_calendar();
    }

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

    function CommentInfo::print_postlink() {
    var Page p = get_page();
    """http://img.photobucket.com/albums/v639/merrylove/flamingo%20layout/flamingospork.gif">""";
    }

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

    $e->print_linkbar();

    # Userpic

    var string userpic = "";
    if ($*show_entry_userpic)
    {
    if ($p.view == "friends" or $p.view == "entry")
    {
    if (defined $e.userpic)
    {
    $userpic = $userpic + """$e.poster.name if ($e.poster.username != $e.journal.username)
    {
    $userpic = $userpic + " in $e.journal.name";
    }
    $userpic = $userpic + "\">";
    }
    }
    elseif ($p.journal_type == "C" and $p.view == "recent")
    {
    if (defined $e.userpic)
    {
    $userpic = $userpic + """$e.poster.name""";
    }
    }
    else
    {
    if (defined $e.userpic)
    {
    $userpic = $userpic + """
    $e.poster.name
    """;
    }
    }
    }
    print """

    """;
    if (($p.view == "recent" and $p.journal_type != "C" ) or $p.view == "day")
    {
    print """$userpic""";
    }
    else
    {
    if ($p.view == "recent" and $p.journal_type == "C" )
    {
    """
    """;
    }
    else
    {
    """
    """;
    }
    print """$userpic""";

    # Poster

    if ($p.view == "friends" or $p.view == "entry")
    {
    var UserLite linkto;
    $linkto = $e.poster;
    #print "$e.poster.username";
    """
    base_url() + "\">";
    "$linkto.username
    ";
    }
    elseif ($p.journal_type == "C" and $p.view == "recent")
    {
    var UserLite linkto;
    $linkto = $e.poster;
    #print "$e.poster.username";
    """
    base_url() + "\">";
    "$linkto.username
    ";
    }
    if (($p.view == "friends" or $p.view == "entry") and $e.poster.username != $e.journal.username)
    {
    var UserLite linkto;
    $linkto = $e.journal;
    """
    [base_url() + "\">";
    "$linkto.username
    ]";
    }
    if ($p.view == "recent" and $p.journal_type == "C")
    {
    print "
    ";
    }
    if ($p.view != "recent" and $p.view != "day")
    {
    print """
    """;
    }
    }

    # Date, time, subject

    var string time = "";
    $time = $time + """ @ """;
    $time = $time + $e.time->time_format("short");
    var string date = "";
    $date = $date + $e.time->date_format("long_day");
    """
    """;
    print $e.time->date_format("%%dd%% %%month%% %%yyyy%%");
    "$time
    ";
    """
    """;
    if ($e.security != "")
    {
    $e.security_icon->print();
    }
    """
    $e.subject  


    """;

    """

    """;

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

    # Currents

    var string currents ="";
    $e->print_metadata();

    # Comments

    """
     

    """;
    if ($p.view != "entry" or $p.view != "reply")
    {
    $e.comments->print();
    }
    elseif ($e.comments.enabled)
    {
    $e.comments->print_postlink();
    }
    else
    {
    "";
    }

    ### Links (edit)
    " ";

    var string{} link_text = {
    "edit_entry" => $*text_edit,
    #"edit_tags" => $*text_edit_tags,
    #"mem_add" => $*text_memories,
    };

    var Link link;
    var string url;
    var string text;
    foreach var string link_key ($e.link_keyseq) {
    $link = $e->get_link($link_key);
    $url = $link.url;
    $text = $link_text{$link_key} != "" ? $link_text{$link_key} : $link.caption;
    if (defined $link) {
    """http://img.photobucket.com/albums/v639/merrylove/entryedit.gif"> """;
    }
    }

    ### Link to the entry

    #"""$*text_permalink""";

    """





     
    """;
    }

    function Page::lay_print_header() {
    var string map_url = "http://i29.photobucket.com/albums/c285/_colorbarlove_/OTHER%20USE/flamingoheader.jpg";
    var string map_name = "image_map";

    var string recent_url = get_url($.journal, "recent");
    var string friends_url = get_url($.journal, "friends");
    var string info_url = get_url($.journal, "userinfo");

    var string recent_text = lang_viewname("recent");
    var string friends_text = lang_viewname("friends");
    var string info_text = lang_viewname("userinfo");

    """



    wtf??http://flamingo-killer.livejournal.com/profile">

    otherhttp://flamingo-killer.livejournal.com/friends">

    recenthttp://flamingo-killer.livejournal.com">

    ded things: graphics journalhttp://fks-graphics.livejournal.com">



    """;
    }

    Thanks for your help!

    ETA: I've discovered that my content stops printing about 1/4 way down the page on both the tags page and the calendar page. Does anyone have any idea about what might cause this to happen? It's incredibly distracting...
    Previous post Next post
    Up