1
kloy1334
Centre blocks won't display
  • 2004/4/18 20:41

  • kloy1334

  • Just popping in

  • Posts: 27

  • Since: 2004/3/20


My centre blocks won't display and I believe that the coding is correct. Which is below...

Quote:

<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="Microsoft FrontPage 5.0" />

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

<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 -->
<font face="Arial" size="2"><{$xoops_module_header}>
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>

<body bgcolor="#C0C0C0">

<center>

<table border="1" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="75%"
bgcolor="#FFFFFF">

<tr>
<td width="100%" colspan="3" height="50">
<font size="2">
<img border="0" src="<{$xoops_imageurl}>logo.gif"
align="left" hspace="3" vspace="3"></font></td>
</tr>

<tr>
<td align="right" colspan="3" background="<{$xoops_imageurl}>top.jpg" class="vrijeme"><span id="clock"></span> <script language="JavaScript" type="text/javascript" src="<{$xoops_url}>/themes/wiredblog3/clock.js">
</script> &nbsp;</td></tr>

<tr>
<td id="leftcolumn" width="25%" bgcolor="#E1E7F2"
align="left" valign="top" bordercolorlight="#FFFFFF">
<font size="2">
<!-- Start left blocks loop -->
</font> <font face="Arial" size="2"> <{foreach
item=block from=$xoops_lblocks}>
<!-- End left blocks loop -->
<br>
<{$block.title}> <{$block.content}><{/foreach}>
<!-- End left blocks loop -->
</td>

<td id="centercolumn" width="57%" bgcolor="#FFFFFF" align="left" valign="top" bordercolorlight="#FFFFFF">
<!-- Display centre blocks if any -->
<{if $xoops_showcblock == 1}> <table cellspacing="0">
<tr>
<td id="centerCcolumn" colspan="2">
<!-- Start center-centre blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<table align="center" cellpadding="0" cellspacing="2">
<tr>
<img src="<{xoops_themeurl}><{$block.title}>.jpg">
<td> <div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div></td>
</tr>
</table>
<{/foreach}>
<!-- End centre-centre blocks loop -->
</td>
</tr>
</td>
</tr>
</table>
<{/if}>
<!-- End display centre blocks -->
</td>
<td id="rightcolumn" width="25%" bgcolor="#F7F7F7" align="left" valign="top" bordercolorlight="#FFFFFF">
<font size="2">
<!-- Start right blocks loop -->
</font> <font face="Arial" size="2">
<{foreach item=block from=$xoops_rblocks}>
<!-- End right blocks loop -->
<br>
<{$block.title}> <{$block.content}><{/foreach}>
<!-- End right blocks loop -->
</td>
</tr>

<tr>
<td width="100%" colspan="3"
background="<{$xoops_imageurl}>top.jpg" height="20">
<font face="Arial" style="font-size: 8pt"
color="#FFFFFF">Copyright © 2004
Wired<b>Blog</b>. All rights reserved.</font></td>
</tr>

</table>
</center>
</div>

2
CBlue
Re: Centre blocks won't display

Have you gone to blocks admin and checked off the center blocks you want to show up? Also, have you gone to groups admin and checked off the center blocks you want shown to each group?

3
Mithrandir
Re: Centre blocks won't display

<td id="centercolumn" width="57%" bgcolor="#FFFFFF" align="left" valign="top" bordercolorlight="#FFFFFF">
<!-- Display centre blocks if any -->
<{if $xoops_showcblock == 1}>
<table cellspacing="0">
<tr>
<td id="centerCcolumn" colspan="2">
<!-- Start center-centre blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<table align="center" cellpadding="0" cellspacing="2">
<tr>
<img src="<{xoops_themeurl}><{$block.title}>.jpg"> this is outside the <td> tag
<td> <div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div></td>
</tr>
</table>
<{/foreach}>
<!-- End centre-centre blocks loop -->
</td>
</tr>
</td></td> and </tr> should go (I think)
</tr>
</table>
<{/if}>
<!-- End display centre blocks -->
</td>



------------------
If you are not getting ANY output, since I don't know if it is a custom made block or not, I would say that it is possible that the block content is empty.
Blocks without content are not displayed at all.

4
kloy1334
Re: Centre blocks won't display
  • 2004/4/18 21:47

  • kloy1334

  • Just popping in

  • Posts: 27

  • Since: 2004/3/20


Removing those tags caused a PHP debug error to show up for me.

Hmm.. everything works fine with 7dana's theme, but not here. And it is not even custom.

See? my current theme works. www.wiredblog.com

5
kloy1334
Re: Centre blocks won't display
  • 2004/4/18 23:03

  • kloy1334

  • Just popping in

  • Posts: 27

  • Since: 2004/3/20


Hello?

6
cuckston
Re: Centre blocks won't display
  • 2004/4/19 12:06

  • cuckston

  • Quite a regular

  • Posts: 268

  • Since: 2004/1/19


Be patient, You can't jus bump your post after an hour and 20mins. Especially not at midnight. They'll respond when they have an answer for you.

7
kloy1334
Re: Centre blocks won't display
  • 2004/4/19 12:52

  • kloy1334

  • Just popping in

  • Posts: 27

  • Since: 2004/3/20


Sorry, it's just that, it wasn't midnight here :)

8
Mithrandir
Re: Centre blocks won't display

I am sorry to say this, but "this gives an error" is very close to the least informative and most useless information

Please post the error messages and the corresponding context of the error (i.e. where in the code is this error +/- a few lines)

9
kloy1334
Re: Centre blocks won't display
  • 2004/4/19 13:28

  • kloy1334

  • Just popping in

  • Posts: 27

  • Since: 2004/3/20


Actually, using my original HTML coding above, it displays NO errors. But! it doesn't display the centre blocks either.

And the above help, i.e. Remove </tr></td> is confusing. I do not know which tr and td's to remove.

Do you see anything wrong with the coding above? I can probably manage to fix if the above code is right [my code I meant]

10
Mithrandir
Re: Centre blocks won't display

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

one </td> and one </tr> too many

do you get anything on the screen? Is it blank? Can you see anything wrong when you view source? Is php debug on?

Login

Who's Online

209 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 209


more...

Donat-O-Meter

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

Latest GitHub Commits