1
burfodus
blocks dont display when left column is missing
  • 2009/11/19 13:49

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


Hi guys and gals.

Im creating a new theme for one of my sites, and ill be offering it up to the XOOPS community once finished as i think it looks quite good. however begun by creating the page wihtout xoops, and im now trying to add the content.

its almost working, i worked backwards by placing my divs into a different theme above and below the content code, however my theme is best suited for no left column and when i switch off all the left columns i get nothing. (no content).

I dont fully understand all of the XOOPS template stuff as im pretty much a beginner, but this is the code thats displaying teh content, and it seems ok to me so can someone please shed some light on why i get nothing when there are no blocks in teh left column.

thanks.steve
<table cellspacing="0" id="Main" align="center"> <tr> <{if $xoops_showlblock}> <td id="leftcolumn"> <{foreach item=block from=$xoBlocks.canvas_left}> <{includeq file="$theme_name/blocks-col-l.html"}> <{/foreach}> </td> <{/if}> <td id="centercolumn"> <{if $xoBlocks.page_topleft or $xoBlocks.page_topcenter or $xoBlocks.page_topright}> <table cellspacing="0" class="centercol"> <tr> <td id="centerCcolumn" colspan="2"> <{foreach item=block from=$xoBlocks.page_topcenter}> <{includeq file="$theme_name/blocks-c.html"}><{/foreach}> </td> </tr> <tr> <td id="centerLcolumn"> <{foreach item=block from=$xoBlocks.page_topleft}> <{includeq file="$theme_name/blocks-c.html"}><{/foreach}> </td> <td id="centerRcolumn"> <{foreach item=block from=$xoBlocks.page_topright}> <{includeq file="$theme_name/blocks-c.html"}><{/foreach}> </td> </tr> </table> <{/if}> <div id="content"> <{$xoops_contents}> </div> <{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}> <table cellspacing="0" class="centercol"> <{if $xoBlocks.page_bottomcenter}> <tr> <td id="bottomCcolumn" colspan="2"><{foreach from=$xoBlocks.page_bottomcenter item=block}><{includeq file="$theme_name/blocks-c.html"}><{/foreach}></td> </tr> <{/if}> <{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright}> <tr> <td id="bottomLcolumn"><{foreach from=$xoBlocks.page_bottomleft item=block}><{includeq file="$theme_name/blocks-c.html"}><{/foreach}></td> <td id="bottomRcolumn"><{foreach from=$xoBlocks.page_bottomright item=block}><{includeq file="$theme_name/blocks-c.html"}><{/foreach}></td> </tr> <{/if}> </table> <{/if}> </td> <{if $xoops_showrblock}> <td id="rightcolumn"> <{foreach item=block from=$xoBlocks.canvas_right}> <{includeq file="$theme_name/blocks-col-r.html"}> <{/foreach}> </td> <{/if}> </tr> </table>


2
burfodus
Re: blocks dont display when left column is missing
  • 2009/11/21 13:14

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


well, i couldnt get it to work with a left column, but as i didnt want one, i proceeded with completing the design and just removed the left column all together.

if anyone would like the theme, i would be happy to send it to them, it can be viewed here www.endoforums.com however before publishing it to the themes database, i think someone with a little more xoopspertise will need to tidy it up a little.

regards
steve.

3
DonCurioso
Re: blocks dont display when left column is missing

burfodus,

check again your theme.html. Some " " missed, i feel this is the real problem

4
burfodus
Re: blocks dont display when left column is missing
  • 2009/11/22 10:08

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


OH, i will,

i didnt think the " " were that important, only when whats in them has a space.

i will go through and see if that helps.

like i said, im still a beginner when it comes to code.

cheers
steve.

Login

Username:
Password:

Lost Password? Register now!

Who's Online

71 user(s) are online (49 user(s) are browsing Support Forums)


Members: 0


Guests: 71


more...

Donat-O-Meter

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

Latest GitHub Commits