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"
          
          
          <{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}> 
          
                
          <
br /> <br />          td>
        <
td id="centercolumn">

                                         

                                                 <{if 
$xoops_showcblock == 1}> <table class="sadrzaj" cellspacing="0">
            <
tr
              <
td id="centerCcolumn" colspan="2"
                
                <{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}> 


                
                                    
                                        
            <
tr
              <
td id="centerLcolumn"
                
                <{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}> 
                
              td>
              <
td id="centerRcolumn"
                
                <{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}> 
                
    
              td>
            tr>
              td>
            tr>
                        
          table>
          <{/if}> 
                    
                    
                     
                    
          
                    
                    
                     <
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"
          
          
          <{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}> 
          
                
          <
br /> <br />          td>
        <
td id="centercolumn">

                                         

                                                 <{if 
$xoops_showcblock == 1}> <table class="sadrzaj" cellspacing="0">
            <
tr
              <
td id="centerCcolumn" colspan="2"
                
            <
tr
              <
td id="centerLcolumn"
                
                <{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}> 
                
              td>
              <
td id="centerRcolumn"
                
                <{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}> 
                
    
              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}> 


                
                                    
                                        

                        
          table>
          <{/if}> 
                    
                    
                     
                    
          
                    
                    
                     <
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.




<{if $xoops_showcblock == 1}>












<{foreach item=block from=$xoops_ccblocks}>
<{include file="default/theme_blockcenter_c.html"}>
<{/foreach}>





<{foreach item=block from=$xoops_clblocks}>
<{include file="default/theme_blockcenter_l.html"}>
<{/foreach}>





<{foreach item=block from=$xoops_crblocks}>
<{include file="default/theme_blockcenter_r.html"}>
<{/foreach}>




<{/if}>


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.




<{if $xoops_showcblock == 1}>






Quote:







<{foreach item=block from=$xoops_clblocks}>
<{include file="default/theme_blockcenter_l.html"}>
<{/foreach}>





<{foreach item=block from=$xoops_crblocks}>
<{include file="default/theme_blockcenter_r.html"}>
<{/foreach}>





<{foreach item=block from=$xoops_ccblocks}>
<{include file="default/theme_blockcenter_c.html"}>
<{/foreach}>




<{/if}>

Login

Who's Online

332 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 332


more...

Donat-O-Meter

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

Latest GitHub Commits