A Couple Of Questions

Jun 25, 2005 16:44

Is there anyway to make flexisquares have a 3rd column? I know on the component layout you can do that. I was wondering if it was possible on here ( Read more... )

sidebar, paid accounts

Leave a comment

Comments 28

afuna June 27 2005, 14:12:08 UTC
There is a way but it's somewhat convoluted. You'll need to refer to the layer source for some of the code.

1.)In the Page::print function:
 a.) Creating the sidebar content
Look for the code that says

var Page page = get_page();
var string title = $this->title();
and beneath that, place this code:

var string extra1_title = """
  • Hi
  • """;
    var string extra1_content = """
  • Random HTML-y stuff here
  • """;
    var string extra2_title = """
  • Hello
  • """;
    var string extra2_content = """
  • More random HTML-y stuff here
  • """;

    b.)Placing the sidebar in your layout
    Look for if ($*show_sidebar) and replace that entire block of code with this:

    if ($*show_sidebar)
    {
    """

    """;

    print_sidebar_box( $extra1_title, $extra1_content );
    print_sidebar_box( $extra2_title, $extra2_content );

    """

    ... )

    Reply

    anchan218 June 27 2005, 17:09:25 UTC
    I think she's talking about this or maybe this. There are a couple others listed at component_help, but it's probably one of those 2, I'm thinking. I may try to figure it out, but man those things are soooo long! O_O;

    Reply

    afuna June 27 2005, 18:20:17 UTC
    Probably the first one, and it looks intimidating but as far as I can tell, the only thing you'll need to adapt is this part, to make it print the normal MonthPage for Flexible Squares:

    else {
    # normal
    page_layout($this);
    # end normal
    }

    If I understand what I'm reading correctly, everything else is concerned with setting up the searching, etc, and is non-stylespecific.

    (The entire bottom part, on the other hand, has to do with stuff you need to do on the other site XD)

    I might try it when I get back ( if no one beats me to it :D) but I have to go sleep soon, and I won't be online for the next 16 hours at least XD

    Reply

    afuna July 1 2005, 17:09:39 UTC
    *pokes gently* Oh hey, was either of anchan218's links the one you wanted? :)

    Reply


    Erratum (again. Bah. I make mistakes way too often) afuna June 28 2005, 12:21:21 UTC
    Where I said, If you're grabbing it from the layer source (which I'd recommend, so you can take advantage of variables for auto-adjustment :)),
    change the $sidebar_font_family to css_font_family($*sidebar_font, $*sidebar_font_fallback);;
    change the $sidebar_prop to float:left. before, that will either cause an error or the css will have no effect. Instead, if you're grabbing it from the layer source:

    Put this above the """"""; block:
    var string sidebar_font_family = css_font_family($*sidebar_font, $*sidebar_font_fallback);

    In #othersidebar:
    Keep the $sidebar_font_family in the css.

    -- these last two are general reminders
    Change float:left/right; (wherever your original sidebar is) to float:left/right; (where you want your other side bar to be).

    Also, don't forget to add #maincontent {margin-left/margin-right } depending on where your new sidebar is (If it's going to be on the left, use margin-left; if on the right, margin-right). :)

    Reply


    Leave a comment

    Up