PDA

View Full Version : Add MORE columns to vBadvanced


Pages : [1] 2 3

MortysTW
03-22-2006, 08:40 PM
So vBadvanced only allows 3 columns for your modules, but YOU want 4? Or maybe even 5? or 6? or 7? I personally wouldn't do more than 4 since most web users are still using 800x reso for whatever sad reason.

This works on ANY version of vBadvanced since it has nothing to do with the actual CODE of the script. Its just simple html really. But my instructions are for vb3.5.xx and vbadvanced 2.x.
EDIT NOTE: Now running 3.6.2 and vba 2.2.1 and this all works still without any editing necessary after the upgrades.

This is so simple you will slap yourself for not thinking of it on your own.

AdminCP > vBa CMPS > Add Module and choose TEMPLATE type.

Module Title: Column OPEN
Column: Center Column (Choose which ever location you want this column)
Display Order: 0
Active: YES
Update All Pages: NO

Within the Template Module Options block.............
Template to Include: adv_portal_Column_Open
Template Content: <td>

Module Shell Template Options
Use Module Shell Template: NO
Leave the rest blank

Usergroups: Put them all to YES for now, you can change later if you want when you understand what's going on better.

Click SAVE

Now to close the column..............

AdminCP > vBa CMPS > Add Module and choose TEMPLATE type.

Module Title: Column CLOSE
Column: Center Column (Choose which ever location you want this column)
Display Order: 99
Active: YES
Update All Pages: NO

Within the Template Module Options block.............
Template to Include: adv_portal_Column_Close
Template Content: </td>

Module Shell Template Options
Use Module Shell Template: NO
Leave the rest blank

Usergroups: Put them all to YES for now, you can change later if you want when you understand what's going on better.

Click SAVE

Modules are now created! Slapping yourself silly yet? No? Okay, let's actually make the column work now.

AdminCP > Edit Modules

For COLUMN OPEN set it should be already set to ZERO if you did as noted above, if not, make it ZERO. And make sure all other modules are anything BUT zero for that column.

Number all the modules you want in this new column starting from 1 (since the Column Open module is zero).

Let's say TODAY'S BIRTHDAYS MODULE is the last module you want to appear at the bottom of this new column and its #14. Find the new module you created called COLUMN CLOSED, which should be at the very bottom since you numbered it 99 as I told you to in above instructions. Make the COLUMN CLOSED module #15.

All modules AFTER that should start from #16 and so forth.

Hit SAVE when done.

Now to activate it on the page of your desire...........

AdminCP > Edit Pages > (Page you desire to have extra column)

Scroll down to the MODULES ENABLED block and "CHECK" the boxes next to the COLUMN OPEN and the COLUMN CLOSED modules.

Scroll to bottom and select SAVE.

That's it. Go look at that page and make sure it works.

Adding and removing modules from that column is just a matter of the "ORDER" number you give them on the EDIT MODULES screen of the AdminCP.

If your page is completely shattered, its probably because you didn't put the slash in the COLUMN CLOSED template when you created it ( </td> ). Not knowing exactly how your modules are built and what not, if the page is still shattered looking, try turning the COLUMN CLOSED module OFF so that it doesn't display. The </td> that is already by default in the vbAdv will most likely take care of closing out your column for you. But again, without knowing how your are creating your pages, its hard for me to make a perfect 1 time way to do this for you.

When you created these Modules, they created their own templates which you can find at:

AdminCP > Styles & Templates > Edit Templates > adv_portal_Column_Open and adv_portal_Column Closed

If you have your PC's reso set at 1024x or higher, make sure you look at your site with it set at 800x. Cuz adding another column tends to make the page too fat for users with their PC's at 800x.

And to add more columns, just repeat everything above but give them names like COLUMN_OPEN_2. And you don't have to do this for the CENTER column. I did mine for the RIGHT column when I had it going on my site before.

Here's an additional way of getting 3 columns going that are equally spaced at 33% each.

FYI, I'm not bothering to show my cellpadding and cellspacing in my TABLE tags.

