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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-2012, 03:35 PM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Grid - How-To?

Hello,

i want a special grid.

Its like the standart-grid but with 4 or 5 boxex above the main-box.

I make a little screen (attachmend)

Anyone know, how i solve this?

Regards
Attached Images
File Type: jpg grid.jpg (52.7 KB, 0 views)
Reply With Quote
  #2  
Old 02-04-2012, 05:37 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 that has a header in that space, then flatten the grid and edit it to add those five boxes.
Reply With Quote
  #3  
Old 02-04-2012, 05:46 PM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry but i dont know exactly how i doe this....

I found this grid:

HTML Code:
<div id="doc3">
	<div id="hd">
		<div class="yui-u yui-header">
			<ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
		</div>
	</div>
	<div id="bd">
		<div class="yui-gb">
			<div class="yui-u first yui-panel">
				<ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
			</div>
			<div class="yui-u yui-panel">
				<ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
			</div>
			<div class="yui-u yui-panel">
				<ul class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul>
			</div>
		</div>
	</div>
	<div id="ft">
		<div class="yui-u yui-footer">
			<ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul>
		</div>
	</div>
</div>
But how i must change the header-part?
Reply With Quote
  #4  
Old 02-04-2012, 05:55 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'll need to modify this area to add in five <divs> all with a class that sets the widths to about 19% or so:

<ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
Reply With Quote
  #5  
Old 02-04-2012, 06:36 PM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Lynne.
How i set the widths?

Is this correkt?

HTML Code:
			<ul style="width:19%" class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
and this 4 times in div class yui-u yui-header?
Reply With Quote
  #6  
Old 02-04-2012, 06:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, except make sure to always change the id and the $column number (those need to match and be unique - column[1] with widgetlist_column1, column[6] with widgetlist_column6, column[7] with widgetlist_column7, etc)

You may need to add more style like float them left, but you can figure that out afterwards.
Reply With Quote
  #7  
Old 02-04-2012, 06:56 PM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes. Thanks for your great and fast support/help. I'll try it later and give feedback than.

--------------- Added [DATE]1328386679[/DATE] at [TIME]1328386679[/TIME] ---------------

One Problem now:
The boxes are below of each other but i want them next to the other.

My code:

HTML Code:
<div id="doc3">
	<div id="hd">
		<div class="yui-u yui-header">
			<ul style="width:24%" class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>	
			<ul style="width:24%" class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
			<ul style="width:24%" class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
			<ul style="width:24%" class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul>			
		</div>
	</div>
	<div id="bd">
		<div class="yui-gb">
			<div class="yui-u first yui-panel">
				<ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul>
			</div>
			<div class="yui-u yui-panel">
				<ul class="list_no_decoration widget_list" id="widgetlist_column6">$column[6]</ul>
			</div>
			<div class="yui-u yui-panel">
				<ul class="list_no_decoration widget_list" id="widgetlist_column7">$column[7]</ul>
			</div>
		</div>
	</div>
	<div id="ft">
		<div class="yui-u yui-footer">
			<ul class="list_no_decoration widget_list" id="widgetlist_column8">$column[8]</ul>
		</div>
	</div>
</div>
I tried to give everey ul-tag his own div class="yui-u yui-header"-tag but didnt work too....
Reply With Quote
  #8  
Old 02-05-2012, 05:13 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Instead of using <ul> tags, try using <div> tags and make sure you float them all to the left. If you have more problems, please post a link so we can see the actual grid in use and see what is going wrong.
Reply With Quote
  #9  
Old 02-05-2012, 08:12 AM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Lynne,

I change the code now to this:

HTML Code:
<div id="doc3">
	<div id="hd">
		<div class="yui-u yui-header">
			<ul style="width:24%;float:left" class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>	
			<ul style="width:24%;float:left" class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
			<ul style="width:24%;float:left" class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
			<ul style="width:24%;float:left" class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul>			
		</div>
	</div>
	<div id="bd">
		<div class="yui-g">
			<div class="yui-tvb-l25 first yui-panel">
				<ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul>
			</div>
			<div class="yui-tvb-l50 first yui-panel">
				<ul class="list_no_decoration widget_list" id="widgetlist_column6">$column[6]</ul>
			</div>
			<div class="yui-tvb-l25 first yui-panel">
				<ul class="list_no_decoration widget_list" id="widgetlist_column7">$column[7]</ul>
			</div>
		</div>
	</div>
	<div id="ft">
		<div class="yui-u yui-footer">
			<ul class="list_no_decoration widget_list" id="widgetlist_column8">$column[8]</ul>
		</div>
	</div>
</div>
And it works!

One little question:

Is it possible to add space between the boxes?
http://allround-board.net/content/

Look at the right side, there are to many spaces.

--------------- Added [DATE]1328466412[/DATE] at [TIME]1328466412[/TIME] ---------------

Ok, dont work

It work for a while but now it didnt work (the left area below the header-parts switched to the right)
Reply With Quote
  #10  
Old 02-06-2012, 08:48 AM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Push.....
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 09:21 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05465 seconds
  • Memory Usage 2,294KB
  • Queries Executed 12 (?)
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
  • (4)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
  • (1)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_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