Adam21 |
05-27-2007 10:00 PM |
Simple Left or Right Columns on Every Page
These template edits will allow you to place either left or right column blocks on every page of your forum...
TO HAVE LEFT COLUMN BLOCKS ON EVERY PAGE
Admin CP -> Styles & Templates -> Style Manager -> Common Templates (in the menu)
In the HEADER template,find these codes
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]">
</td>
</tr>
</table>
<!-- /logo -->
After it,add these codes after it
Code:
<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;">
<!-- ################## Side Column ##################-->
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
<div class="smallfont" style="line-height:1.5;"><strong>Forum Members: $numbermembers<br />
Total Threads: $totalthreads<br />
Total Posts: $totalposts<br />
<br /></strong>
There are <a href="online.php" style="color:#854f99;">$totalonline users</a>
currently browsing forums.</div><
</table>
<!-- ################## /Side Column ##################-->
</td>
<td valign="top">
Save it and in the FOOTER template,find these codes
Code:
<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />
$spacer_close
<!-- /content area table -->
Add these codes after it
Code:
</td>
</tr>
</table>
SAVE IT AND YOU ARE DONE!Now you add your custom codes between the <!-- ################## Side Column ##################--> comments.The above is just an example only.
TO HAVE RIGHT COLUMN BLOCKS ON EVERY PAGE
Admin CP -> Styles & Templates -> Style Manager -> Common Templates (in the menu)
In the HEADER template,find these codes
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]">
</td>
</tr>
</table>
<!-- /logo -->
Add these codes after it
Code:
<table width="$stylevar[outertablewidth]" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td valign="top">
Save it and in the FOOTER template,find these codes
Code:
<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />
$spacer_close
<!-- /content area table -->
Add these codes after it
Code:
</td>
<td width="150" valign="top" class="page" style="padding: $stylevar[cellpadding]px;">
YOUR CONTENT HERE
</td>
</tr>
</table>
Save it.Edit the content in your side column exactly like the left column example above
1 last step for either type of installation,
In your Admin CP -> Styles & Templates -> Style Manager -> ? ? -> spacer_open
Replace all the code inside with this codes
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>
|