Value of 1 = Table Open (Module code = <table><tr><td width="33%">
Value of 2 = vba module
Value of 3 = Column close/open (Module code = </td><td width="33%">
Value of 4 = vba Module
Value of 5 = Column close/open (Module code = </td><td width="33%">
Value of 6 = vba Module
Value of 7 = Column/Table Close (Module code = </td></tr></table>
Value of 8 = vba Module (THIS WOULD BE THAT HORIZONTAL BLOCK OF THUMBS)

Value of 9 and so forth is just a repeat of 1-8

Hope this helps a few people. :rolleyes:

maniac
03-22-2006, 08:58 PM
Perfect! :d

Here's my final version:

http://www.rfidsb.com

Our Sponsors
 

DannyITR
04-20-2006, 05:28 PM
What a fantastic post. Done and done.

5ketch
04-21-2006, 01:55 PM
I'd like to get the center column to look something like this:

_____________
[____________]
______ ______
[_____||_____]


I've figured out how to make different columns by following this thread but it looks alittle cluttered at lower resolutions.

website example: www.midwestlanparty.com

Our Sponsors
 

silkie
04-23-2006, 01:43 PM
5ketch I've been trying to figure out how to get my column to do the same thing ie:

______________
[_____________]
______________
[_____||______]


but when I looked at your site I don't see your center column being split like that. can you explain what you did? when i tried to do I ended up with the exact same module showing in both tables.

maniac
04-23-2006, 04:53 PM
You'll need at least 6 modules for this cell layout:

_____________
[_____0______]
______ ______
[__2__||__4__]

Module 0 can be any existing module, then for the second row you should have:

the first should just have <tr><td>

The second (2) the content that you want to show up in your middle left cell

the third should have </td><td>

The fourth (4) the content of the right center cell

Finally the fifth should have </td></tr>

Do that and it will match the layout shown

ge66
05-21-2006, 06:24 AM
Thank you for this.
I have just put it in the right column.

I changed the content of adv_portal_Column_Open to:

<td>&nbsp;</td><td>

to get some space between columns.

MortysTW
05-21-2006, 12:22 PM
I'm sorry I haven't replied to this thread to help out. I never got auto-notified that there were replies.

You got everything figured out? This is the latest I've done with my front page. http://www.MortysTwistedWorld.com

skooby
05-25-2006, 06:49 PM
Thanks

mindbuster
08-05-2006, 11:24 AM
Cant seem to get this working with fresh install of vB 3.6 Gold and vBacmps 2.2.0 :(

MortysTW
08-05-2006, 02:12 PM
Can you make an alternate page like index.php?page=Morty or something and then try and do it so I have something to look at. Because giving that detail lacking reply of yours, I have no idea where to even begin.

I'm not running 3.6 yet but you can see what I've done so far with all of this by going to these 2 pages.

http://www.mortystwistedworld.com/

And this one is a real good example.

http://www.mortystwistedworld.com/index.php?page=site_map

Both pages are pure modules.

mindbuster
08-05-2006, 06:27 PM
Well, I cant really post any examples, as the site isnt live yet, but thanks for wanting to help out, if you by any chance get hold on vB3.6G and cmps2.2.0 please give it a try :D

Though, I kinda got it working, but only when using right column.
I had to have a module above the column_open , having column_open as #0 screwed things up.

It's like it's the other way around of what you explained, column_close HAS to be #99 (at the very bottom) and column_open should be somewhere in between #1 and #98, and it only works when using right column.

Like, right now my right column looks like this...

Online Users
Mini Calendar
column_open
Today's Birthdays
Stats
column_close

...making it so "Online Users" and "Mini Calendar" is in the third column and those between column_open and column_close are in the fourth column.

Not exactly as you described, but still usefull for what I'm gonna use it for. :)

Though having it working as intended would be nice, also with the awesome looking placements you have on your site, I would like to be able to arrange the layout like that. ;)

MortysTW
08-05-2006, 11:58 PM
I think I understand your issue and I think its a simple HTML issue. Being that you are creating the html via the column modules.

By default, vbadvanced looks like this (not as simple but as far as structure its like this):

<table><tr>
<td>LEFT COLUMN MODULES</td>
<td>CENTER COLUMN MODULES</td>
<td>RIGHT COLUMN MODULES</td>
</tr></table>

My guess that COLUMN_open you created has a simple <td> in it. And if that's the case, you are making it look like this.....

<td> <td> RIGHT COLUMN </td> </td>

With the RED being your column_open and _close. And with that being said, your code is goofed!

To add these extra columns, you gotta add a TABLE so your code looks like this, again, YOUR CODE being in RED.

<td> <table><tr><td>RIGHT COLUMN MODULES </td><td>2nd RIGHT COLUMN MODULES </td></tr></table> </td>

This is probably getting confusing and I'm sorry.

You need to create 3 modules to make this dual right column thing work.
Module 1 = <table><tr><td>
Module 2 = </td><td>
Module 3 = </td></tr></table>

And it would look something like this when looking at your module right column page where you choose the numerical value for each to have them order and stack properly.

Value 0 = Module 1
Value 1 = Mini Calendar
Value 2 = Welcome Block
Value 3 = Module 2
Value 4 = Latest Threads
Value 5 = Random Photopost Pics
Value 6 = Module 3

Hopefully this makes sense to you. Because I seriously doubt the problems you are having have anything to do with the latest versions of the scripts.

mindbuster
08-06-2006, 08:16 AM
My guess that COLUMN_open you created has a simple <td> in it. And if that's the case, you are making it look like this.....

<td> <td> RIGHT COLUMN </td> </td>

With the RED being your column_open and _close. And with that being said, your code is goofed!



Well, I just followed your initial post, in that you didnt mention all the other stuff, but just that column_open should have "<td>" and column_close should have "</td>".

I'll play around with it some more, trying out the other stuff you mentioned. :)

MortysTW
08-06-2006, 02:06 PM
I really need to see what's going wrong with your page. It must be live in some sort if you can see it and know its not working.

But yes, you are right, I said to do that above. All depends on how you have your templates built. I wrote this tutorial as to the way I built mine. I'll probably need to rewrite my tutorial completely as a generic format. damn.

mindbuster
08-06-2006, 04:04 PM
It must be live in some sort if you can see it and know its not working.


localhost: ;) so not "live" in a way you can see it.

Try it out yourself, that way you can haxor vB and vBa and whatever web application that uses apache/php/mysql, using your windows PC at home before going live on the net.

http://www.apachefriends.org/en/xampp-windows.html

Easy installation, and you can use your windows normally as if it wasnt there, but then also test web applications on your home PC without having a linux box. :)

Delw
08-07-2006, 11:11 PM
MortysTW
I like this idea and had been playing with it since the day you posted it org. but cant seem to get it to work.

I've tried many different ways,that you have stated. my problem is they just go down and not side by side,

this is a screen shot of how they are numbered.
http://www.azbasszone.com/azvbtest/gallery/files/1/CaptureWiz008.gif

All the code for th columns are set like your latest update

Table Open (Module code = <table><tr><td width="33%">
vba module=Welcome Block
Column close/open 1 Module code = </td><td width="33%">
vba Module=Mini Calendar
Column close/open 2 Module code = </td><td width="33%">
vba Module=Online Users
Column/Table Close Module code = </td></tr></table>
vba Module=Recent Threads

Module code= Template code in my template files.
I am 100% sure I did something wrong, would you mind giving me a hand or pointing me ion the right direction

If your interested I can give you access to my test board, if you can just give me a sample I might be able to figure it out, as I am sure its pretty easy.
I am running 3.6, but have tried it on 3.5 and got the same results.

Thank You
Delw

MortysTW
08-07-2006, 11:14 PM
Yes, fire me a PM with access info and I'll post my findings here for others to learn from.

Delw
08-07-2006, 11:33 PM
I sent you a pm with access.

seems to be working now. Just for the heck of it I clicked page edit. on the home page it showed that these hilighted ones were not enabled( on the edit modules it showed they were active,) so I enabled them and updated, seemed to work. Could it be a bug in vbadvanced? or is this a step we have to do all the time. ?

Table Open
vba module=Welcome Block
Column close/open 1
vba Module=Mini Calendar
Column close/open 2
vba Module=Online Users
Column/Table Close
vba Module=Recent Threads

MortysTW
08-08-2006, 09:04 AM
Its a step you have to do ALL the time. because vbadvanced will allow you to make countless pages.

For example on my site:
http://www.mortystwistedworld.com/index.php?page=site_map
http://www.mortystwistedworld.com/index.php?page=links
http://www.mortystwistedworld.com/index.php?page=contests
http://www.mortystwistedworld.com/index.php?page=memrambles

For each of those pages, I have selected ONLY the modules I want to display. If you want something forced across ALL pages when you are creating a new Module, you can select the UPDATE ALL PAGES. But you only get one chance at that, and that's when you first create the module. Otherwise you have to go to the EDIT PAGE and Check Mark the modules you want activated.

Maybe that's MINDBUSTER's problem? Have you gone into EDIT PAGES>YOUR PAGE and made sure each Module's box is checked?

And DELW, looks like you got everything going nicely. Only thing I edited was for those 3 templates that are starting the columns, I added a valign="top" to them within the <TD> tag. Feel free to go back and delete it obviously, but I tossed that in there to align them better.

Delw
08-08-2006, 04:27 PM
MortysTW

you opened up a few new doors with this post. I like it alot.

I never understood how the templates worked, but after your last post I understand much better. I did notice the changes you made, Thanks

I am betting that was my whole problem the whole time as to why I couldnt get it to work was the page edit check box for modules, cause I tried for a long time to get that right with no effect, then I was looking around and found that.

I like the idea of differnt pages with differnt ideas, I never played with that section either so I will read up and figure out how that works for differnt ideas. I am guessing certain members could use certain pages to look at, for example
we have some people that read only about bass tournaments and some that only read about conservation and some that just dont care ;) so we could put a differnt user group for differnt pages?

Thanks again for all your help.
Delw

brotherx
10-05-2006, 05:27 AM
Thank you MortysTW! I'm very new to vBadvanced and this thread saved me hours of trying to decipher the vba code structure, cp setup, etc...

Anyway, for those who are new to vba like myself, here is the setup I used based on MortyTW's post, which will also work for what 5ketch and silkie are after.

2868 2869

1. Create the first new module in the center column and set the position below any module you want to display above it. Any module above this example will act like a colspan 2 (I have the welcome block set to 0 and this one to 1).

NOTE! Do NOT name your modules with an HTML tags (especially table tags) or the CP will read it as code.

Add Module > Template
Module Title: TABLE - TR - TD
Column: Center Column
Display Order: 1
Active: YES
Update All Pages: NO

Template to Include: adv_portal_open_table_tr_td
Template Content:
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="width: 50%; vertical-align: top; padding-right: 7px">


2. Create a second module in the center column as well with the position set after any module you want in the first of the two new columns we are creating.

Add Module > Template
Module Title: /TD - TD
Column: Center Column
Display Order: 20
Active: YES
Update All Pages: NO

Template to Include: adv_portal_close_td_open_td
Template Content:
</td><td style="width: 50%; vertical-align: top; padding-left: 7px">


3. Create the last of the new modules in the center column and after the module you want in the second column of the two new columns we are creating (modules after this will act as colspan 2s like any module placed above the first module we added).

Add Module > Template
Module Title: /TD - /TR - /TABLE
Column: Center Column
Display Order: 40
Active: YES
Update All Pages: NO

Template to Include: adv_portal_close_td_tr_table
Template Content:
</td></tr></table>


Thank you MortysTW, great post!

And thank you vBadvanced for such a great product!

Peace...

edit:
You may want to adjust the Horizontal Spacing Between Columns and the Verticle Spacing Between Modules (found in the Default Settings) from the defualt 15 px to an even number so that you can have both columns evenly divided (the spacing between the two new columns is set in the TDs we added in step 1 and 2).

MortysTW
10-05-2006, 08:42 PM
............we have some people that read only about bass tournaments and some that only read about conservation and some that just dont care ;) so we could put a differnt user group for differnt pages?

Thanks again for all your help.
Delw


I wouldn't go so far as different usergroups. Too much effort on the Admin's part in my opinion. Just make multiple pages. site.com/index.php?=bass and site.com/index.php?=conversation

admincp>vBa CMPS>Add Page

And then just have a little module on the left or whatever with quick links to your various pages. Basic navigation. :)

MortysTW
10-05-2006, 08:43 PM
Thanks brotherx for your post to help others.

kevnj
10-20-2006, 01:20 AM
I assume this now works for 3.6.x ? Looking to do what silkie 5ketch and brotherx explained. Being that brotherx's post is 15 days old Im going to assume it does work for 3.6.x, would that be a correct assumption ?

MortysTW
10-20-2006, 01:23 AM
I'm running 3.6.2 and its working just fine with the latest vbadvanced 2.2.1

My home page
http://www.mortystwistedworld.com

And then my Site Map page
http://www.mortystwistedworld.com/index.php?page=site_map

What we're doing here isn't anything that would be affected by versions. Its strictly html. Basic, everyday, html.

kevnj
10-20-2006, 01:32 AM
thanks for the quick reply. maybe update the first post as well for others ? thanks again going to work on this over the weekend.

JohnBee
10-24-2006, 01:22 PM
FANTASTIC INFORMATION!!!

This totally saved me many hours of work! and I managed to reduce my html code by at least a half of what it was.

If there was a vote for best hack button, I would hit it!

interfx
11-13-2006, 06:26 PM
I followed these directions exactly, and all that shows up in my center column are the header blocks... (ie. » TABLE - TR - TD)

Am I missing something basic??? Or do the instructions below still have to incorporated in the first post in this thread??? I turned on these modules on my home page...

