xoops forums

Anonymous

Posted on: 2008/11/9 13:16
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#1

centre-left & centre-right blocks not taking style

Hi,

I've come across a few themes in the last week or so where blocks placed in the centre-left or centre-right positions don't take the theme's style.

For example, I have two blocks placed in the centre-right position, one below the other. The uppermost block takes the theme's style correctly whereas the one below it doesn't take any style at all. See my comment/screenshot for the "psair" theme as an example. Let me stress, this theme isn't the only one and themes for other designers do the same thing.

They seems to be the more "complicated" themes using "xo-cancas" type code rather than an old-fashioned theme.html file.

Asny ideas as to what code or class definition(s) are missing?

Thanks everyone.

sailjapan

Moderator
Posted on: 2008/11/9 22:00
sailjapan
sailjapan (Show more)
Moderator
Posts: 1672
Since: 2005/11/16
#2

Re: centre-left & centre-right blocks not taking style

I've had this happen in some themes too. Interested to see what fixes come up here.
Never let a man who does not believe something can be done, talk to a man that is doing it.

ghia

Community Support Member
Posted on: 2008/11/10 5:03
ghia
ghia (Show more)
Community Support Member
Posts: 4946
Since: 2008/7/3 1
#3

Re: centre-left & centre-right blocks not taking style

Quote:
Asny ideas as to what code or class definition(s) are missing?
Can it be seen live somewhere?

Anonymous

Posted on: 2008/11/10 5:42
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#4

Re: centre-left & centre-right blocks not taking style

You have PM

ghia

Community Support Member
Posted on: 2008/11/10 6:48
ghia
ghia (Show more)
Community Support Member
Posts: 4946
Since: 2008/7/3 1
#5

Re: centre-left & centre-right blocks not taking style

This shows the nesting of the blocks in their different page sections (eg top center left, top center right, ..)
<td id="xo-page">
 <
div id="xo-page-topblocks" class="xo-blockszone-xo-clrpageblocks">
  <
div id="xo-page-topcenterblocks" class="xo-blockszone">
   
// HELPFUL NOTICE!!
   // Welcome
  
</div>
  <
div id="xo-page-topleftblocks" class="xo-blockszone">
   
// Latest News
  
</div>
  <
div id="xo-page-toprightblocks" class="xo-blockszone">
   
// Recently Updated Information block
  
</div>
  <
div class="xo-block smartsection">
   <
div class="xo-blocktitle">Most Viewed Information (Hits)
   </
div>
   <
div class="xo-blockcontent">
   </
div>
  </
div>
 </
div>
 <
div id="xo-page-bottomblocks" class="xo-blockszone-xo-clrpageblocks">
  <
div id="xo-page-bottomcenterblocks" class="xo-blockszone">
   <
div class="xo-block xcgal">
   </
div>
   <
div class="xo-block wiwimod">
   </
div>
   <
div class="xo-block newbb">
   </
div>
   <
div class="xo-block system">
   </
div>
  </
div>
 </
div>
</
td>
Apparently the 'Most Viewed Information (Hits)' does not belong to any of them, which could indicate a problem in the loop of summing up the blocks in their sections. It is a 'top block', but not belonging to 'top center center' or 'top left center' or 'top right center'.
Which section was it configured to?

Anonymous

Posted on: 2008/11/10 7:16
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#6

Re: centre-left & centre-right blocks not taking style

top centre right, below the "recently updated information" block.

Not a xoops/core problem as it's fine on my "live" site (see sig).

ghia

Community Support Member
Posted on: 2008/11/10 8:04
ghia
ghia (Show more)
Community Support Member
Posts: 4946
Since: 2008/7/3 1
#7

Re: centre-left & centre-right blocks not taking style

No, it is somewhere in theme.html and the used smarty scripts and/or included blocks. Is the theme maybe imposing, that there can be only 1 top-left or top-right block?

One workaround could be to assign the same css rules from xo-page-topcenterblocks to xo-page-topblocks.