How To Add A Left Or Right Column

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    How To Add A Left Or Right Column

    I tested the old instructions on version 3.5 and they appear to work exactly the same. No changes are needed. However, that old thread has corrections in different posts, so here is a new set of instructions with all of the corrections:

    LEFT COLUMN
    Admin CP -> Styles & Templates -> Style Manager -> Common Templates (in the menu)

    Add the blue code to the header:

    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
    	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    	<td align="$stylevar[right]">
    		&nbsp;
    	</td>
    </tr>
    </table>
    <!-- /logo -->
    
    [color=blue]<table width="$stylevar[outertablewidth]" border="0" cellpadding="0" cellspacing="0" align="center">
    	<tr>
    
    	<td width="150" valign="top" class="page" style="padding: $stylevar[cellpadding]px;">
    		YOUR CONTENT HERE
    	</td>
    
    	<td valign="top">[/color]
    
    <!-- content table -->
    $spacer_open
    
    $_phpinclude_output
    ...and add the blue code to the footer:

    Code:
    <br />
    <div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
    <br />
    
    $spacer_close
    <!-- /content area table -->
    
    	[color=blue]</td>
    
    	</tr>
    </table>[/color]
    
    <form action="$vboptions[forumhome].php" method="get">

    RIGHT COLUMN
    Admin CP -> Styles & Templates -> Style Manager -> Common Templates (in the menu)

    Add the blue code to the header:

    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
    	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    	<td align="$stylevar[right]">
    		&nbsp;
    	</td>
    </tr>
    </table>
    <!-- /logo -->
    
    [color=blue]<table width="$stylevar[outertablewidth]" border="0" cellpadding="0" cellspacing="0" align="center">
    	<tr>
    
    	<td valign="top">[/color]
    
    <!-- content table -->
    $spacer_open
    
    $_phpinclude_output
    ...and add the blue code to the footer:

    Code:
    <br />
    <div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
    <br />
    
    $spacer_close
    <!-- /content area table -->
    
    	[color=blue]</td>
    
    	<td width="150" valign="top" class="page" style="padding: $stylevar[cellpadding]px;">
    		YOUR CONTENT HERE
    	</td>
    
    	</tr>
    </table>[/color]
    
    <form action="$vboptions[forumhome].php" method="get">

    IN EITHER CASE...
    Admin CP -> Styles & Templates -> Style Manager -> « » -> spacer_open

    Replace the red code:

    Code:
    <!-- open content container -->
    <if condition="$show['old_explorer']">
    	<table cellpadding="0" cellspacing="0" border="0" width="[color=red]$stylevar[outertablewidth][/color]" align="center"><tr><td class="page" style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">
    <else />
    	<div align="center">
    		<div class="page" style="width:[color=red]$stylevar[outerdivwidth][/color]; text-align:$stylevar[left]">
    			<div style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">
    </if>
    ...with the blue code:

    Code:
    <!-- open content container -->
    <if condition="$show['old_explorer']">
    	<table cellpadding="0" cellspacing="0" border="0" width="[color=blue]100%[/color]" align="center"><tr><td class="page" style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">
    <else />
    	<div align="center">
    		<div class="page" style="width:[color=blue]100%[/color]; text-align:$stylevar[left]">
    			<div style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">
    </if>

    The end result will look like:

    [ATTACH]14330[/ATTACH]
    Last edited by Jake Bunce; Wed 2 Aug '06, 4:28pm.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...