PDA

View Full Version : How To Add A Left Or Right Column



Jake Bunce
Sat 1st Oct '05, 4:14pm
I tested the old instructions (http://www.vbulletin.com/forum/showthread.php?t=101599) 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:



<!-- 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:



<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:



<!-- 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:



<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:



<!-- 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:



<!-- 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: