vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Side Bar (https://vborg.vbsupport.ru/showthread.php?t=112671)

dc1pop 04-10-2006 09:16 PM

Side Bar
 
Hi,

How would i go about adding a side bar to my forums for example look at these sites:

http://forums.moneysavingexpert.com/

and

http://forum.digitalspy.co.uk/board/

Thanks for any help :D

Regards,
Darren

peterska2 04-11-2006 05:14 AM

Looking at those two sites, you are looking at a combination of two mods.

1. Creat a left column on all pages by amykhar
2. Vertical site navigation by myself

I hope this helps.

dc1pop 04-11-2006 05:56 AM

Thanks for the help!

Much appricated :)

dc1pop 04-14-2006 03:34 PM

1 Attachment(s)
Im now using the left side hack but i want the table to auto fill the table so it reaches the footer. How would i go about doing this?

Ive tried using height 100% and also placing

#fullheight{height:100%} in my CSS and then giving the table and id=fullheight statement but i cant get it to work:

Attachment 45659

I want it as the side coloum on the money saving expert links shows above so the table reaches the footer even if it has no content.

Hope someone can help driving me crazy now :)

peterska2 04-14-2006 04:02 PM

I would imagine that you will need to specify the height in pixels in the td tag. I've not needed to have it full height so haven't actually gone through the motions of finding the right place to specify that. Plus, the height will vary from site to site, and will fluctate depending on any calandar events, birthdays, etc.

dc1pop 04-14-2006 04:05 PM

Thats what i mean i dont want to specifiy the height as threads have varying lengths. I just want it to resize even one cell so it will autofill untill it reaches the footer.

:)

peterska2 04-14-2006 04:20 PM

ok, it's not nice code, but it works, so that's all that matters.

make the changes as defined here

HEADER

Find
Code:

<!-- Left Column Code  -->
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="160" valign="top" align="left">$leftcolumn</td>
<td valign="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top">
<!-- End Left Column Code -->

REPLACE WITH
[cdoe]<!-- Left Column Code -->
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="160" valign="top" height="100%" align="left">$leftcolumn</td>
<td valign="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top">
<!-- End Left Column Code -->[/code]

LEFT_COLUMN or RIGHT_COLUMN

Find
Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="90%">
REPLACE WITH
Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="90%" height="100%">
For the bit that you want to stretch

Replace
Code:

<tr>
with
Code:

<tr height="100%" valign="top">
It works on my test board.

dc1pop 04-14-2006 04:28 PM

Dont seem to like that in Internet Explorer but works fine with FireFox maybe il re desgin my nav bar.

Is their anyway that you know of so that the box has no gap on the left hand side and is flush with the page?

Thanks for all your help!!

Darren

peterska2 04-14-2006 05:18 PM

in your left_column template

change
Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" [high]width="90%"[/high]>
to
Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" [high]width="100%"[/high]>
I don't know why it doesn't work in IE, but I next to never use it, so I never think about it.

dc1pop 04-14-2006 06:15 PM

Thanks still got a few issues so the forums can still be spaced but il read up more so i dont keep bugging you.

Thanks for your help.


All times are GMT. The time now is 07:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01279 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete