1
kerkyra
2 center top columns blocks and 3 bottom center
  • 2007/9/27 12:08

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


hi i'm using the ramadan theme (in www.mykerkyra.gr)

what i want is to have in the theme.html file

2 blocks above the center column (center top left - center top right)

then the center center block

contents

and bellow all to have 3 blocks bottom center left - bottom center center - bottom center right.

right now the code of that table is like the one bellow, and the top left and right blocks appear in the bottom.

anybody know what i need to change ?

Quote:
<td colspan="3" id="centercolumn"><!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}>
<table cellspacing="0" class="centercol">
<tr>
<td id="centerCcolumn" colspan="2"><!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<{include file="$xoops_theme/theme_blockcenter_c.html"}>
<{/foreach}>
<!-- End center-center blocks loop -->
</td>
</tr>
<tr>
<td id="centerLcolumn"><!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}> <{include file="$xoops_theme/theme_blockcenter_l.html"}> <{/foreach}>
<!-- End center-left blocks loop -->
</td>
<td id="centerRcolumn" style="border-right: 1px solid #c6c6c6;"><!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}> <{include file="$xoops_theme/theme_blockcenter_r.html"}> <{/foreach}>
<!-- End center-right blocks loop -->
</td>
</tr>
</table>
<{/if}>
<!-- End display center blocks -->
<div class="content">
<{$xoops_contents}>
</div>
<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}>
<table cellspacing="0" class="centercolb">
<{if $xoBlocks.page_bottomcenter}>
<tr>
<td id="bottomCcolumn" colspan="2"><{foreach from=$xoBlocks.page_bottomcenter item=block}>
<{include file="$xoops_theme/theme_blockcenter_c.html"}>
<{/foreach}>
</td>
</tr>
<{/if}>
<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright}>
<tr>
<td id="bottomLcolumn"><{foreach from=$xoBlocks.page_bottomleft item=block}>
<{include file="$xoops_theme/theme_blockcenter_l.html"}>
<{/foreach}>
</td>
<td id="bottomRcolumn" style="border-right: 1px solid #c6c6c6;"><{foreach from=$xoBlocks.page_bottomright item=block}>
<{include file="$xoops_theme/theme_blockcenter_r.html"}>
<{/foreach}>
</td>
</tr>
<{/if}>
</table>
www.guidemap.gr - Beta is out...

2
Will_H
Re: 2 center top columns blocks and 3 bottom center
  • 2007/9/27 12:18

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


Try this.

<td colspan="3" id="centercolumn"><!-- Display center blocks if any -->
<{if 
$xoops_showcblock == 1}>
<
table cellspacing="0" class="centercol">
<
tr>
<
td id="centerLcolumn"><!-- Start center-left blocks loop -->
<{foreach 
item=block from=$xoops_clblocks}> <{include file="$xoops_theme/theme_blockcenter_l.html"}> <{/foreach}>
<!-- 
End center-left blocks loop -->
</
td>
<
td id="centerRcolumn" style="border-right: 1px solid #c6c6c6;"><!-- Start center-right blocks loop -->
<{foreach 
item=block from=$xoops_crblocks}> <{include file="$xoops_theme/theme_blockcenter_r.html"}> <{/foreach}>
<!-- 
End center-right blocks loop -->
</
td>
</
tr>
<
tr>
<
td id="centerCcolumn" colspan="2"><!-- Start center-center blocks loop -->
<{foreach 
item=block from=$xoops_ccblocks}>
<{include 
file="$xoops_theme/theme_blockcenter_c.html"}>
<{/foreach}>
<!-- 
End center-center blocks loop -->
</
td>
</
tr>
</
table>
<{/if}>
<!-- 
End display center blocks -->


<div class="content">
<{$xoops_contents}>
</div>

<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or  $xoBlocks.page_bottomcenter}>
<
table cellspacing="0" class="centercolb">
<
tr>
<
td id="bottomLcolumn"><{foreach from=$xoBlocks.page_bottomleft item=block}>
<{include 
file="$xoops_theme/theme_blockcenter_l.html"}>
<{/foreach}>
</
td>
<
td id="bottomCcolumn"><{foreach from=$xoBlocks.page_bottomcenter item=block}>
<{include 
file="$xoops_theme/theme_blockcenter_c.html"}>
<{/foreach}>
</
td>
<
td id="bottomRcolumn" style="border-right: 1px solid #c6c6c6;"><{foreach from=$xoBlocks.page_bottomright item=block}>
<{include 
file="$xoops_theme/theme_blockcenter_r.html"}>
<{/foreach}>
</
td>
</
tr>
<{/if}>
</
table>


HTH

3
kerkyra
Re: 2 center top columns blocks and 3 bottom center
  • 2007/9/27 15:53

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


that did it! I played a lil bit with the code to get exactly what i wanted! Thanks very much for the help! You are the man
www.guidemap.gr - Beta is out...

Login

Who's Online

169 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits