Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2011, 09:43 PM
Duncan Idaha Duncan Idaha is offline
 
Join Date: Nov 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to edit column/Widget width on the homepage?

Can someone help me (inexperienced at coding, experienced at VB 3) on this?

Currently, I use the 3 column (25,50,25) layout for the homepage, since I want two rows of Widgets, one on either side of the articles.

I would prefer the article wider, and the Widgets thinner. Something like 20%, 60%, 20%. Must I try to adjust the 3 column grid for that or try to edit the Widgets? And how can I do either one?
Reply With Quote
  #2  
Old 05-24-2011, 09:50 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to create a new grid that has the dimensions you want, then create a layout from that grid and then assign the new layout to your section.
Reply With Quote
  #3  
Old 05-25-2011, 07:18 AM
Duncan Idaha Duncan Idaha is offline
 
Join Date: Nov 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Lynne,

I did give this a try, but most likely not in the appropriate manner
There is the option to "flatten" a grid, which shows HTML coding and tells you that you are working directly in HTML instead of the wizard.

The layout manager UI HTML than shows:
<div id="doc3">
<div id="bd">
<div class="yui-g">
<div class="yui-tvb-l25 first yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
</div>
<div class="yui-tvb-l50 first yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
</div>
<div class="yui-tvb-l25 first yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
</div>
</div>
</div>
</div>

The default template HTML shows:

<div id="doc3">
<div id="bd">
<div class="yui-g">
<div class="yui-tvb-l25 first yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
</div>
<div class="yui-tvb-l50 first yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
</div>
<div class="yui-tvb-l25 first yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
</div>
</div>
</div>
</div>

Since I am not familiar with coding, I can hardly make head or tail from this. (Sorry, but folks like me do exist) However, it looked to me that the "l25" and l50" refer to the columns. So, took the gamble and changed those to "l20" and " l20" The result however was one broad column and one smaller one.

I have reverted it to original which brought back the original lay out (pfew..) Glanced at the other 3 column grids, but that was not much help. What I don't understand is that some 3 column grids only have one "instruction" and the above one refers to three widget lists, whilst one of them is intended for articles. How does this work and what am I doing wrong here?
Reply With Quote
  #4  
Old 05-25-2011, 04:04 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I actually have a 20/60/20 grid:

Layout Manger HTML:
HTML Code:
<style type="text/css">
.yui-tvb-l1 .yui-b {width: 20%;}
.yui-tvb-l1 #yui-main .yui-b {
margin-left:20%;
padding-left: 10px;
}
</style>
<div id="doc3" class="yui-tvb-l1">
    <div id="bd">
        <div id="yui-main">
            <div class="yui-b">
                <div class="yui-ge">
                    <div class="yui-u first yui-panel">
                        <ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
                    </div>
                    <div class="yui-u yui-panel">
                        <ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="yui-b yui-sidebar">
            <ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
        </div>
    </div>
</div>
Default Template HTML:
HTML Code:
<style type="text/css">
.yui-tvb-l1 .yui-b {width: 20%;}
.yui-tvb-l1 #yui-main .yui-b {
margin-left:20%;
padding-left: 10px;
}
</style>

<div id="doc3" class="yui-tvb-l1">
    <div id="bd">
        <div id="yui-main">
            <div class="yui-b">
                <div class="yui-ge">
                    <div class="yui-u first yui-panel">
                        <ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
                    </div>
                    <div class="yui-u yui-panel">
                        <ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="yui-b yui-sidebar">
            <ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
        </div>
    </div>
</div>
Reply With Quote
  #5  
Old 05-28-2011, 10:09 AM
Duncan Idaha Duncan Idaha is offline
 
Join Date: Nov 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfect on my site, thanks Lynne!
Reply With Quote
  #6  
Old 10-21-2011, 10:44 PM
AcesGaming AcesGaming is offline
 
Join Date: Oct 2011
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to get this done on my website yet I'm not sure what I need to edit. Where do I find this template so I can paste this code in?

Thanks in advance.
Reply With Quote
  #7  
Old 10-22-2011, 02:59 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We are talking about the grids and stuff to enter into a flatten grid page.
Reply With Quote
  #8  
Old 10-22-2011, 03:03 AM
AcesGaming AcesGaming is offline
 
Join Date: Oct 2011
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need to have my homepage in a 20/60/20 fashion, how do I create a grid that allows me to have these measurements. When I go to try and create a new grid, I'm only allowed certain set options in the drop menu. The closest being 25/50/25.
Reply With Quote
  #9  
Old 10-22-2011, 04:29 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Create a grid close to what you want and flatten it. Then edit the grid and modify it how you want.
Reply With Quote
  #10  
Old 10-22-2011, 09:50 PM
AcesGaming AcesGaming is offline
 
Join Date: Oct 2011
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would be very thankful if you can advise on how to flatten and modify the grid coordinates.
Reply With Quote
Reply


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 11:50 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.12028 seconds
  • Memory Usage 2,264KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_html
  • (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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete