1
caek9
Blocks do not display when assaigned to display at the bottom
  • 2009/1/30 4:35

  • caek9

  • Friend of XOOPS

  • Posts: 35

  • Since: 2008/7/9 2


I've made a custom block that doesn't show up on the bottom. It will display when it set to anywhere else, left, right and top sides, but it doesn't display on the bottom. This goes for blocks off all types, even system blocks. Any idea what could be causing this? Could it have something to do with themes?

2
stefan88
Re: Blocks do not display when assaigned to display at the bottom
  • 2009/1/30 6:36

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

Check if code like this exists in your theme:



<{if 
$xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}>

<
table cellspacing="0">

<{if 
$xoBlocks.page_bottomcenter}>

<
tr>

<
td id="bottomCcolumn" colspan="2">

<{foreach 
from=$xoBlocks.page_bottomcenter item=block}>

<{include 
file="$theme_name/theme_blockcenter_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}>

<{include 
file="$theme_name/theme_blockcenter_l.html"}>

<{/foreach}>

td>

<
td id="bottomRcolumn">

<{foreach 
from=$xoBlocks.page_bottomright item=block}>

<{include 
file="$theme_name/theme_blockcenter_r.html"}>

<{/foreach}>

td>

tr>

<{/if}>

table>

<{/if}>



under ""

If not you are usig an old theme that does not support bottom position. You will need to edit your theme file and add this code.

..

3
caek9
Re: Blocks do not display when assaigned to display at the bottom
  • 2009/1/30 7:05

  • caek9

  • Friend of XOOPS

  • Posts: 35

  • Since: 2008/7/9 2


Well, you right about using an outdated theme. My theme file did not have the code for the bottom blocks, but even after pasting the code you gave me it still doesn't display. I noticed the other positions have a corresponding html file in my theme, such as theme_blockcenter_c.html. Do I need a file like this for the other positions?

4
stefan88
Re: Blocks do not display when assaigned to display at the bottom
  • 2009/1/30 12:09

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

after adding the code, you will have to clear the cache for change to take effect:

for XOOPS versions 2.0.XX: delete all files EXCEPT index.html in templates_c folder

for XOOPS versions 2.3.XX: delete all files EXCEPT index.html in xoops_data\caches\smarty_compile folder

..

5
caek9
Re: Blocks do not display when assaigned to display at the bottom
  • 2009/1/31 23:35

  • caek9

  • Friend of XOOPS

  • Posts: 35

  • Since: 2008/7/9 2


I tried that, is there anything else I need to do to get this to work?

6
stefan88
Re: Blocks do not display when assaigned to display at the bottom
  • 2009/2/1 23:28

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

can you post the ... part of your theme. The code I gave is from default theme and it may be little different.

Quote:
I tried that, is there anything else I need to do to get this to work?


no unless you have something like fastest cache hack. If you have it, you will have to clear that too.
..

7
caek9
Re: Blocks do not display when assaigned to display at the bottom
  • 2009/2/2 5:38

  • caek9

  • Friend of XOOPS

  • Posts: 35

  • Since: 2008/7/9 2


I'm just using a modified version of the default XOOPS theme from several versions ago, but here it is:

<body>   <table cellspacing="0">     <tr id="header">       <td id="headerlogo"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>logo.gif" width="150" height="80" alt="" />a>td>       <td id="headerbanner"><{$xoops_banner}>td>     tr>     <tr>       <td id="headerbar" colspan="2">&nbsp;td>     tr>   table>    <table cellspacing="0">     <tr>       <td id="leftcolumn">                  <{foreach item=block from=$xoops_lblocks}>           <{include file="default/theme_blockleft.html"}>         <{/foreach}>                 td>        <td id="centercolumn">                   <{if $xoops_showcblock == 1}>          <table cellspacing="0">           <tr>             <td id="centerCcolumn" colspan="2">                           <{foreach item=block from=$xoops_ccblocks}>               <{include file="default/theme_blockcenter_c.html"}>             <{/foreach}>                           td>           tr>           <tr>             <td id="centerLcolumn">                             <{foreach item=block from=$xoops_clblocks}>                 <{include file="default/theme_blockcenter_l.html"}>               <{/foreach}>                           td><td id="centerRcolumn">                             <{foreach item=block from=$xoops_crblocks}>                 <{include file="default/theme_blockcenter_r.html"}>               <{/foreach}>                           td>           tr>         table>          <{/if}>                   <div id="content">           <{$xoops_contents}>         div>       td>        <{if $xoops_showrblock == 1}>        <td id="rightcolumn">                  <{foreach item=block from=$xoops_rblocks}>           <{include file="default/theme_blockright.html"}>         <{/foreach}>             <{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}>  <table cellspacing="0">  <{if $xoBlocks.page_bottomcenter}>  <tr>  <td id="bottomCcolumn" colspan="2">  <{foreach from=$xoBlocks.page_bottomcenter item=block}>  <{include file="$theme_name/theme_blockcenter_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}>  <{include file="$theme_name/theme_blockcenter_l.html"}>  <{/foreach}>  td>  <td id="bottomRcolumn">  <{foreach from=$xoBlocks.page_bottomright item=block}>  <{include file="$theme_name/theme_blockcenter_r.html"}>  <{/foreach}>  td>  tr>  <{/if}>  table>  <{/if}>         td>        <{/if}>      tr>   table>    <table cellspacing="0">     <tr id="footerbar">       <td><a href="https://xoops.org/" target="_blank"><img src="<{$xoops_imageurl}>poweredby.gif" alt="" />a>td>     tr>   tablebodyhtml>



I appreciate you helping me out with this

Login

Who's Online

356 user(s) are online (279 user(s) are browsing Support Forums)


Members: 0


Guests: 356


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