becca (swells) wrote in component_help,
becca
swells
component_help

  • Mood:
  • Music:
I'd like my components to be on the right side - and I have it set up like that in my Advanced Customizations & Individual Settings but it only shows up on the left side. The code in AC is behind the cut.. Can anybody see if I'm doing something wrong?




layerinfo "type" = "theme";



layerinfo "name" = "Additional Customizations";







set lineheight = 15;







function Page::print_custom_head() {



    """



    <style type="text/css">







      body {











        background-image: url(http://img.photobucket.com/albums/v423/halapeno/thisoneisgorgeous.jpg) ;



        background-repeat: no-repeat ;



        background-attachment: scroll ;



        background-position: top ;



        margin-top: 350px ; # replace HHH with your image height in pixels



      }



      .header {



        text-align: center;



      }



    </style>



    """;



  }











function print_free_text(Page p) {







  print_comp_header($*free_text_text);



  """$*free_text""";



  print_comp_footer();







print_comp_header("There's a skyline in Oklahoma..");



  """<br><center>











<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/crofan285487.jpg" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/tinkermellie02.jpg" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/iconbitch.jpg" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/gambits_rogue08.png" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/gambits_rogue05.png" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/apraisechorus.png" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/crofan2807.jpg" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/apraisechorus07.png" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/crofan2803.jpg" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/gambits_rogue.png" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/niannah06.jpg" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/crofan2815.jpg" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/crofan2810.bmp" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/crofan2805.jpg" border=1><br><br>



<img src="http://img.photobucket.com/albums/v289/commoncourtclerk/crofan2810.jpg" border=1><br><br>







""";



  print_comp_footer();







}







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 = "790px";







  # 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();



  """



  <html>



  <head>



    <link rel="stylesheet" href="$p.stylesheet_url" type="text/css"/>



    $p.head_content



    """; $p->print_custom_head(); """



    <title>I'm not asking for thanks babe..</title>



  </head>



  """;



  



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



  """<body style="text-align:center;">""";







  if($k1Swidth != "") {



    """<table style="border: 0px; margin: auto; padding: 0px; width:$k1Swidth;"><tr><td>""";



  }







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



  # """<div align="center"><img src="http://img.photobucket.com/albums/v423/halapeno/thisoneisgorgeous.jpg" alt="jkl" title="jkl" /></div>""";







  # 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 <body> tag above.



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



    """    <div class="header">""";



    print "<span class=\"header-item\"><a href=\""+$p.view_url{"i'm tired of your"}+"\">$*nav_entries_text</a></span>";



    print "<span class=\"header-item\"><a href=\""+$p.view_url{"rhythm and blues"}+"\">$*nav_friends_text</a></span>";



    print "<span class=\"header-item\"><a href=\""+$p.view_url{"just for"}+"\">$*nav_calendar_text</a></span>";



    print "<span class=\"header-item\"><a href=\""+$p.view_url{"one night"}+"\">$*nav_info_text</a></span>";



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



        print "<span class=\"header-item\"><a href=\"$p.journal.website_url\">$p.journal.website_name</a></span>";



    }



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



    """



    </div>



    """;



  }







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



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







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



  """



  <table cellspacing="0" cellpadding="0" valign="top">



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



      <td width="3">



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



      </td>



  """;







  # 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") {



    """



    <td width="3">



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



    </td>



    """;



    print_my_components($p);



  }







  # Print the main area of the page.



  print_my_entries($p, $title);





  # Finish off the table for the body





  """



      <td width="3">



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



      </td>



    </tr>



  </table>



  """;







  if($k1Swidth != "") {



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



  }







  # End the body section and end the html document



  """



  </body>



  </html>



  """;



}
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 1 comment