xoops forums

Jason0071

Just popping in
Posted on: 2005/2/10 20:39
Jason0071
Jason0071 (Show more)
Just popping in
Posts: 6
Since: 2005/1/19
#1

Left, Right, Left, Right, Left....

OK, how do you get Left and Right Center blocks to display below Center Blocks. It seems that all Left and Right Center blocks display above the Center Blocks. Can this be changed???

Jason

Draven

Module Developer
Posted on: 2005/2/10 20:56
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#2

Re: Left, Right, Left, Right, Left....

Yes, you can. Open your theme.html file (located in /themes/default/ if you are using the default theme) and look for this chunk of code (highlighted red):

<table cellspacing="0">
           <
tr>
            <
td id="centerCcolumn" colspan="2">
[
color=FF0000]
            <!-- 
Start center-center blocks loop -->
            <{foreach 
item=block from=$xoops_ccblocks}>
              <{include 
file="default/theme_blockcenter_c.html"}>
            <{/foreach}>
            <!-- 
End center-center blocks loop -->
[/
color]
          
            </
td>
          </
tr> <tr>
            <
td id="centerLcolumn">

            <!-- 
Start center-left blocks loop -->
              <{foreach 
item=block from=$xoops_clblocks}>
                <{include 
file="default/theme_blockcenter_l.html"}>
              <{/foreach}>
            <!-- 
End center-left blocks loop -->

            </
td><td id="centerRcolumn">

            <!-- 
Start center-right blocks loop -->
              <{foreach 
item=block from=$xoops_crblocks}>
                <{include 
file="default/theme_blockcenter_r.html"}>
              <{/foreach}>
            <!-- 
End center-right blocks loop -->

            </
td>
          </
tr>
        </
table>


Now since the default theme already shows the center columns above the center left and right columns, I assume you are using a different theme that has changed this part. Examine your theme.html file and move that chunk of code (or it's equivalent) to where you want it.

Jason0071

Just popping in
Posted on: 2005/2/10 21:13
Jason0071
Jason0071 (Show more)
Just popping in
Posts: 6
Since: 2005/1/19
#3

Re: Left, Right, Left, Right, Left....

This I have figured out, I was wondering if you can do it without having all left center and right center blocks below center-center blocks...hmmmm.

You know change the order in which blocks are displayed instead of loop all center-center blocks on top..

Jason