Anonymous  
centre-left & centre-right blocks not taking style #1
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 sailjapan
  • Moderator
  • Moderator
  • Joined: 2005/11/16 6:27
  • From Osaka
  • Group: Registered Users
  • Posts: 1672
  • Posted on: 2008/11/9 22:00
Re: centre-left & centre-right blocks not taking style #2
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 ghia
  • Community Support Member
  • Community Support Member
  • Joined: 2008/7/3 15:19
  • From Belgium
  • Group: Registered Users
  • Posts: 4946
  • Posted on: 2008/11/10 5:03
Re: centre-left & centre-right blocks not taking style #3
Quote:
Asny ideas as to what code or class definition(s) are missing?
Can it be seen live somewhere?
Anonymous  
Re: centre-left & centre-right blocks not taking style #4
You have PM
ghia ghia
  • Community Support Member
  • Community Support Member
  • Joined: 2008/7/3 15:19
  • From Belgium
  • Group: Registered Users
  • Posts: 4946
  • Posted on: 2008/11/10 6:48
Re: centre-left & centre-right blocks not taking style #5
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  
Re: centre-left & centre-right blocks not taking style #6
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 ghia
  • Community Support Member
  • Community Support Member
  • Joined: 2008/7/3 15:19
  • From Belgium
  • Group: Registered Users
  • Posts: 4946
  • Posted on: 2008/11/10 8:04
Re: centre-left & centre-right blocks not taking style #7
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.
How to effectively post a question in the Xoops forums? - Read here...
Design by: XOOPS UI/UX Team