1
teedee
I really am having a bad block day !
  • 2005/4/3 18:48

  • teedee

  • Just popping in

  • Posts: 11

  • Since: 2005/4/1 1


HI,

How on earth can I get a block to always appear at the bottom of a page ? I am using modules such as calenders, directories etc but my block that is meant to be at the bottom of the page appears above them.

I have set the block weight serveral times from 0 to 99 and that doesn't make any difference.

I really need a block visible on all pages that is at the bottom in the center.

2
dickinsd
Re: I really am having a bad block day !
  • 2005/4/3 20:30

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


I know what you mean, it is really annoying, this is something I have been planning on getting round to sorting on my own site, but never seem to get round to tackling it.

Anyways, I think if you look at your theme.html file you will see that your problem is in this file:

Your theme.html file will contain something like this:
[b]<td id="centercolumn"
          
          <{if 
$xoops_showcblock == 1}> <table class="sadrzaj" cellspacing="0">
            <
tr
              <
td id="centerCcolumn" colspan="2"
                
                <{foreach 
item=block from=$xoops_ccblocks}> <table align="center" cellpadding="0" cellspacing="2">
                  <
tr
                    <
td> <div class="blockTitle"><{$block.title}>div>
                      <
div class="blockContent"><{$block.content}>div>td>
                  tr>
                table>
                <{/foreach}> 
                
              td>[/b]
            tr>
            <
tr
              <
td id="centerLcolumn"
                
                <{foreach 
item=block from=$xoops_clblocks}> <table class="blok" align="center" cellpadding="3" cellspacing="2">
                  <
tr
                    <
td> <div class="blockTitle"><{$block.title}>div>
                      <
div class="blockContent"><{$block.content}>div>td>
                  tr>
                table>
                <{/foreach}> 
                
              td>
              <
td id="centerRcolumn"
                
                <{foreach 
item=block from=$xoops_crblocks}> <table class="blok" align="center" cellpadding="3" cellspacing="2">
                  <
tr
                    <
td> <div class="blockTitle"><{$block.title}>div>
                      <
div class="blockContent"><{$block.content}>div>td>
                  tr>
                table>
                <{/foreach}> 
                
              td>
            tr>
          table>
          <{/if}> 
          
          [
b]<div id="content"> <{$xoops_contents}> div>[/b]
          <
br /> <br /> <br /> td>
The problem (I think) is that you call your center blocks before you call the page content:
<{$xoops_contents}>


Like I say, this is something I have never got round to trying to fix, but I am pretty sure you just need to call the content before you call the center blocks.

I have not included my complete theme.html file as there is a good chance it will be different to yours anyway, however the blocks and content will be called the same way in all pretty much all templates so you just need to identify the areas that I have made Bold in the above code.

You will have to let me know if you get it sorted.

Dave

EDIT: upon searching for a different problem, I have found this page which kinda says what I just said but in a much sorter way
https://xoops.org/modules/smartfaq/faq.php?faqid=447

3
dickinsd
Re: I really am having a bad block day !
  • 2005/4/3 20:33

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


By the way I think you will need to remember to set this:
Quote:
Update module template .html files from themes/your theme/templates directory?

If this option is enabled, module template .html files will be updated automatically if there are newer files under the themes/your theme/templates directory for the current theme. This should be turned off once the site goes public.
to Yes in the System Administration > System > Preferences if you make changes to your theme.html and want to see those changes straight away.

Dave

Login

Who's Online

165 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 165


more...

Donat-O-Meter

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

Latest GitHub Commits