1
melsen
Center blocks doesn't expand out to full width?
  • 2006/3/3 13:00

  • melsen

  • Just popping in

  • Posts: 97

  • Since: 2003/6/22


This seems rather odd, because if I for instance only add blocks in the left side.. the it expands all the way to the right... but if I only add blocks to the right side.. it doesn't expand out to the left?!?!

Checkhttp://renegade.insane-asylum.dk/modules/ipboard/ for an example....

Can anyone explain where I correct this?
Allan Melsen
[size=x-small]Founder of R.I.A.[/size]

Renegade Insane Asylum

2
Quest
Re: Center blocks doesn't expand out to full width?
  • 2006/3/3 13:24

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


I had a similar problem once. What I discovered was I needed to add an "if" in my theme for the left blocks otherwise my coding was permanently fixing the left column because in actuality that is what I told it to do.
What I did was add the below just after the <tr> of the the left blocks table:
<!-- Display left blocks start-->
<{if $xoops_showlblock == 1}>
Then closed the "if" just after the:

<!-- End left blocks loop -->
</td>
<{/if}>

In your case I think if you do this it may work for you:

(FROM YOUR THEME)
<tr>
<TD vAlign=top width=100%>
<TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
<TR>
<!-- Display left blocks start-->
<{if $xoops_showlblock == 1}>

<TD valign="top" width="180"><br /><{foreach item=block from=$xoops_lblocks}>
<{include file="378xps/theme_blockleft.html"}>
<{/foreach}>
<!-- End left blocks loop -->
</TD>
<{/if}>

You may have to play around with it a little bit because I couldn't quite figure out all your theme coding.

Quest

Login

Who's Online

150 user(s) are online (77 user(s) are browsing Support Forums)


Members: 0


Guests: 150


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