1
BDW
How to make right blocks show only if theres content
  • 2007/1/25 11:23

  • BDW

  • Quite a regular

  • Posts: 280

  • Since: 2002/9/28


Does anyone know how i can make the right blocks show but only if there is content on the page.

2
Peekay
Re: How to make right blocks show only if theres content
  • 2007/1/25 12:00

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


If your theme.html has an entry like:
<{if $xoops_showrblock == 1}>

      <
td id="rightcolumn">
        
        <{foreach 
item=block from=$xoops_rblocks}>
          <{include 
file="default/theme_blockright.html"}>
        <{/foreach}>
        
      td>

      <{/if}>

the right column should only show when 'right' is selected for a block position.
A thread is for life. Not just for Christmas.

3
BDW
Re: How to make right blocks show only if theres content
  • 2007/1/26 10:34

  • BDW

  • Quite a regular

  • Posts: 280

  • Since: 2002/9/28


ha ha, I knew I should have been a little clearer with what i was trying to do. My Bad.

I was trying to be a little bit fancy with my theme design by putting the right blocks next to content and have the width at 300. But when I put them there it looked fine when there was content, but as soon as there was a page without content it didnt look very good.

But I have decided to ditch the idea for now and come up with a much easier one for my next theme which is almost finished and almost ready for beta testing.

Login

Who's Online

348 user(s) are online (251 user(s) are browsing Support Forums)


Members: 0


Guests: 348


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