[REQ] Simple Left or Right Columns on every Page

jepot

New Member
I would like to read the content of this article.

Code:
http://www.vbulletin.org/forum/showthread.php?t=148321

Thanks in advance.
 
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[align=left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
	<td align="$stylevar[align=right]">
		&nbsp;
	</td>
</tr>
</table>
<!-- /logo -->

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

	<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[align=left]">
			<div style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">
</if>



There you go. All content C+Ped from the article.
 
Back
Top