Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $65.00
Net Balance: $61.80
Left to go: $38.20

Donations
studioC  ($25)May-17
Anonymous ($15)May-16
Anonymous ($25)May-4

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 2013 Abuse admin Amazon AntiHarvesting AntiMalUser AntiSpam API Beats billige black Blocks blue Bootstrap Captcha capture Casual cell Checksum Christmas chronolabs content Conversion Debauchosity demo docek download Dresses EC2 editor evden eve facebook floor free herre Honeypot Human IP IPInfoDB jQuery kantor klubovi lamps Language log logger Lucire Marquee mobile module modules Monster MyAlbum-p newbb news newsletter online PageRank Permissions pink Plugin portal Prevention profile project Protector Protocols publisher Rights rmcommon Room sale security Server site Smarty Spam stem Studio tag tags tdmcreate Theme themes TinyMCE upgrade userlog website Whitepaper WSDL XIPS xoops Xortify XPayment ZendFramework

New Users

Registering user

# 136027

Jinx

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post



#1 Posted on: 2004/7/23 15:51 Start page module w/custom block below?
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?

Top

FlySwatter
Just popping in
Just popping in
Joined:
2004/6/2 9:28
Group:
Registered Users
Posts: 71
(Show More) (Show Less)


#2 Posted on: 2004/7/23 16:33 Re: Start page module w/custom block below?
you may have to edit your theme.html, what theme are you using?

Top

tjnemez
Home away from home
Home away from home
Joined:
2003/9/21 12:05
From Manitoba
Group:
Registered Users
Posts: 1539
(Show More) (Show Less)


#3 Posted on: 2004/7/23 19:24 Re: Start page module w/custom block below?
Thanks tj.

phpkaox

Top

FlySwatter
Just popping in
Just popping in
Joined:
2004/6/2 9:28
Group:
Registered Users
Posts: 71
(Show More) (Show Less)


#4 Posted on: 2004/7/23 21:54 Re: Start page module w/custom block below?
You can see in your theme.html that blocks are rendered first, beggining at
<!-- Start center-center blocks loop -->
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:
<!-- Start center-center blocks loop -->
                  <{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}>
                <!-- 
End center-center blocks loop -->


Then, render it below contents:
<div id="content">
              <{
$xoops_contents}>
            </
div>
                <!-- 
Start FAQ block loop -->
                  <{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}>
                <!-- 
End FAQ blocks loop -->
          </
td>

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

Top

ajaxbr
Quite a regular
Quite a regular
Joined:
2003/10/25 14:44
From Brasilia, Brazil
Group:
Registered Users
Posts: 276
(Show More) (Show Less)


#5 Posted on: 2004/7/24 8:02 Re: Start page module w/custom block below?
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.

Top

FlySwatter
Just popping in
Just popping in
Joined:
2004/6/2 9:28
Group:
Registered Users
Posts: 71
(Show More) (Show Less)


#6 Posted on: 2004/7/26 11:08 Re: Start page module w/custom block below?
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.

<!-- Display center blocks if any -->
        <{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}>
        <!-- 
End display center blocks -->




Top

jw716
Just popping in
Just popping in
Joined:
2004/5/1 18:36
From Houston, TX
Group:
Registered Users
Posts: 64
(Show More) (Show Less)







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]