1
FlySwatter
Start page module w/custom block below?
  • 2004/7/23 20:51

  • FlySwatter

  • Just popping in

  • Posts: 71

  • Since: 2004/6/2 1


I have my start page module set as the FAQ. I have a cusom block "Welcome" that shows only on the TOP page and displays above the FAQ.

Tried everything I could think of but can't seem to place the custom block below the FAQ.

Is this possible?

2
tjnemez
Re: Start page module w/custom block below?
  • 2004/7/23 21:33

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


you may have to edit your theme.html, what theme are you using?

3
FlySwatter
Re: Start page module w/custom block below?
  • 2004/7/24 0:24

  • FlySwatter

  • Just popping in

  • Posts: 71

  • Since: 2004/6/2 1


Thanks tj.

phpkaox

4
ajaxbr
Re: Start page module w/custom block below?
  • 2004/7/24 2:54

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


You can see in your theme.html that blocks are rendered first, beggining at
and content comes after centerR and centerL blocks. So if all you want is to have contents before blocks, move things around and you're set.

But if you just want to have this particular block after the content, you can do it like this:
First, in center-center blocks, you don't render you FAQ block:

                  <{foreach 
item=block from=$xoops_ccblocks}>
                  <{if 
$block.title != "FAQ_BLOCK_NAME_HERE"}>
                  <
table cellspacing="1" cellpadding="5">
                    <
tr
                      <
td class="blockTitle">&nbsp;<{$block.title}>td>
                    tr>
                    <
tr>
                      <
td class="blockContent"><{$block.content}>td>
                    tr>
                  table>
                  <{/foreach}>
                  <{/if}>
                


Then, render it below contents:
<div id="content">
              <{
$xoops_contents}>
            div>
                
                  <{foreach 
item=block from=$xoops_ccblocks}>
                  <{if 
$block.title == "FAQ_BLOCK_NAME_HERE"}>
                  <
table cellspacing="1" cellpadding="5">
                    <
tr
                      <
td class="blockTitle">&nbsp;<{$block.title}>td>
                    tr>
                    <
tr>
                      <
td class="blockContent"><{$block.content}>td>
                    tr>
                  table>
                  <{/foreach}>
                  <{/if}>
                
          td>

I'm sure there's a better way to render a single block... I wish I knew it

5
FlySwatter
Re: Start page module w/custom block below?
  • 2004/7/24 13:02

  • FlySwatter

  • Just popping in

  • Posts: 71

  • Since: 2004/6/2 1


Thanks ajaxbr.

I tried Quote:
So if all you want is to have contents before blocks, move things around and you're set.


And that does exactly what I wanted.

I'm to sleepy to make out the rest but I'm beginning to get a handle on all this. I'll try it out later.


Thanks again.

6
jw716
Re: Start page module w/custom block below?
  • 2004/7/26 16:08

  • jw716

  • Just popping in

  • Posts: 64

  • Since: 2004/5/1 2


OK, I am stupid and can't even read the language in this theme.

This theme is blob_taste.
I would like to place may newbb recent post under "Articles" mod with a custom Welcome block at the top.
A little help. Please.


        <{if 
$xoops_showcblock == 1}>

        <
table cellspacing="0">
          <
tr>
          
            <
td id="centerCcolumn" colspan="2">
            <{foreach 
item=block from=$xoops_ccblocks}>
            <
div style="padding: 5px;">
            <
div class="blockTitle"><{$block.title}>div>
            <
div class="blockContent"><{$block.content}>div>
            div>
            <{/foreach}>
            td>
          
          tr>
          <
tr>

          
            <
td id="centerLcolumn">
            <{foreach 
item=block from=$xoops_clblocks}>
                <
div style="padding: 0px 0px 0px 8px;">
                <
div class="blockTitle"><{$block.title}>div>
                <
div class="blockContent"><{$block.content}>div>
                div>
            <{/foreach}>
            td>
          


          
            <
td id="centerRcolumn">
              <{foreach 
item=block from=$xoops_crblocks}>
                <
div style="padding: 0px 5px 0px 0px;">
                <
div class="blockTitle"><{$block.title}>div>
                <
div class="blockContent"><{$block.content}>div>
                div>
              <{/foreach}>
            td>
          
          tr>
        table>

        <{/if}>
        



Login

Who's Online

397 user(s) are online (327 user(s) are browsing Support Forums)


Members: 0


Guests: 397


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