1
JamesSAEP
Shadowman Theme - How do I change move the center blocks?
  • 2005/5/31 22:38

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Below is the code from the theme.html file on the Shadowman theme. I want to have the ceneter-left and center-right blocks be displayed before the center-center blocks. I have tried moving the code below, but just can't get it to work.
Can someone show me how it should be written?

Quote:

<!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}>

<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<{include file="shadowman/theme_blockcenter_c.html"}>
<{/foreach}>
<!-- End center-center blocks loop -->

<{/if}>
<!-- End display center blocks -->

<{$xoops_contents}>

<!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}>

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

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


Thanks everyone.

2
pod
Re: Shadowman Theme - How do I change move the center blocks?
  • 2005/6/1 0:58

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


<!-- Display center blocks if any -->
<{if 
$xoops_showcblock == 1}>
<!-- 
Start center-left blocks loop -->
<{foreach 
item=block from=$xoops_clblocks}>
<{include 
file="shadowman/theme_blockcenter_l.html"}>
<{/foreach}>
<!-- 
End center-left blocks loop -->

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

<!-- 
Start center-center blocks loop -->
<{foreach 
item=block from=$xoops_ccblocks}>
<{include 
file="shadowman/theme_blockcenter_c.html"}>
<{/foreach}>
<!-- 
End center-center blocks loop -->

<{/if}>
<!-- 
End display center blocks -->


That should do it, assuming you are formatting these after the fact ;)

Or assuming you aren't, you could try...
<!-- Display center blocks if any -->
<{if 
$xoops_showcblock == 1}>
<
table width="100%" border="0" cellspacing="0" cellpadding="0">
  <
tr>
    <
td>
    <!-- 
Start center-left blocks loop -->
<{foreach 
item=block from=$xoops_clblocks}>
<{include 
file="shadowman/theme_blockcenter_l.html"}>
<{/foreach}>
   <!-- 
End center-left blocks loop -->
    </
td>
    <
td>
    <!-- 
Start center-right blocks loop -->
<{foreach 
item=block from=$xoops_crblocks}>
<{include 
file="shadowman/theme_blockcenter_r.html"}>
<{/foreach}>
   <!-- 
End center-right blocks loop -->
    </
td>
  </
tr>
</
table>
<!-- 
Start center-center blocks loop -->
<{foreach 
item=block from=$xoops_ccblocks}>
<{include 
file="shadowman/theme_blockcenter_c.html"}>
<{/foreach}>
<!-- 
End center-center blocks loop -->
<{/if}>
<!-- 
End display center blocks -->


Hope this helps :)

3
mczolton
Re: Shadowman Theme - How do I change move the center blocks?
  • 2005/6/8 22:32

  • mczolton

  • Friend of XOOPS

  • Posts: 31

  • Since: 2004/4/27


Did this solve your problem? If not, please PM or email me and I'll see if I can help.

Thanks,
Mark

Login

Who's Online

54 user(s) are online (43 user(s) are browsing Support Forums)


Members: 0


Guests: 54


more...

Donat-O-Meter

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

Latest GitHub Commits