Any ideas?

Thank you MortysTW! I'm very new to vBadvanced and this thread saved me hours of trying to decipher the vba code structure, cp setup, etc...

Anyway, for those who are new to vba like myself, here is the setup I used based on MortyTW's post, which will also work for what 5ketch and silkie are after.

2868 2869

1. Create the first new module in the center column and set the position below any module you want to display above it. Any module above this example will act like a colspan 2 (I have the welcome block set to 0 and this one to 1).

NOTE! Do NOT name your modules with an HTML tags (especially table tags) or the CP will read it as code.

Add Module > Template
Module Title: TABLE - TR - TD
Column: Center Column
Display Order: 1
Active: YES
Update All Pages: NO

Template to Include: adv_portal_open_table_tr_td
Template Content:
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="width: 50%; vertical-align: top; padding-right: 7px">


2. Create a second module in the center column as well with the position set after any module you want in the first of the two new columns we are creating.

Add Module > Template
Module Title: /TD - TD
Column: Center Column
Display Order: 20
Active: YES
Update All Pages: NO

Template to Include: adv_portal_close_td_open_td
Template Content:
</td><td style="width: 50%; vertical-align: top; padding-left: 7px">


3. Create the last of the new modules in the center column and after the module you want in the second column of the two new columns we are creating (modules after this will act as colspan 2s like any module placed above the first module we added).

