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 04-17-2011, 10:37 AM
reteep reteep is offline
 
Join Date: Mar 2004
Location: Germany
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default CMS: 3 Blocks side by side?

I just saw the 3 blocks layout here on http://www.mmo-champion.com/content/.

Recent Blue Posts - Recent Forum Posts - Medium Rectangle Banner

Does anyone know how they created that? I tried moving 3 blocks in the CMS Layout Manager to show up in one line, but it doesn't work. It can just be set underneath each other.

Is it some specific mod or hand coded?

Thanks!
Reply With Quote
  #2  
Old 04-17-2011, 04:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like they created a grid with a Secondary Header and the bottom is 1 column at 100%. Then flatten the grid. Then edit to put three divs, each 33%, into the Secondary Header.

Should end up with something like:
HTML Code:
<div id="doc3">
    <div id="hd" class="yui-gb">
        <div class="yui-u first">
            <ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
        </div>
        <div class="yui-u">
            <ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
        </div>
        <div class="yui-u">
            <ul class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul>
        </div>
    </div>
    <div id="bd">
        <div class="yui-u yui-panel">
            <ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
        </div>
    </div>
</div>
Reply With Quote
  #3  
Old 04-17-2011, 04:41 PM
reteep reteep is offline
 
Join Date: Mar 2004
Location: Germany
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Lynne,

thanks a lot for the direction! Following the code you posted is just generating one column. I now created a 33/33/33 grid to use it as a model and I'm almost there, but I can't figure out why this grid is showing the 3 blocks in the sidebar instead of the main site column. Could you give me a hint?

Grid was created as
1 Column with Header + 300px Sidebar.

Layout
Code:
<div id="doc3" class="yui-tvb-r4">
	<div id="hd">
<div class="yui-b">
				<div class="yui-gb">
			<div class="yui-u first yui-panel">
				<ul class="list_no_decoration" id="widgetlist_column1">$column[1]</ul>
			</div>
			<div class="yui-u yui-panel">
				<ul class="list_no_decoration" id="widgetlist_column2">$column[2]</ul>
			</div>
			<div class="yui-u yui-panel">
				<ul class="list_no_decoration" id="widgetlist_column3">$column[3]</ul>
			</div>
</div>
</div>
	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
				<div class="yui-u yui-panel">
					<ul class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul>
				</div>
			</div>
		</div>
		<div class="yui-b yui-sidebar">
			<ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul>
		</div>
	</div>
</div>
Template
Code:
<div id="doc3" class="yui-tvb-r4">
	<div id="hd">
<div class="yui-g">
			<div class="yui-u first yui-panel">
				<ul class="list_no_decoration" id="widgetlist_column1">$column[1]</ul>
			</div>
			<div class="yui-u yui-panel">
				<ul class="list_no_decoration" id="widgetlist_column2">$column[2]</ul>
			</div>
			<div class="yui-u yui-panel">
				<ul class="list_no_decoration" id="widgetlist_column3">$column[3]</ul>
			</div>
</div>
	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
				<div class="yui-u yui-panel">
					<ul class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul>
				</div>
			</div>
		</div>
		<div class="yui-b yui-sidebar">
			<ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul>
		</div>
	</div>
</div>
Reply With Quote
  #4  
Old 04-17-2011, 06:16 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 use yui-gb in the template, not yui-g.

http://developer.yahoo.com/yui/examp.../grids-gb.html
Reply With Quote
  #5  
Old 04-18-2011, 08:21 AM
reteep reteep is offline
 
Join Date: Mar 2004
Location: Germany
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the reference, that helped a lot.

I'm actually done, it looks just like it should in the Grid and Layout Manager.

The only problem left now is, when I put it live on the site, it doesn't look like in the Layout Manager. Every Widget is taking up the full width and shows up underneath each other, instead of being in one line. I used "Latest Articles", "Latests Posts" and a custom one.

I attached the grid, maybe you got an idea?

Code:
<div id="doc3">
<div id="hd">
<div class="yui-gb">
			<div class="yui-u first yui-panel">
				<ul class="list_no_decoration" id="widgetlist_column1">$column[1]</ul>
			</div>
			<div class="yui-u yui-panel">
				<ul class="list_no_decoration" id="widgetlist_column2">$column[2]</ul>
			</div>
			<div class="yui-u yui-panel">
				<ul class="list_no_decoration" id="widgetlist_column3">$column[3]</ul>
			</div>
</div>
</div>
	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
				<div class="yui-u yui-panel">
					<ul class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul>
				</div>
			</div>
		</div>
		<div class="yui-b yui-sidebar">
			<ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul>
		</div>
	</div>
</div>
PS: Please let me know if I can donate somehow, appreciate your help!
Attached Files
File Type: xml vbulletin-grid.xml (997 Bytes, 6 views)
Reply With Quote
  #6  
Old 04-18-2011, 03:19 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we get a link?

I used the grid I posted in post 2 and it worked fine. I tried yours, and the only problem I have is with your sidebar which is showing under the article on my section.
Reply With Quote
  #7  
Old 04-18-2011, 04:37 PM
reteep reteep is offline
 
Join Date: Mar 2004
Location: Germany
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're right, the Sidebar doesn't work yet. I attached an image on how my current Layout looks like. So I got the 3 Widgets on the top.

However, on the site they are underneath each other. This is the main site, I just mirrored it and put a testsite here with the active layout: http://pre.mynintendo.de/content.php?r=1-news
Attached Images
File Type: jpg layout.jpg (50.1 KB, 0 views)
Reply With Quote
  #8  
Old 04-18-2011, 05:13 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have "yui-bg" instead of "yui-gb" That will break things.
Reply With Quote
  #9  
Old 04-19-2011, 07:17 AM
reteep reteep is offline
 
Join Date: Mar 2004
Location: Germany
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You have "yui-bg" instead of "yui-gb" That will break things.
.. ahhh, the small things.. Thanks a lot! It works! After I adapted the widgets it can go live.

Thanks a lot for your help Lynne!
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 02:11 AM.


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.04541 seconds
  • Memory Usage 2,274KB
  • 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
  • (3)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete