1
WarDick
News Module Help
  • 2003/11/18 18:46

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


Need Help Controlling Display

I want to turn on Forum and Comment Block
No problem it works fine.
But it displays on top of the News Stories I want the News Stories to be on top.

Can anyone point the way?



2
ackbarr
Re: News Module Help

the way actually leads through your chosen theme. Depending on your theme the actual lines may be different, but the concept is the same.

I will use the default theme as an example. If you look in /themes/default/theme.html you'll find code that looks like this:

<{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}>


This whole section of code creates the center blocks on a given page. If you look a little further down you'll see:
<div id="content">
  <{
$xoops_contents}>
div>


This code displays the current page contents. So if you wanted the page content to display above your blocks, move the second block of code before the "".

3
WarDick
Re: News Module Help
  • 2003/11/18 19:29

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


YES THAT'S IT

Thank You very much!


4
milanov
Re: News Module Help
  • 2003/11/25 22:27

  • milanov

  • Just popping in

  • Posts: 10

  • Since: 2003/11/24


Okay, but this not works for me :)Hers's my code:

Quote:












<{$xoops_sitename}> - <{$xoops_pagetitle}>























<{if $xoops_showrblock == 1}>




<{foreach item=block from=$xoops_lblocks}>







 <{$block.title}>
<{$block.content}>


<{/foreach}>



<{if $xoops_showcblock == 1}>











<{foreach item=block from=$xoops_ccblocks}>







 <{$block.title}>
<{$block.content}>


<{/foreach}>




<{foreach item=block from=$xoops_clblocks}>







 <{$block.title}>
<{$block.content}>



<{/foreach}>





<{foreach item=block from=$xoops_crblocks}>







 <{$block.title}>
<{$block.content}>



<{/foreach}>




<{/if}>





<{$xoops_contents}>



<{foreach item=block from=$xoops_rblocks}>







 <{$block.title}>
<{$block.content}>



<{/foreach}>

<{/if}>
















I created two blocks, and the default module for the start page is "news", but news are at the bottom :)
So, how to chenge the code in my case, please explain

5
ackbarr
Re: News Module Help

The code for your theme is similar to the one presented above. Move this code:

<{if 
$xoops_showcblock == 1}> <br />
<
table class="block_table" align="center" cellspacing="0">
<
tr>
<
td width="100%" colspan="2">


<{foreach 
item=block from=$xoops_ccblocks}>
<
table class="cc_block_table" width="99%" align="center" cellpadding="5" cellspacing="1">
<
tr>
<
td width="148" class="cc_block_title">&nbsp;<{$block.title}>td>
tr>
<
tr>
<
td class="cc_block_content"><{$block.content}>td>
tr>
table><br />
<{/foreach}>

td>
tr>
<
tr>
<
td width="50%">


<{foreach 
item=block from=$xoops_clblocks}>
<
table class="cl_block_table" align="center" cellpadding="5" cellspacing="1">
<
tr>
<
td class="conter_block_title">&nbsp;<{$block.title}>td>
tr>
<
tr>
<
td class="conter_block_content"><{$block.content}>td>
tr>
table>
<
br />
<{/foreach}>


td><td width="50%">


<{foreach 
item=block from=$xoops_crblocks}>
<
table class="cr_block_table" align="center" cellpadding="5" cellspacing="1">
<
tr>
<
td class="conter_block_title">&nbsp;<{$block.title}>td>
tr>
<
tr>
<
td class="conter_block_content"><{$block.content}>td>
tr>
table>
<
br />
<{/foreach}>


td>
tr>
table>

<{/if}>

Below the code for your page contents:
<table class="content_table" align="center" >
<
tr><td class="conter_content"><{$xoops_contents}>td>tr>table>

6
milanov
Re: News Module Help
  • 2003/12/8 1:04

  • milanov

  • Just popping in

  • Posts: 10

  • Since: 2003/11/24


Now it's good :)
10x a lot!!!

Login

Who's Online

298 user(s) are online (182 user(s) are browsing Support Forums)


Members: 0


Guests: 298


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