PDA


View Full Version : Adding more columns


redslush
05-19-2007, 08:57 AM
Has anyone been able to get more columns working in version 3. I have been working on it without any success.

Brian
05-19-2007, 10:39 AM
What exactly is the problem you're having?

redslush
05-19-2007, 11:12 AM
I trying to get 4 columns going. I had used the following information to get it working in version 2:
http://www.vbadvanced.com/forum/showthread.php?t=15305

But it looks like that doesn't apply to version 3. I haven't been able to figure out how to achieve the same thing in 3.

Brian
05-19-2007, 12:48 PM
Admin CP => vBa CMPS => Default Settings => Main Options => Location List

Just go there and follow the instructions in the description for that setting. ;)

redslush
05-19-2007, 03:56 PM
wow I'm retarded.

Thanks

chickadee
05-20-2007, 04:48 PM
redslush, what code did u put in adv_portal to achieve 2 center columns?

redslush
05-20-2007, 07:41 PM
First I create a new column called centeright. Afterwards I inserted the following in the adv_portal:

<if condition="$show['centeright_column']">
<td valign="top">
$home[centerightblocks]
</td>
</if>


after:


<if condition="$show['center_column']">
<td valign="top">
$home[centerblocks]
</td>
</if>


Still trying to work out some sizing issues. Also, when naming your column I don't think it likes _ or -. I tried using this and received a bunch of invalid arguments.

DementedMindz
05-24-2007, 02:20 PM
yeah something is up cause I have tried to get Recent Threads and News Archive side by side in a center column but it dont seem to work to well at all
I have made a center right and center left but all they do is is make columns next to the center column instead of side by side in the center. Its is very tricky so far.

Loco Macheen
05-25-2007, 10:11 PM
I need to add a 4th column too, thanks redslush
I'll post back if I figure it out :p

Hows it look

www.vbulletinsetup.com ? :)

mittstewart
04-18-2008, 06:29 PM
I inserted the code and was able to add a column as needed however, I can't seem to change the size of it. What additional code do I need to enter in order to have the ability to change the size of the added column?

Thanks

Brian
04-18-2008, 09:01 PM
Just add a "width" attribute to the <td> tag that contains your additional column.

mittstewart
04-18-2008, 11:09 PM
Brian, I've spent an hour trying to enter code as you suggested. I'm lost. My additional colum is named "centeright".

<if condition="$show['centeright_column']">
<td valign="top"width="$vba_style[portal_centerightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']OR $show['right_column']"> style="padding-left: $vba_style[portal_colspacing]px"</if>>
$home[centerightblocks]


Please let me know what I should do

Thanks!

Brian
04-19-2008, 11:38 AM
Change this:
<td valign="top"width="$vba_style[portal_centerightcolwidth]"

To something more like this:
<td valign="top" width="200"

Replace the red 200 with the width you want the column to be.

mittstewart
04-19-2008, 05:52 PM
Got it! It works!

Thanks for your help

nlsmike
04-21-2008, 04:33 PM
Wow I can not figure this out at all Brian. I got everything to work in the cps and stuff but can not get it to work on the page for the public. It does not even show up?

nlsmike
04-21-2008, 04:38 PM
This is what I have and if someone could help it would be greatly appreciated. Thanks Mike<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">

<if condition="$show['top_column']">
<td valign="top" width="200"
$home[topblocks]
</td>
</if>
<if condition="$show['left_column']">
<td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-$stylevar[right]: $vba_style[portal_colspacing]px"</if>>
$home[leftblocks]
</td>
</if>
<if condition="$show['center_column']">
<td valign="top">
$home[centerblocks]
</td>
</if>
<if condition="$show['right_column']">
<td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-$stylevar[left]: $vba_style[portal_colspacing]px"</if>>
$home[rightblocks]
</td>
</if>
</tr>
</table>

Brian
04-22-2008, 11:44 AM
Did you add the new location to the Location List setting and then move some modules to that location?

nlsmike
04-22-2008, 05:40 PM
Yeah I added it in the option in the CMPS area before I put the code in

Brian
04-23-2008, 12:47 PM
As long as you used 'top' for the varname in the location and you have moved some modules to that location then there shouldn't be any reason they wouldn't show up.

nlsmike
04-23-2008, 01:15 PM
http://www.nolimitsportsline.com/index.php?pageid=gfx

The link above I have 2 modules located in there and still nothing

Brian
04-23-2008, 01:29 PM
There's not really anything I can see wrong from the user side of things, so would you mind just submitting a support ticket via the Members' Area here so I can take a look at the rest?

mittstewart
05-13-2008, 07:50 PM
Change this:
<td valign="top"width="$vba_style[portal_centerightcolwidth]"

To something more like this:
<td valign="top" width="200"

Replace the red 200 with the width you want the column to be.

this works but here's my problem. On some computers, my home page doesn't fit entirely in the screen,so one must scroll left and right to see the whole web page. How do I insure

1. That the entire webpage from side to side (width) will be seen in its' enitirety on any computer screen without having to scroll left or right?

2. That the width of the header will always match the width of the rest of the page (columns)

Thanks

Brian
05-14-2008, 12:55 PM
1). Looks like you're basically trying to cram too much content into too small of a space, so you need to reduce the size of your columns and/or the amount of data you're trying to display in them.

2). The header width should always be consistant as long as you've coded your templates properly.

mittstewart
05-14-2008, 05:38 PM
What's the width in pixels of the standard Vbadvanced home page (no modifications)? I'm asking this so I can ensure that my banner/header is the exact width in pixels

Thanks

Brian
05-14-2008, 06:15 PM
It goes by the width you have set for your 'Main Table Width' setting for that style.

mittstewart
05-14-2008, 06:36 PM
Thanks Brian! Ok, I've solved the width issue with regards to the vbadvanced home page fitting in the entire screen. I've chosen 100% as my 'Main Table Width'.Now my issue is to make sure that my banner/header which has 3 different images, always fits exactly width wise with my home page and forums. Could you take a look at my code and suggest what I should do?
Thanks


My current header code is below


<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="left"><img src="images/misc/headerbboard5.gif" border="0" alt="" /></td>
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="right"><img src="images/misc/headerlazyright.gif" border="0" alt="" /></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output



I also attempted to do a fluid banner but that just made things go crazy. The code I used for that is below

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]" width="270" height="150" nowrap="nowrap">
<img border="0" src="http://fightpc.net/images/misc/headerbboard5.gif" width="270" height="150" alt="" /></td>
<td height="150" width="100%" style="background-image: url(http://www.fightpc.net/images/misc/Final%20Final%20Billboard%20Picture.png);" align="center"></td>
<td align="$stylevar[right]" width="250" height="150" valign="top" nowrap="nowrap">
<img src="http://fightpc.net/images/misc/headerlazyright.gif" width="250" height="150" alt="" border="0" /></a></td>
</tr>
</table>
<!-- /logo -->

Brian
05-14-2008, 07:05 PM
You're not really going to be able to fit 3 images like that in your header on an average size screen resolution (mine's set to 1280 and I still have to scroll). The best thing I can suggest would be to move the ones on the left and right below the center one.

mittstewart
05-14-2008, 09:22 PM
Ok I'll do that. If I just leave the center image (burning flag) up. How wide pixels should it be inorder to make it fit exactly with the homepage below?

Thanks