11
Ingemar
Re: center blocks order
  • 2004/5/19 10:30

  • Ingemar

  • Just popping in

  • Posts: 6

  • Since: 2004/5/18


I really can't figure out which block of text to shift up to have news displayed first.

I really like the way a news item is displayed (the format) so setting news to be shown on the front page is my preffered way to go. Could someone possibly help me with this code to display news on top?

=-=-=-=-=-












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




<{$xoops_module_header}>


















  <{if $xoops_isuser}> Hey <{$xoops_uname}>   your
account
  <{else}> Register
now
on My Site! <{/if}>
<{if $xoops_isuser}>
<{else}>    Login
<{/if}>

















<{if $xoops_showrblock == 1}>



<{/if}>




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

<{$block.content}>



<{/foreach}>




<{/if}>



<{$xoops_contents}>



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

<{$block.content}>


<{/foreach}>











<{$xoops_footer}>  | 

Design by 7dana.com





=-=-=-=-=-=-

I appreciate anyone's help,
Ingemar.

12
Mithrandir
Re: center blocks order

<td id="centercolumn">


<{if 
$xoops_showcblock == 1}>

<
table cellspacing="0">
<
tr>
<
td id="centerCcolumn" colspan="2">


<{foreach 
item=block from=$xoops_ccblocks}>
<
div class="blockTitle"><{$block.title}>div>
<
div class="blockContent"><{$block.content}>div>
<{/foreach}>


td>
tr>
<
tr>
<
td id="centerLcolumn">


<{foreach 
item=block from=$xoops_clblocks}>
<
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 class="blockTitle"><{$block.title}>div>
<
div class="blockContent"><{$block.content}>div>
<
div class="blockContent"><{$block.content}>div>

div>
<{/foreach}>


td>
tr>
table>

<{/if}>


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

This is the important stuff for the center column.

You should move the
<div id="content">
<{
$xoops_contents}>
div>

in between the


below/above the code blocks, you want to position the main content over. Keep the section containing the "centerLcolumn" and "centerRcolumn" together, though, as you will otherwise break the layout, but you can place the sections with "centerCcolumn" and "content" wherever you want.

13
Ingemar
Re: center blocks order
  • 2004/5/19 12:28

  • Ingemar

  • Just popping in

  • Posts: 6

  • Since: 2004/5/18


Thanx Mithrandir for your help.

I'm sorry to say that it's not working.

It appears that the theme.html is not being used. I was moving the block around and it didn't do anything. I got pissed, put the the word 'f**k' in there overwriting everything else, saved it and nothing happened. Site was still working.

I'm using the Zaja_Blue theme and I'm working on the theme.html file located in that directory.

I'm not getting on your nerves am I?

14
Mithrandir
Re: center blocks order

yes, when you are editing theme.html of a theme on the site, you need to enable the "Update module files from themes/yourtheme folder..." in system admin -> preferences -> general settings.

Once you are happy with it, turn the setting off again to gain performance.

My nerves? No, they are ok, but check TroubleShooting in the Wiki next time

15
Ingemar
Re: center blocks order
  • 2004/5/19 14:12

  • Ingemar

  • Just popping in

  • Posts: 6

  • Since: 2004/5/18


Thanx Mate!

You're da man!

Login

Who's Online

300 user(s) are online (223 user(s) are browsing Support Forums)


Members: 0


Guests: 300


more...

Donat-O-Meter

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

Latest GitHub Commits