PDA


View Full Version : How i can add two module on center column


Sevas
05-23-2007, 03:38 AM
Hi ppl! i upgrade my vbadvanced 2x to 3.0 RC1 :)
im happy with this upgrade, congratulations. ;)

first, sorry for my f* english :(
well, i need make this, look:

(this is an example of which i want to do, i create this image with fireworks.)
http://img407.imageshack.us/img407/4662/sinttulo3yo9.jpg

i create a custom location called $home[costadoblocks]
so, i want to do this. (see screenshot above)
how i can do that?

Sevas
05-23-2007, 11:02 PM
http://www.vbadvanced.com/forum/showthread.php?t=15305

Brian
05-24-2007, 12:26 PM
There's no need for all of that. Just add some new locations in the "Location List" setting, and follow the instructions there to edit the 'adv_portal' template. Then you would just need to use the "Integration" link to integrate a CMPS page with your forums.

DementedMindz
05-24-2007, 02:50 PM
ok but if you want to have to center columns show up under the news module for example then its not working or at least I cant get it to work this way with the location list. I have tried it all so far and all its doing is putting another column next to the news so im having 3 columns instead of 2 I dont use a right column. I have made new locations added them to the template and all it does is make new colums not add them under the news post.

Brian
05-24-2007, 04:47 PM
Then you need to edit the template and add the $home[locationblocks] variable under the column that your news module is active in.

DementedMindz
05-24-2007, 04:50 PM
Then you need to edit the template and add the $home[locationblocks] variable under the column that your news module is active in.

I have tried that like this

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

then under it added

<if condition="$show['right_center_column']">
<td valign="top">
$home[rightcenterblocks]
</td>
</if>
<if condition="$show['left_center_column']">
<td valign="top">
$home[leftcenterblocks]
</td>
</if>

and all it does is make a new column next to the center column

I have even tried to do it this way

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

and it still adds a third column im trying to get the new archieve and recent threads side by side under the news module

DementedMindz
05-24-2007, 05:14 PM
can you give a example on how to add or display Recent Threads and News Archive side by side in the center column under the news module with the template edits and location list cause from what I have tried nothing works. i have been messing with it for a bit now and everything I have tried fails only other way is to make something custom like I did for my downloads but figured I would test this Location List but don't seem to be helping any

Brian
05-24-2007, 06:07 PM
You would want to add something more like this under the $home[centerblocks] variable.
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="50%">$home[leftcenterblocks]</td>
<td>$home[rightcenterblocks]</td>
</tr>
</table>

Then you'll probably want to add some styling to the table or table cells to add some padding and such.

DementedMindz
05-24-2007, 06:24 PM
yeah that wont do it either cause then it would be under every module on the site since its starting a new table
plus its not in the center like the news module would be its going across the whole site since its a new table

Brian
05-25-2007, 01:11 PM
It would be under any modules in the center column. If you want others besides that, then you could add more locations below that.
And yes, it is in the center column and will only span the width of the center column.

protoss
05-27-2007, 03:30 PM
This will give you three columns under the center column
Rename and edit variables to suit.

For two columns -> Remove 1 x Module Title: /TD - TD and adjust width: 33%
For 4 columns ->> Add 1 x Module Title: /TD - TD and adjust width: 33%[_______] [____________________________]
[_______] [________] [________] [________]

LEFT COLUMN
CENTER COLUMN
FOURTH COLUMN = $home[fourthblocks]


Template adv_portal

<if condition="$show['center_column']">
<td valign="top">
$home[centerblocks]
$home[fourthblocks]
</td>
</if>
Thanks to MortysTW and brotherx
Full thread is here (http://www.vbadvanced.com/forum/showthread.php?t=15305)
I've used the instructions given by brotherx in this post (http://www.vbadvanced.com/forum/showpost.php?p=96208&postcount=22) (with some edits)

Requires:

1 x Module Title: TABLE - TR - TD (You can adjust this to suit ->> width: 33%) <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="width: 33%; vertical-align: top">
2 x Module Title: /TD - TD (You can adjust these to suit ->> width: 33% and padding-left: 8px)</td><td style="width: 33%; vertical-align: top; padding-left: 8px">
1 x Module Title: /TD - /TR - /TABLE </td></tr></table>

Sevas
05-27-2007, 07:49 PM
thanks so much to all :D
i did it, works perfect :D