1
rajaito
please a little help rearranging my theme
  • 2006/5/2 14:17

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


Imagine the x's as my center blocks.
center-center and center-left and center-right.
This is how the site currently looks:

XXXXXXXXXXXXX

XXXXXX XXXXXX


But I want it to look like this:


XXXXXX XXXXXX

XXXXXXXXXXXXX


I am having a hell of a time getting it to work. I am sure it is a simple placement thing and I have experimented a bunch, but I just can't seem to get it right. I was hoping if I posted the code here, someone might be able to help me switch it up. Please?


<table border="0" cellpadding="0" cellspacing="0" id="glavna">
        <
td id="leftcolumn"
          <!-- <
a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>images/logo_mali.jpg" alt="" /></a> -->
          <!-- 
Start left blocks loop -->
          <{foreach 
item=block from=$xoops_lblocks}> <div class="<{cycle values="blockTitle"}>"><{$block.title}></div>
          <
div class="blockContent"><{$block.content}></div>
          <
img src="<{$xoops_imageurl}>images/160.gif" width="170" height="1" alt="" />
          <{/foreach}> 
          <!-- 
End left blocks loop -->
                
          <
br /> <br />          </td>
        <
td id="centercolumn">

                                         <!-- 
Display center blocks if any -->

                                                 <{if 
$xoops_showcblock == 1}> <table class="sadrzaj" cellspacing="0">
            <
tr
              <
td id="centerCcolumn" colspan="2"
                <!-- 
Start center-center blocks loop -->
                <{foreach 
item=block from=$xoops_ccblocks}> <table align="center" cellpadding="0" cellspacing="2">
                  <
tr
                    <
td> <div class="blockTitle"><{$block.title}></div>
                      <
div class="blockContent"><{$block.content}></div></td>
                  </
tr>
                </
table>
                <{/foreach}> 


                <!-- 
End center-center blocks loop -->
                                    
                                        
            <
tr
              <
td id="centerLcolumn"
                <!-- 
Start center-left blocks loop -->
                <{foreach 
item=block from=$xoops_clblocks}> <table class="blok" align="center" cellpadding="3" cellspacing="2">
                  <
tr
                    <
td> <div class="blockTitle"><{$block.title}></div>
                      <
div class="blockContent"><{$block.content}></div></td>
                  </
tr>
                </
table>
                <{/foreach}> 
                <!-- 
End center-left blocks loop -->
              </
td>
              <
td id="centerRcolumn"
                <!-- 
Start center-right blocks loop -->
                <{foreach 
item=block from=$xoops_crblocks}> <table class="blok" align="center" cellpadding="3" cellspacing="2">
                  <
tr
                    <
td> <div class="blockTitle"><{$block.title}></div>
                      <
div class="blockContent"><{$block.content}></div></td>
                  </
tr>
                </
table>
                <{/foreach}> 
                <!-- 
End center-right blocks loop -->
    
              </
td>
            </
tr>
              </
td>
            </
tr>
                        
          </
table>
          <{/if}> 
                    
                    
                     
                    
          <!-- 
End display center blocks -->
                    
                    
                     <
div id="content"> <{$xoops_contents}> </div>
My xoops site: ElectroniCulture.net

2
gestroud
Re: please a little help rearranging my theme
  • 2006/5/2 14:41

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


what theme is that? what a nightmare

try this

<table border="0" cellpadding="0" cellspacing="0" id="glavna">
        <
td id="leftcolumn"
          <!-- <
a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>images/logo_mali.jpg" alt="" /></a> -->
          <!-- 
Start left blocks loop -->
          <{foreach 
item=block from=$xoops_lblocks}> <div class="<{cycle values="blockTitle"}>"><{$block.title}></div>
          <
div class="blockContent"><{$block.content}></div>
          <
img src="<{$xoops_imageurl}>images/160.gif" width="170" height="1" alt="" />
          <{/foreach}> 
          <!-- 
End left blocks loop -->
                
          <
br /> <br />          </td>
        <
td id="centercolumn">

                                         <!-- 
Display center blocks if any -->

                                                 <{if 
$xoops_showcblock == 1}> <table class="sadrzaj" cellspacing="0">
            <
tr
              <
td id="centerCcolumn" colspan="2"
                <!-- 
Start center-center blocks loop -->
            <
tr
              <
td id="centerLcolumn"
                <!-- 
Start center-left blocks loop -->
                <{foreach 
item=block from=$xoops_clblocks}> <table class="blok" align="center" cellpadding="3" cellspacing="2">
                  <
tr
                    <
td> <div class="blockTitle"><{$block.title}></div>
                      <
div class="blockContent"><{$block.content}></div></td>
                  </
tr>
                </
table>
                <{/foreach}> 
                <!-- 
End center-left blocks loop -->
              </
td>
              <
td id="centerRcolumn"
                <!-- 
Start center-right blocks loop -->
                <{foreach 
item=block from=$xoops_crblocks}> <table class="blok" align="center" cellpadding="3" cellspacing="2">
                  <
tr
                    <
td> <div class="blockTitle"><{$block.title}></div>
                      <
div class="blockContent"><{$block.content}></div></td>
                  </
tr>
                </
table>
                <{/foreach}> 
                <!-- 
End center-right blocks loop -->
    
              </
td>
            </
tr>
              </
td>
            </
tr>
                <{foreach 
item=block from=$xoops_ccblocks}> <table align="center" cellpadding="0" cellspacing="2">
                  <
tr
                    <
td> <div class="blockTitle"><{$block.title}></div>
                      <
div class="blockContent"><{$block.content}></div></td>
                  </
tr>
                </
table>
                <{/foreach}> 


                <!-- 
End center-center blocks loop -->
                                    
                                        

                        
          </
table>
          <{/if}> 
                    
                    
                     
                    
          <!-- 
End display center blocks -->
                    
                    
                     <
div id="content"> <{$xoops_contents}> </div>

3
Quest
Re: please a little help rearranging my theme
  • 2006/5/2 15:35

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


You will need to rearrange where the blocks coding are in your theme. The below is from the default theme.html and hopefully it will give you the idea of what you can do.

<td id="centercolumn">

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

<table cellspacing="0">
<tr>
<td id="centerCcolumn" colspan="2">

<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<{include file="default/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="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>

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

Move the center center blocks table row to below the center left and center right blocks row. To where I have placed the Quote below. That should work or get you started.

<td id="centercolumn">

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

<table cellspacing="0">
<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>
Quote:
<tr>
<td id="centerCcolumn" colspan="2">

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

</td>
</tr>

</table>

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

Login

Who's Online

164 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 164


more...

Donat-O-Meter

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

Latest GitHub Commits