1
cschloeg
Table Problems (theme.html)
  • 2004/3/4 17:40

  • cschloeg

  • Just popping in

  • Posts: 7

  • Since: 2004/1/13


Hey guys,

Here's my issue, I wanted to make the whole theme page one table for astetic purposes. So for orginaztional purposes I just decided to rebuild the theme.html in my image (muhaha) but now when I view the page I get a blank page. I simply built the table I wanted then tried moving all of the XOOPS elements over.

I figure I must be missing something and am hoping you guys can help. Here's the theme.html file I have.

Quote:

<!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}>" />
<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}>" />
</head><body style="text-align:center;"><{$xoops_module_header}>
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>

<div style="width:800px; margin:0px auto; padding: 0px; topmargin: 0px; marginwidth: 0px; marginheight: 0px; text-align:left;border:2px none;">
<table border="0" cellspacing="0" cellpadding="0">
<tr id="header">
<td id="headerlogo" colspan="3"><img src="http://www.silvertidestreet.com/mem/themes/silvertide/headers/rotate.php" width="800" height="80" alt="Header"></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td id="leftcolumn" align="left" width="170px">
<!-- Start left blocks loop -->
<span class="blockTitle"><{foreach item=block from=$xoops_lblocks}> <{include
file="default/theme_blockleft.html"}> <{/foreach}> </span>
<!-- End left blocks loop -->
</td>
<td id ="centercolumn" bgcolor="#000000">
<td id="centercolumn" bgcolor="#000000">
<!-- 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}> <{include file="default/theme_blockcenter_c.html"}>
<{/foreach}>
<!-- End center-center blocks loop -->
</td>
</tr>
<tr>
<td id="centerLcolumn">
<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}> <{include file="default/theme_blockcenter_l.html"}>
<{/foreach}>
<!-- End center-left blocks loop -->
</td>
<td id="centerRcolumn">
<!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}> <{include file="default/theme_blockcenter_r.html"}>
<{/foreach}>
<!-- End center-right blocks loop -->
</td>
</tr>
</table>
</td>
<!-- START OF RIGHT COLUMN -->
<div id="content"> <{$xoops_contents}> </div>
<{if $xoops_showrblock == 1}>

<td id="rightcolumn" bgcolor="#000000">
<!-- Start right blocks loop -->
<{foreach item=block from=$xoops_rblocks}> <{include file="default/theme_blockright.html"}>
<{/foreach}>
<!-- End right blocks loop -->
<{/if}></table>

</div>
</body>
</html>



When I "view source" on it I notice that all of the headers are missing up to where the javascript kicks in if that helps.


Thanks,
Chris

2
studioC
Re: Table Problems (theme.html)
  • 2004/3/4 18:58

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


hello..

view source <img src?????file is a php script !


<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>

should be between your <head></head> tags


greetings
michael

3
cschloeg
Re: Table Problems (theme.html)
  • 2004/3/4 19:19

  • cschloeg

  • Just popping in

  • Posts: 7

  • Since: 2004/1/13


Fixed that, no difference.

When I try to visit the site the source it outputs to the browser is below. It has to be file specific because if I replace it with the last version of my theme.html it works fine. The "<img src=...php" is a rotating header script which had worked perfectly fine with no interferences.

Quote:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
<BODY></BODY></HTML>


So now the theme.html I'm working with is as follows (with the javascript changes:

Quote:

<!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}>" />
<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}>" />
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>
</head><body style="text-align:center;"><{$xoops_module_header}>

<div style="width:800px; margin:0px auto; padding: 0px; topmargin: 0px; marginwidth: 0px; marginheight: 0px; text-align:left;border:2px none;">
<table border="0" cellspacing="0" cellpadding="0">
<tr id="header">
<td id="headerlogo" colspan="3"><img src="http://www.silvertidestreet.com/mem/themes/silvertide/headers/rotate.php" width="800" height="80" alt="Header"></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td id="leftcolumn" align="left" width="170px">
<!-- Start left blocks loop -->
<span class="blockTitle"><{foreach item=block from=$xoops_lblocks}> <{include
file="default/theme_blockleft.html"}> <{/foreach}> </span>
<!-- End left blocks loop -->
</td>
<td id ="centercolumn" bgcolor="#000000">
<!-- 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}> <{include file="default/theme_blockcenter_c.html"}>
<{/foreach}>
<!-- End center-center blocks loop -->
</td>
</tr>
<tr>
<td id="centerLcolumn">
<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}> <{include file="default/theme_blockcenter_l.html"}>
<{/foreach}>
<!-- End center-left blocks loop -->
</td>
<td id="centerRcolumn">
<!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}> <{include file="default/theme_blockcenter_r.html"}>
<{/foreach}>
<!-- End center-right blocks loop -->
</td>
</tr>
</table>
</td>
<!-- START OF RIGHT COLUMN -->
<div id="content"> <{$xoops_contents}> </div>
<{if $xoops_showrblock == 1}>

<td id="rightcolumn" bgcolor="#000000">
<!-- Start right blocks loop -->
<{foreach item=block from=$xoops_rblocks}> <{include file="default/theme_blockright.html"}>
<{/foreach}>
<!-- End right blocks loop -->
<{/if}></table>

</div>
</body>
</html>



Any help is appreciated.
Peace,
Chris

4
tjnemez
Re: Table Problems (theme.html)
  • 2004/3/4 21:01

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


hey chris,

in all my themes i have made i use the following:

<?xml version="1.0" encoding="iso-8859-1"?>
<!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=iso-8859-1" />
<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}>" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<{$xoops_module_header}>
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>

now the body tag, then div or table tags

the above works for me, you can see the head tag is diff in mine.


5
tjnemez
Re: Table Problems (theme.html)
  • 2004/3/4 21:22

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


hey chris,

one other thing regarding XOOPS content:

<!-- End center-right blocks loop -->
</td>
</tr>
</table>
</td>
<!-- START OF RIGHT COLUMN -->
<div id="content"> <{$xoops_contents}> </div>
<{if $xoops_showrblock == 1}>

your "content" div should follow the table tag:

<!-- End center-right blocks loop -->
</td>
</tr>
</table>
<div id="content"> <{$xoops_contents}> </div>
</td>
<!-- START OF RIGHT COLUMN -->
<{if $xoops_showrblock == 1}>



Login

Who's Online

132 user(s) are online (79 user(s) are browsing Support Forums)


Members: 0


Guests: 132


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