1
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!



2
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?



3
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.



4
Ingemar
Re: center blocks order
  • 2004/5/19 6:20

  • Ingemar

  • Just popping in

  • Posts: 6

  • Since: 2004/5/18


Oke ....

I installed and configured spotlight, I configured it to stack items (not 2 columns), and no image. Yet it leaves half of the column empty where the image should be, regardless of an image size or wether if an image is choosen or not.

I even created an empty image (size 1x1), uploaded and used that. In configuration I specified an image size of 1x1 or 0x0 all to no avail.

I do not want to use an image and I want the news item to be displayed complete (not just the first few lines) and it should use the full width of space available.

The item is placed center-center.

Is this at all possible?

Again, thanx for any help,
Ingemar.



5
Ingemar
Re: center blocks order
  • 2004/5/19 5:05

  • Ingemar

  • Just popping in

  • Posts: 6

  • Since: 2004/5/18


Muchos gracias amigo!

I'm gonna try out both of your suggestions.

Ingemar.



6
Ingemar
Re: center blocks order
  • 2004/5/18 20:26

  • Ingemar

  • Just popping in

  • Posts: 6

  • Since: 2004/5/18


Interestingly enough I'm running into the same problem as ragsman, but looking in theme.hmtl doesn't really help me.

I got news setup as home and add blocks to go along. But I want news to be displayed first. In blocks I can set weight to order, but it doesn't include the news item.

Looking in theme.html I see tables for different items, but I don't see anything for news.

As far as my understanding goes about html/php first the headers are displayed, it's basically the menu on the left, then center items, then center-left & right and the footer.

If you want me to quote the whole theme.html file I will, just let me know but I'm not sure if the problem is in there.

[rambling_mode]
Why isn't there a block that simply quotes 1 choosen news item or the latest one? It only gives links to news items posted....
[/rambling_mode]

I would appreciate any help,
Ingemar.




TopTop



Login

Who's Online

117 user(s) are online (69 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