Simple Left Side Column Blocks on ForumHome

  • Thread starter Thread starter J.Black
  • Start date Start date
In your Admincp,Style Manager,Edit Templates,ForumHome template,find and add AFTER this code


PHP:
<body>
$header
$navbar

And BEFORE this code

PHP:
<if condition="$show['guest']">
<!-- guest welcome message -->

this piece of code

PHP:
<!-- Start of Advertiser Block -->
<table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top" width="180px">
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
<tr>
<td class="thead" align="center">TITLE OF BLOCK</td>
</tr>
</table>
<table class="tborder" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%" align="center">
<tr>
<td class="alt1">
<!-- ENTER YOUR CODES BELOW -->






<!-- / End Of CODES -->
</td>
</tr>
</table>




<br />
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
<tr>
<td class="thead" align="center">TITLE OF BLOCK</td>
</tr>
</table>
<table class="tborder" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%" align="center">
<tr>
<td class="alt2">
<!-- ENTER YOUR CODES BELOW -->






<!-- / End Of CODES -->
</td>
</tr>
</table>





</td>
<td width="10px"></td>
<td valign="top">
<!-- / End Of Advertiser Block -->

-Edit the texts "TITLE OF BLOCK" as you wish to suit your needs.If you do not want the header of the block,remove that part in red.

-I've added 2 blocks above and if you want to add in more blocks,copy that whole piece of code in blue and place it right after the ending codes
Code:

PHP:
<!-- / End Of CODES -->
</td>
</tr>
</table>

of each block

-To make your banners center or scroll/marquee itself in the block nicely,you can add the <center> or <marquee> tags directly BEFORE and directly AFTER your banner codes.

-To put links as bullet-type style in the blocks,use the below codes instead

PHP:
 <ul>
<li><a href="LINK URL" target="">LINK</a></li><br />
<li><a href="LINK URL" target="">LINK</a></li><br />
<li><a href="LINK URL" target="">LINK</a></li>
<li><a href="LINK URL"></a></li>
</ul></strong></i>
 
but personally i prefer

Welcome to Ultimate Side Columns!

Introduction

Following the success of the left and right side column modifications, and building on their weaknesses, the Ultimate Side Columns system was born.

Ultimate Side Columns (USC) is your one stop shop for all your side columns needs. It is an easy to configure, all in one solution.


Features

USC uses a standard vBulletin Options Interface with minimal template editing involved, to display content in columns on your site.

USC controls both the left and right columns on your site, both of which work independently of each other, and can be displayed on a range of pages through some very simple options.

The only editing required for a standard installation is the header and footer template. For advanced users, the templates for the two columns can also be edited if required. Most users of this system will not need to do this.


Installation

Import the product-ka_ultimate_sidecolumns.xml file as a product through your product manager.

Open your header template and at the very end add


PHP:
<!-- USC header edit start -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
$usc_left
<td valign="top">
<!-- USC header edit end -->

Open your footer template and above


PHP:
$spacer_close

add

PHP:
<!-- USC footer edit start -->
</td>
$usc_right
</tr>
</table>
<!-- USC footer edit end -->

That is all your template editing done.

Now, go to vBulletin Options > Ultimate Side Columns Options

Here you can set which column you wish to use, and where you want it to appear. Content is also controlled through the options on this page. HTML is allowed in all content boxes.


Configuration

As there are a number of options available, this section explains them all.

First, you have the settings for enabling and disabling the two columns. As these work independently of each other, you can have the left column turned on, the right column turned on, or both turned on. If you need to turn them off for any reason, you can also turn them off here. Also, if you need to disable plugins for any reason, the code is completely disabled meaning that no unsightly white gaps are left on your pages.

Next, we have the width settings for the two columns. If you find that your columns are too wide, or too narrow, then they can be adjusted independently here.

The display pages settings allow you to control where your columns are displayed. These are pretty straightforward, with the exception of the setting adsense appropriate. This option stops the column from being displayed on the following pages in line with the adsense TOS:
- search
- search results
- registration
- contact us
- usercp
This is correct as of todays date. Any changes in the TOS for adsense will only be reflected in any updates as appropriate.

Next are the settings for the content of the left column, followed by the content of the right column. Both sections are prefixed by a blank setting. This is by design and there is not a bug with the code or anything missing.


Adding More Blocks

By design there are five (5) blocks per column. Some people may require more than this. To allow for this, comments have been added to both the usc_sidecolumn_left and usc_sidecolumn_right templates. The comments include a commented out section of code to use as a template for additional blocks. There are also some warning comments present in both templates. Take heed of these as editing other than the places indicated will result in the templates being malformed and the USC system not working correctly.
 
Back
Top