Add Module > Template
Module Title: /TD - /TR - /TABLE
Column: Center Column
Display Order: 40
Active: YES
Update All Pages: NO

Template to Include: adv_portal_close_td_tr_table
Template Content:
</td></tr></table>


Thank you MortysTW, great post!

And thank you vBadvanced for such a great product!

Peace...

edit:
You may want to adjust the Horizontal Spacing Between Columns and the Verticle Spacing Between Modules (found in the Default Settings) from the defualt 15 px to an even number so that you can have both columns evenly divided (the spacing between the two new columns is set in the TDs we added in step 1 and 2).

MortysTW
11-14-2006, 12:45 AM
Taking a guess here, but I'm assuming you did NOT turn of "Module Shell" where it asks if you are going to use that when you created that module. So its actually using your module's title and displaying it. You'll also want to turn on the CLEAN OUTPUT which is a few lines below that MODULE SHELL choice.

Let me know if this helps.

interfx
11-14-2006, 07:56 AM
That did it... Looks great!!!

MortysTW
11-14-2006, 08:30 AM
Good to hear! Enjoy. Obviously you'll see that you can do ALOT of customizing once you get your head around all of this and can meantally picture how to create it with a bagillion modules of tags reshaping the page.

Again, glad its working for ya!

Sybaris
11-30-2006, 04:54 PM
Hmm i cant seem to get this to work no matter what i try, would anybody be willing to help me please?

MortysTW
11-30-2006, 06:35 PM
Are you "activating" the modules after you create them?

King Liquid
12-05-2006, 04:44 PM
Does this work with 3.6x?

MortysTW
02-24-2007, 06:16 PM
Sorry I haven't replied. I never got the notice email. Weird.

Yes. This editing is not version specific. If its vbAdvanced, it will work. :)

invlol
02-28-2007, 10:23 PM
Hello!!

I want to do this in mi vbadvance homepage:

http://img201.imageshack.us/img201/7357/vbadn3.jpg

