PDA

View Full Version : Column problem on threads



fov
Sun 8th Feb '09, 5:28pm
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

glennybee
Tue 10th Feb '09, 2:49pm
Try changing:



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

to...


<td class="page" style="padding: 0px 0px 0px 0px" valign="top" width="150">

Play about with the 0px values (change one to 15px) and see how it affects the column.

You say it's on the right of the forum but your pictures are on the left?

fov
Tue 10th Feb '09, 3:55pm
Thanks.
Ive maybe explained it wrong.
The images are the bits which are broken.
Ive attached some more images which will hopefully explain it a bit more.
One shows how it works on the forumhome and the other how it breaks on a thread. All the same code as above.

I really cant see what ive broken. Been tearing me hair out (well i would have been if i had any).
Cheers :D

fov
Fri 13th Feb '09, 6:15pm
Finally got it. The issue was $stylevar[spacersize] in $spacer_open being compounded as its now in a table.

Thanks to Prinston @vbulleting.org for giving me the hint I needed to get on the right track.

glennybee
Fri 13th Feb '09, 8:24pm
Glad you got it sorted in the end. Well done! :)

Sometimes I feel there is a lack of help with these kinds of modifications.

fov
Sat 14th Feb '09, 5:05am
Thanks :D
I was surprised how little info and help there was on this subject but I did get the eventually.

slobra
Fri 17th Apr '09, 7:35pm
This worked for the right side of my 3.8.2 forum (thanks a lot!) but I'm trying to do the same thing on the left side. Can someone help? :)