1
yagiuda
Centerblock arrangement
  • 2006/1/7 18:03

  • yagiuda

  • Just popping in

  • Posts: 20

  • Since: 2004/10/11


I really like the kubrick theme compiled by kavaXtreme. I'm going to use it on my new site.
However, I have a question when it comes to customizing the layout.

In the centerblock of the top page, I would like to have:

Top: One centerblock-center static-content
Middle: (at the same row) A centerblock-left content and a centerblock-right content from a different module.
Bottom: A centerblock-center content from a module.

Is it possible to arrange the theme.html file so that I can get the layout I want? And how? (I'm afraid I'm quite a rookie when it comes to these things..) The file first loops the c-c, then the c-l and finally c-r.

I have not been able to split the centerblock-center content so that I can get the c-l and c-r in the middle. Either I get all c-center content on the top OR at the bottom.

I've read numerous posts relating to the centerblock arrangement, but none have as far as I can see, adressed this issue in the detail needed in order for me to understand(!)


Thanks


(I also posted this on kavaXtreme homepage)

2
Will_H
Re: Centerblock arrangement
  • 2006/1/7 18:50

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


***theme.html***

heres the original

<{if $kubrick_selector == FALSE}>
    <
div id="content" class="withsidebar">
      <!-- 
Display static content for module -->
      <{
$xoops_contents}>
      <!-- 
End display static content -->
      <!-- 
Display center blocks if any -->
      <{if 
$xoops_showcblock == 1}>
      <
table cellspacing="0">
        <
tr>
          <
td id="centerCcolumn" colspan="2">
            <!-- 
Begin center-center blocks loop -->
            <{foreach 
item=block from=$xoops_ccblocks}>
              <{include 
file="kubrick/theme_blockcenter_c.html"}>
            <{/foreach}>
            <!-- 
End center-center blocks loop -->
          </
td>
        </
tr>
        <
tr>
          <
td id="centerLcolumn">
            <!-- 
Begin center-left blocks loop -->
            <{foreach 
item=block from=$xoops_clblocks}>
              <{include 
file="kubrick/theme_blockcenter_l.html"}>
            <{/foreach}>
            <!-- 
End center-left blocks loop -->
          </
td>
          <
td id="centerRcolumn">
            <!-- 
Begin center-right blocks loop -->
            <{foreach 
item=block from=$xoops_crblocks}>
              <{include 
file="kubrick/theme_blockcenter_r.html"}>
            <{/foreach}>
            <!-- 
End center-right blocks loop -->
          </
td>
        </
tr>
      </
table>
      <{/if}>


change it to

<{if $kubrick_selector == FALSE}>
    <
div id="content" class="withsidebar">
      <!-- 
Display center blocks if any -->
      <{if 
$xoops_showcblock == 1}>
      <
table cellspacing="0">
        <
tr>
          <
td id="centerCcolumn" colspan="2">
            <!-- 
Begin center-center blocks loop -->
            <{foreach 
item=block from=$xoops_ccblocks}>
              <{include 
file="kubrick/theme_blockcenter_c.html"}>
            <{/foreach}>
            <!-- 
End center-center blocks loop -->
          </
td>
        </
tr>
        <
tr>
          <
td id="centerLcolumn">
            <!-- 
Begin center-left blocks loop -->
            <{foreach 
item=block from=$xoops_clblocks}>
              <{include 
file="kubrick/theme_blockcenter_l.html"}>
            <{/foreach}>
            <!-- 
End center-left blocks loop -->
          </
td>
          <
td id="centerRcolumn">
            <!-- 
Begin center-right blocks loop -->
            <{foreach 
item=block from=$xoops_crblocks}>
              <{include 
file="kubrick/theme_blockcenter_r.html"}>
            <{/foreach}>
            <!-- 
End center-right blocks loop -->
          </
td>
        </
tr>
            <!-- 
Display static content for module -->
          <{
$xoops_contents}>
          <!-- 
End display static content --> 
      </
table>
      <{/if}>

3
yagiuda
Re: Centerblock arrangement
  • 2006/1/7 21:04

  • yagiuda

  • Just popping in

  • Posts: 20

  • Since: 2004/10/11


Thanks Biteronboard. From what I can tell, your change in the theme.html file moves the static content for module at the bottom of the page instead of at the top.

I can see that this actually is a good answer to my question. But, it made me realise that my question was not quite correct.

At the top of my page, I have a custom block (not a module) located at Centerblock-center. Then, below that I have to the left, recent post of my blog, and to the right, latest CBB posts. Now, at the bottom - after this "two-column" row, I would like to place headlines from the XHLD module in the centerblock-center location.

Unlike my first post, I beleive that what I have described this time actually corresponds to the issue. Hope somebody are able to shed some light on this for me (possibly a BIG flashlight needed...)

Sorry for my fuzzy problem description.

4
Will_H
Re: Centerblock arrangement
  • 2006/1/7 21:25

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


actually i believe i misread your post. my apologies.

I have been trying to figure out a way to use <if> statements to split up <{xoops_content}>.

I dont see why it would be impossible to set variables by weight.

if its less than 500 display above... heavier display below.

Anyway I never asked ecause i wanted to see if i could get it working on my own.

But now its out there.

Login

Who's Online

214 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 214


more...

Donat-O-Meter

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

Latest GitHub Commits