Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-08-2009, 05:28 AM
LCN2007 LCN2007 is offline
 
Join Date: Jul 2007
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default VBA Help

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.
Attached Images
File Type: jpg template.jpg (35.1 KB, 0 views)
Reply With Quote
  #2  
Old 10-08-2009, 02:23 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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):
HTML Code:
<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>
Reply With Quote
  #3  
Old 10-08-2009, 04:08 PM
LCN2007 LCN2007 is offline
 
Join Date: Jul 2007
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its a little off it has all this extra spacing every were.

www.localcobalt.net

Select Dev2 Style to see
Reply With Quote
  #4  
Old 10-08-2009, 04:39 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would ask over at vbadvanced
Reply With Quote
  #5  
Old 10-08-2009, 04:41 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 10-08-2009, 06:46 PM
LCN2007 LCN2007 is offline
 
Join Date: Jul 2007
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/mem...tom-layout.jpg

Quote:
Originally Posted by Loco.M View Post
I would ask over at vbadvanced
Thanks as i stated i did and wasnt getting any help.
Reply With Quote
  #7  
Old 10-08-2009, 06:59 PM
tbrown7552 tbrown7552 is offline
 
Join Date: Sep 2007
Location: USA
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 10-08-2009, 07:29 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LCN2007 View Post
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/mem...tom-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)?
Reply With Quote
  #9  
Old 10-08-2009, 08:18 PM
LCN2007 LCN2007 is offline
 
Join Date: Jul 2007
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this link work?

http://www.localcobalt.net/forum/mem...tom-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.
Attached Images
File Type: jpg custom layout.jpg (32.6 KB, 0 views)
Reply With Quote
  #10  
Old 10-08-2009, 08:54 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LCN2007 View Post
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).
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:04 PM.


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.04268 seconds
  • Memory Usage 2,279KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete