PDA

View Full Version : Side Column problem on threads


fov
02-09-2009, 06:18 PM
Hi,
Im trying to create a column down the right hand side of the page on all pages but below the nav bar which needs to span the whole page.
I have added the below code to the very bottom of the nav bar template:
$ad_location[ad_navbar_below]


<!--Columns -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>

<td valign="top">

<!-- /Columns -->I have also added this to the footer

$ad_location[ad_footer_start]

<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />

$spacer_close
<!-- /content area table -->

<!-- ########################### Columns ########################### -->
</td>

<td width="150" valign="top" class="page" style="padding: $stylevar[cellpadding]px;">
YOUR CONTENT HERE
</td>

</tr>
</table>


<!-- ########################### /Columns ########################### -->
Its all working ok on the forum home and thread list but when viewing the thread and memberlist it indents as attached.

Is there anotherway or better way or way which works to do this?

Im using vB 3.8.1, no addons and this is the only change to style so far.

Thanks

ry215
02-11-2009, 01:46 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=204773" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=204773</a>

fov
02-12-2009, 10:26 AM
Thanks for that.
Looks quite good!

Do you know how to create the column without the product though?

Cheers

Princeton
02-12-2009, 02:37 PM
most likely it's $spacer_open

you will have to remove it for that page; and, also remove $spacer_close

fov
02-13-2009, 08:12 PM
most likely it's $spacer_open

you will have to remove it for that page; and, also remove $spacer_close

Thanks. That pointed me in the right direction. It does open another spacer which has $stylevar[spacersize] in a div. This was compounding the padding value as it was now in a table.
So with a bit of jiggery pokery with padding it now all lines up!

Right nightmare it was!