View Full Version : VBA Help
LCN2007
10-08-2009, 05:28 AM
Can someone help me code this, im trying to create new locations for my VBA homepage but im not getting any support over there and as much as i search i keep coming to the same answer " Its easy to do if you know basic html" but i dont know html.
Im trying to accomplish the block positions like the image i attached.
Here is my basic code.
Any help would be greatly appreciated.
Lynne
10-08-2009, 02:23 PM
You can't put if conditions around whole columns. Looking at your image, you NEED to account for four columns per row. Some will have colspans and some will have rowspans. Here is your basic structure (I think... I through this together kinda quick):
<table>
<tr>
<td colspan=2>stuff</td>
<td colspan=2>stuff</td>
</tr>
<tr>
<td rowspan=2>stuff</td>
<td>stuff</td>
<td>stuff</td>
<td rowspan=2>stuff</td>
</tr>
<tr>
<td colspan=2>stuff</td>
</tr>
<tr>
<td colspan=2>stuff</td>
<td colspan=2>stuff</td>
</tr>
<tr>
<td colspan=4>stuff</td>
</tr>
</table>
LCN2007
10-08-2009, 04:08 PM
Its a little off it has all this extra spacing every were.
www.localcobalt.net
Select Dev2 Style to see
Brandon Sheley
10-08-2009, 04:39 PM
I would ask over at vbadvanced ;)
Lynne
10-08-2009, 04:41 PM
I have no idea what I am supposed to be looking at in dev2. It's just a basic page with a column on the left.
I know nothing really of vba. So I have no idea to take that table and make it into a page using the vba template system.
LCN2007
10-08-2009, 06:46 PM
Sorry Lynn,
I had to put all the blocks back to normal so my site looked like it was suppose to but here is a screen of what the code you gave me did.
https://vborg.vbsupport.ru/
http://www.localcobalt.net/forum/members/xenss06-albums-xens-random-pics-picture1074-custom-layout.jpg
I would ask over at vbadvanced ;)
Thanks as i stated i did and wasnt getting any help.
tbrown7552
10-08-2009, 06:59 PM
Everything is easily possible except the center one that has a right and left side. If you just use one and put what you want to put in there side by side it would be alot easier.
Lynne
10-08-2009, 07:29 PM
Sorry Lynn,
I had to put all the blocks back to normal so my site looked like it was suppose to but here is a screen of what the code you gave me did.
http://www.localcobalt.net/forum/members/xenss06-albums-xens-random-pics-picture1074-custom-layout.jpg
http://www.localcobalt.net/forum/members/xenss06-albums-xens-random-pics-picture1074-custom-layout.jpg
Thanks as i stated i did and wasnt getting any help.
The link for the image doesn't work.
Did you put some text into the table I posted? And did you put it all in it's own div or table or something? Did you validate the page to make sure your html was correct (that you didn't just put the code smack in the middle of an area you should not have)?
LCN2007
10-08-2009, 08:18 PM
Does this link work?
http://www.localcobalt.net/forum/members/xenss06-albums-xens-random-pics-picture1074-custom-layout.jpg
Im having issues with other people following links to my site i dont know why.
Ok i got a smaller version of it up loaded to show you what its doing.
KW802
10-08-2009, 08:54 PM
Thanks as i stated i did and wasnt getting any help.Did you check for other threads on the same topic?
http://www.vbadvanced.com/forum/showthread.php?t=31231
Lynne's answer above gave you the basic layout you need, the next step would be adding the needed block name variables & conditionals (don't even really need the conditionals as much as the block names that match the names you entered into your ACP).
LCN2007
10-08-2009, 09:05 PM
Yes i have searched for other threads and none of them are easy nore anwered veery well and usually end in " Thats easy to do if you know html".
Thats why im here asking for help because i cant get any support over there.
I have entered the variable and thats what it looks like in the picture in my previous post.
Here is the code:
<table>
<tr>
<td colspan=2>$home[topleftblocks]
</td>
<td colspan=2>$home[toprightblocks]
</td>
</tr>
<tr>
<td rowspan=2>$home[leftblocks]
</td>
<td>$home[middleleftblocks]
</td>
<td>$home[middlerightblocks]
</td>
<td rowspan=2>$home[rightblocks]
</td>
</tr>
<tr>
<td colspan=2>$home[centerblocks]
</td>
</tr>
<tr>
<td colspan=2>$home[footerleftblocks]
</td>
<td colspan=2>$home[footerrightblocks]
</td>
</tr>
<tr>
<td colspan=4>$home[footerblocks]
</td>
</tr>
</table>
Lynne
10-08-2009, 09:05 PM
No, that link still doesn't work. I get a blank page.
If you look at the image you posted, you can see that the basic layout is correct. You just haven't put any style into it (no classes) so the background is continuous across the columns and your columns are very uneven (you haven't set a width for any of the columns) due to the content you are putting into it (and you have probably hard-coded the width for some of them). *You* will have to style the table, I'm not going to do that for you (nor can I since I have no idea what classes vba uses or have any idea what is hard-coded in any of those modules you are using). The table *is* the shape of what you asked for (you can clearly see the row lines and the line down the very center of the table - which is off center because of the content).
LCN2007
10-08-2009, 09:59 PM
Thank you Lynne I appreciate your help. I will starte the research on how to style it now.
Lynne one last thing did you get a chance to review the other thread you were helping me with about the drop downs?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.