Put large horizontal column where i can put what ever i want, up center and right vertical columns

hope someone can help me im a little noob on this

MortysTW
02-28-2007, 11:28 PM
Okay. This is a simple one.

You are going to need to UNcheck all your RIGHT columns so that all you have are a LEFT and a CENTER.

Your left will be that LEFT column you show in your image. Then your CENTER will be your circled horizontal block and everything below it.

Put whatever blocks you want in your LEFT, we aren't editing that layout.
Now everything else should be in your CENTER.
Choose your horizontal module..... Now you have that horizontal block.
Now, create a module block and call it <TABLE><TR><TD>. (The reason I'm saying to TITLE it that way, is so its easy to know which module block it is later.)
Give the module a display number of 1
Choose CENTER for its location
Choose to make it ACTIVE.
But choose NO for the UPDATE ALL PAGES.
On the module options, turn OFF the "use module shell template"
For the template content box, type in: <table cellpadding="0" cellspacing="0" width="100%" border="0"><tr><td>
Then click SAVE.


Now you will need to create 2 more modules. 1 module to CLOSE the above code and then you need to OPEN the next column. And then another module to close the column, the row and the table.

To form a 2nd column:

Create a new TEMPLATE module and call it </TD><TD>
Same as in the above module creation, you need to do all the same settings. Only difference is the template content. For the content you need to put: </TD><TD>
Then choose SAVE


Now to close the column, row, and table.


Create a new TEMPLATE module and call it </TD></TR></TABLE>
Same settings as the first module you created. Everything the same except for the template content. Then for the content put: </TD></TR></TABLE>
Then choose SAVE and you are basically done.


So you've built the modules. Now you just have to do some organizing for the DISPLAY values.

Your horizontal block module should be set to 0
Module <TABLE><TR><TD> should be set to 1
Then whatever modules you want in that center column be set accordingly to 2,3,4,5,6 etc.
Then when you are ready to start forming the 2nd column, you need to set the module </TD><TD> to whatever the next # is.
Then the module blocks you want in that far right column to be the next corresponding #'s after the </TD><TD> module.
And then to finish it all off, set the module block </TD></TR></TABLE> to be the very last #.

Example of the display values would be like so:

HORIZONTAL MODULE BLOCK = 0
<TABLE><TR><TD> BLOCK = 1
YOUR BLOCK = 2
YOUR BLOCK = 3
YOUR BLOCK = 4
YOUR BLOCK = 5
</TD><TD> BLOCK = 6
YOUR BLOCK = 7
YOUR BLOCK = 8
YOUR BLOCK = 9
YOUR BLOCK = 10
</TD></TR></TABLE> BLOCK = 11

Then click SAVE and go check it out. Stick a fork in you cuz your done!

MortysTW
03-01-2007, 12:07 AM
Oh ya, forgot 1 thing. If you are wanting the far RIGHT column to be narrow like your far LEFT column, in the module titled </TD><TD> you can adjust that right column width by making the content of that module read as </TD><TD width="172"> just as an example.

interfx
04-01-2007, 09:27 PM
I just tried the directions above, and in VB3.6.5 I really have messed up my Add Modules page in AdminCP...

It seems it interupts the title names above (ie. <TABLE><TR><TD>), as HTML code...

I'm trying again using normal words (ie. Table Open)

Anyone else have this issue? It was so messed up I had to delete the entire CMPS, and start from scratch...

Any ideas?

interfx
04-01-2007, 09:42 PM
Ok, just tried it again... I'm so close... Here's where I have right now... Hvae 2 basic questions that I can not figure out from your instructions above.

- How do I add spacing between the 2 columns?
- How do I make the 2nd column align to the top?

(See attachment)

Thanks for any help you can provide.

MortysTW
04-02-2007, 03:56 PM
I just tried the directions above, and in VB3.6.5 I really have messed up my Add Modules page in AdminCP...

It seems it interupts the title names above (ie. <TABLE><TR><TD>), as HTML code...

I'm trying again using normal words (ie. Table Open)

Anyone else have this issue? It was so messed up I had to delete the entire CMPS, and start from scratch...

Any ideas?

Interesting. I have my html turned OFF in my vB so I probably never noticed that. But it makes sense. Just break the code then. Put SPACES between each symbol. Or don't put the open/close tags. < >

MortysTW
04-02-2007, 03:59 PM
Ok, just tried it again... I'm so close... Here's where I have right now... Hvae 2 basic questions that I can not figure out from your instructions above.

- How do I add spacing between the 2 columns?
- How do I make the 2nd column align to the top?

(See attachment)

Thanks for any help you can provide.

Which two columns? The ones you created? If so, when you create the columns with your modules, I assume it was something like <table><tr><td>, possibly with more info in the tags. But in the table tag or the <TD> tag, you can add cellpadding and cellspacing.

<table cellpadding="4" cellspacing="3" border="0"><tr><td> just as an example.

And as for the alignment, in your <TD> tag, you need to slip in an VALIGN="TOP"

<td valign="top">

interfx
04-02-2007, 06:39 PM
Which two columns? The ones you created? If so, when you create the columns with your modules, I assume it was something like <table><tr><td>, possibly with more info in the tags. But in the table tag or the <TD> tag, you can add cellpadding and cellspacing.

<table cellpadding="4" cellspacing="3" border="0"><tr><td> just as an example.

And as for the alignment, in your <TD> tag, you need to slip in an VALIGN="TOP"

<td align="top">

That did it... That was simple HTML fix...

Thanks -

redslush
05-19-2007, 08:55 AM
Looks like this doesn't work in vba 3.1rc1. Have you played around with it yet?

Brian
05-19-2007, 10:40 AM
3.0 has built in options to allow you to add more columns.
Admin CP => vBa CMPS => Default Setttings => Main Options => Location List

MortysTW
05-19-2007, 03:15 PM
Good to see this is finally an easy option. I haven't upgraded yet, but look forward to the new versions. Less modules loading on a page the better. :)

MortysTW
09-25-2007, 11:45 AM
Hi, thank you for this, but how can I do if I want only the first news single? I mean the first at the top single in the 100% table, and the other news below the first in the 50% table like in this example
________
|___1___|
|_2_|_3_|
|_4_|_5_|

thank you

I'm tired and its been awhile since I've done this with my vbadvanced, so bare with me.

Looking at your little detail there I'm going to renumber it for the sake of simplicity.

__________
|____10___|
|_20_|_40_|
|_30_|_50_|


Okay. Buckle up!

LEFT COLUMN and RIGHT COLUMN are to be blank, zip, zero, nothing in them. We are only using CENTER column.

Build the following and save them. Do not make them "active". You'll go back and add them in later.

Name: <table> <tr> <td>
Contents:
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>

Name: </td></tr></table><table><tr><td 50%>
Contents:
</td></tr></table>]<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="50%">

