[paid accounts] Adding more boxes to the sidebar/ Using HTML in boxes in the sidebar

Jun 04, 2005 00:15

1. Create a new theme layer. (Follow the steps in this post to create a theme layer.) If you have already created a theme layer for the style, just add the following code to it.

2. Copy the following and modify the parts in red as you see fit. Paste it in the theme layer and compile.



function print_sidebar()
{
var string extra1_title ="";
var string extra1_content ="";
var string extra2_title ="";
var string extra2_content ="";

$extra1_title = """
  • Title of New Box 1
  • """;
    $extra1_content = """
  • Text for New Box 1. You can use HTML here if you want to.
  • """;

    $extra2_title = """
  • Title of New Box 2
  • """;
    $extra2_content = """
  • Text for New Box 2. You can use HTML here if you want to.
  • """;

    print_userpic();
    print_sidebar_blurb();
    print_sidebar_linklist();
    print_sidebar_box($extra1_title, $extra1_content);
    print_sidebar_box($extra2_title, $extra2_content);
    print_sidebar_calendar();

    }

    3. The order of the items in your sidebar depends on how you arrange the code in green.

    4. By adding this to your theme layer, please note that now the option to change the order of the items in the wizard does nothing to your journal. You have to rearrange the parts in green in the layer if you want to modify their order.

    5. You can add as many extra boxes as you want.

    !tutorial, !old, sidebar, paid accounts

    Previous post Next post
    Up