PEAK XOOPS - Re: Controling block order in englishin japanese

Re: Controling block order

List posts in the topic

question Re: Controling block order

msg# 1.1
depth:
1
Previous post - Next post | Parent - Children.1 .2 | Posted on 2005/5/18 18:57
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi kenchan.
Quote:
By the way how you change THEME.html with this 'header.php'.
I try to think many time, but my skill is not enough to understand it.

This is the sample of a part of theme.html
        <!-- Display center blocks if any -->
        <{if $xoops_showcblock == 1}>

        <table cellspacing="0" cellpadding="1">
          <tr>
            <td id="centerCcolumn" colspan="3" valign="top">

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

            </td>
          </tr>
          <tr>
            <td id="centerLcolumn" valign="top" width="50%">

            <!-- Start center-left blocks loop -->
              <{foreach item=block from=$xoops_clblocks}>
                <{include file="shusei/theme_blockcenter_l.html"}>
              <{/foreach}>
            <!-- End center-left blocks loop -->
              <br /><img src="<{$xoops_imageurl}>spacer.gif" width="150" height="4">
            </td>
            <td><img src="<{$xoops_imageurl}>spacer.gif" width="4" height="4"></td>
            <td id="centerRcolumn" valign="top" width="50%">

            <!-- Start center-right blocks loop -->
              <{foreach item=block from=$xoops_crblocks}>
                <{include file="shusei/theme_blockcenter_r.html"}>
              <{/foreach}>
            <!-- End center-right blocks loop -->
              <br /><img src="<{$xoops_imageurl}>spacer.gif" width="150" height="4">

            </td>
          </tr>

          <tr>
            <td id="centerCcolumn" colspan="3" valign="top">

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

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

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

You can controll the position of center block with its weight is under 100 or not.

p.s. You can write it by Japanese.
Votes:1 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!