Name: </td><td 50%>
Contents:
</td><td width="50%">

Name: </td></tr></table>
Contents:
</td></tr></table>

Alright. Now that those are built. Let's slide some shells around and find the peanut.

Open whatever page you plan on doing this to, and snag the following modules and set their values accordingly.

<table> <tr> <td> = 0
Module 10 = 10
</td></tr></table><table><tr><td 50%> = 15
Module 20 = 20
Module 30 = 30
</td><td 50%> = 35
Module 40 = 40
Module 50 = 50
</td></tr></table> = 99

Quick notes as an FYI. You don't have to list them as 1,2,3,4,5 6,7,8,9. They just have to be in numerical order, but not consecutive. So spread it out a bit for simplicity

Modules 0, 15, 35 and 99 are basically invisible. They are "within the code" structure building modules that won't appear. That's why its important to have the BORDER=0 and the cellpadding and cellspacing set to 0

Now you can add all the modules you want and just # them 21,22,23 and so forth.

I also had you build this as a center table and 2 columns instead of 3 rows because I've experience let's say Module 22 has a thread title fall onto 2 lines, if module 40 didn't have a module fall onto 2 lines, then you will start getting gaps under the modules because they are technically different heights.

This way, the only place that gaps will be noticeable, is at the very bottom of your page. And its no biggy there.

Let me know if this works for ya!

Kseki
10-04-2007, 09:14 AM
wow! this exactl what I've been looking for. can't wait to try it out with stuff. will post results (or questoins +_+ ) :p

Rukas
10-17-2007, 08:55 AM
I tried doing the above so it looks like this

[-----]
[--][--]

Unfortunately it stretches the top module past the dimensions of the actual forum. Any ideas?