1
Nick-
Center blocks and module content.
  • 2004/7/23 9:45

  • Nick-

  • Just popping in

  • Posts: 24

  • Since: 2004/7/23


Hey all,

I was wondering if I could make center blocks display below the module content. For example, I want to put an advertisement in a custom block at the bottom of my forums. I cannot find any way to do this through settings, is there something I am missing? I even tried setting the block's weight to 99, but to no avail.

If possible, I would like the BLOCK to go under the forum and not have to manually put code down there - this would make it much easier to update later on.

Any help? If not, I'm definitely adding this to my feature request post.

Thanks,
Nick

2
libervis
Re: Center blocks and module content.
  • 2004/9/18 23:45

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


This is important!!

Why hasn't anybody replied?

I also need center blocks to appear below module content like forums from the same reasons.

There must be a solution to this, right?!?

Thank you!
Daniel

3
sbkiller
Re: Center blocks and module content.
  • 2004/9/19 0:16

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


You have to edit the theme.html,

you have to move the block,

the weight is for inside of one block not for the whole things.

4
DonXoop
Re: Center blocks and module content.

Don't know why this particular one didn't get a reply but it might be that it was cross posted and answered in the other thread of the same question. Happens a lot.

This has to do with the theme. Have a search (I'm too tired to do it for you right now), I assume you already did and found this old post.... Try again and you'll find this has been asked many times. Shouldn't be difficult to fix.

5
libervis
Re: Center blocks and module content.
  • 2004/9/19 0:43

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Okay.. thank you.

I will search, but i wonder if i have to edit theme.html that would mean i'd have adsense all over the site displayed below the contents..

I'll search for it..

Daniel

6
libervis
Re: Center blocks and module content.
  • 2004/9/19 1:22

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Hello again..

I searched but couldn't find anything much helpful. It seems like this thread was simply missed or something.

Anyway.. i'd only like to know which theme.html to modify and how so that on my forums i can display adsense banner in block or without block below all forum contents.

Thank you very much.
Daniel

7
JackJ
Re: Center blocks and module content.
  • 2004/9/19 1:53

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Hint:

In your themes theme.html file look for this:

<div class="content">
<{$xoops_contents}>
</div>

This should be placed before the:

<!-- Start center-center blocks loop -->

You will probably need to play around with the tags to get it to fit right depending on your theme.

If you tell us which theme you are using might be able to assist further..

8
libervis
Re: Center blocks and module content.
  • 2004/9/19 2:24

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Thanks Jack.

I use 7dana-jane theme, modified, but the theme file is generally the same still. All that was modified is adding the horizontal menu above and modifying colors..

Here's how this part looks like:

<!-- Start center-center blocks loop -->
                <{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}> 
                <!-- 
End center-center blocks loop -->


Thank you


9
JackJ
Re: Center blocks and module content.
  • 2004/9/19 3:04

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Ok, look for this in theme.html:

<div id="content">
<{$xoops_contents}>
</div>

And move it here:



<td id="centercolumn">
<!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}> <table class="sadrzaj"

cellspacing="0">

<tr>

<td id="centerCcolumn" colspan="2">
<div id="content">
<{$xoops_contents}>
</div>
<br />
<!-- Start center-center blocks loop -->

10
libervis
Re: Center blocks and module content.
  • 2004/9/19 3:18

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Okay.. i did that. When you say move i suppose i copy and paste it and then delete the source, right?

Here's how it looks now, just in case :)

<td id="centercolumn">
          <!-- 
Display center blocks if any -->
          <{if 
$xoops_showcblock == 1}> <table class="sadrzaj" cellspacing="0">
            <
tr
              <
td id="centerCcolumn" colspan="2">
              <
div id="content"> <{$xoops_contents}> </div></tr></br>  
                <!-- 
Start center-center blocks loop -->


What's the next step.. where to put adsense code to display in forums below the contents?

Thank you very much.
Daniel

Login

Who's Online

212 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 212


more...

Donat-O-Meter

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

Latest GitHub Commits