Announcement

Collapse
No announcement yet.

How To Add A Left Or Right Column

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 -->
    
    <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">
    
    <!-- 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 -->
    
    	</td>
    
    	</tr>
    </table>
    
    <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 -->
    
    <table width="$stylevar[outertablewidth]" border="0" cellpadding="0" cellspacing="0" align="center">
    	<tr>
    
    	<td valign="top">
    
    <!-- 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 -->
    
    	</td>
    
    	<td width="150" valign="top" class="page" style="padding: $stylevar[cellpadding]px;">
    		YOUR CONTENT HERE
    	</td>
    
    	</tr>
    </table>
    
    <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="$stylevar[outertablewidth]" 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:$stylevar[outerdivwidth]; 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="100%" 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:100%; 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 2nd Aug '06, 4:28pm.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X