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?

=-=-=-=-=-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<head>
<meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<meta name="robots" content="<{$xoops_meta_robots}>" />
<meta name="keywords" content="<{$xoops_meta_keywords}>" />
<meta name="description" content="<{$xoops_meta_description}>" />
<meta name="rating" content="<{$xoops_meta_rating}>" />
<meta name="author" content="<{$xoops_meta_author}>" />
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<meta name="generator" content="XOOPS" />
<title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
<!-- RMV: added module header -->
<{$xoops_module_header}>
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>
</head>
<body>
<!-- Start Header -->

<table class="zaja" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td><table cellspacing="0">
<tr id="header">
<td colspan="3" id="headerbanner"><table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td id="headerbanner1"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="266" id="headerbanner1"><img src="<{$xoops_url}>/themes/Zaja_Blue/hh_ekipa.gif" /></td>
<td id="headerbanner"> <div align="center"><{$xoops_banner}></div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="headerbar"> &nbsp;&nbsp;<{if $xoops_isuser}> Hey <a href="<{$xoops_url}>/user.php"><{$xoops_uname}></a>&nbsp;&nbsp;&nbsp;<a href="<{$xoops_url}>/user.php">your
account </a>&nbsp; <{else}> <a href="<{$xoops_url}>/register.php">Register
now</a> on My Site! <{/if}></span> <span class="right">
<{if $xoops_isuser}> <a href="<{$xoops_url}>/user.php?op=logout"></a>
<{else}> &nbsp;&nbsp;&nbsp;<a href="<{$xoops_url}>/user.php">Login</a>
<{/if}>
</td>
<td id="headerbar_vrijeme"> <span id="clock"></span>
<script language="JavaScript" type="text/javascript" src="<{$xoops_url}>/themes/Zaja_Blue/clock.js">
</script> </td>
<td id="headerbar">
<form action="<{$xoops_url}>/search.php" method="post">
<div align="right">
<input type="text" class="input" name="query" size="10" />
<input type="hidden" name="action" value="results" />
<input type="submit" class="button" value="Search" />
</div>
</form>

</td>
</tr>
</table>

<table cellspacing="0">
<tr>
<td id="leftcolumn">
<!-- Start left blocks loop -->
<{foreach item=block from=$xoops_lblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<img src="<{$xoops_imageurl}>160.gif" width="160" height="1" alt="" />
<{/foreach}>
<!-- End left blocks loop -->
<br>
<br />
</td>
<td id="centercolumn">

<!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}>

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

<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>
<!-- End center-center blocks loop -->

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

<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
</div>
<{/foreach}>
<!-- End center-left blocks loop -->

</td><td id="centerRcolumn">

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

</td>
</tr>
</table>

<{/if}>
<!-- End display center blocks -->

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

<{if $xoops_showrblock == 1}>

<td id="rightcolumn">
<!-- Start right blocks loop -->
<{foreach item=block from=$xoops_rblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<img src="<{$xoops_imageurl}>160.gif" width="160" height="1" alt="" />
<{/foreach}>
<!-- End right blocks loop -->
<br />
<br />
</td>

<{/if}>

</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="footerbar"><{$xoops_footer}> &nbsp;|&nbsp;
<!-- Webmaster, dont remove this text. It denied by license! -->
Design by <a href="http://www.7dana.com" target="_blank">7dana.com</a>
<!--End "design by" text! --></td>
</tr>
</table>
</td>
</tr>
</table>

</body>
</html>
=-=-=-=-=-=-

I appreciate anyone's help,
Ingemar.

12
Mithrandir
Re: center blocks order

<td id="centercolumn">

<!-- 
Display center blocks if any -->
<{if 
$xoops_showcblock == 1}>

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

<!-- 
Start center-center blocks loop -->
<{foreach 
item=block from=$xoops_ccblocks}>
<
div class="blockTitle"><{$block.title}></div>
<
div class="blockContent"><{$block.content}></div>
<{/foreach}>
<!-- 
End center-center blocks loop -->

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

<!-- 
Start center-left blocks loop -->
<{foreach 
item=block from=$xoops_clblocks}>
<
div class="blockTitle"><{$block.title}></div>
<
div class="blockContent"><{$block.content}></div>
</
div>
<{/foreach}>
<!-- 
End center-left blocks loop -->

</
td><td id="centerRcolumn">

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

</
td>
</
tr>
</
table>

<{/if}>
<!-- 
End display center blocks -->

<
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
</tr>
<tr>
below/above the code blocks, you want to position the main content over. Keep the <tr> 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

117 user(s) are online (60 user(s) are browsing Support Forums)


Members: 0


Guests: 117


more...

Donat-O-Meter

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

Latest GitHub Commits