Strange problem
Posted: Tue May 10, 2011 8:39 pm
Hello all.
Here is a strange problem. I made a web site on my Mac (using MAMP). Uplopaded it to the server and everything was swell. Then got a technical problem and had to reinstall ther whole site. My problem is that I cannot get the design to look like before. I tried copying the template from my mac (where is works fine), but when I upload to the server, the content comes after the footer. It looks fine in code, but doesnt work as it should. I simply cannot fine the error. Any help would be greatly appreciated.
Website address: http://ernaringoghelse.no
Here is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<__html>
{literal}
<__script__ type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22843993-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</__script>
{/literal}
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>{sitename} - {title}</title>
{metadata}
{stylesheet}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{literal}
<__script__ type="text/JavaScript">
<!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
var nw="auto",w=document.documentElement.clientWidth;
if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</__script>
<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
</style>
<![endif]-->
{/literal}
</head>
</__body>
<div id="outer">
<div id="upbg"></div>
<div id="inner">
<div id="header"<a href="http://ernaringoghelse.no/"><IMG SRC="/uploads/TerraFirma/logogreen.jpg" width="200" height="78"" border=0></a></div>
<div id="splash">{Showtime show='2'}</div>
<div id="menu">
{menu template='minimal_menu.tpl' number_of_levels='1'}
</div>
<div id="primarycontent">
<!-- primary content start --> {content}
<!-- primary content end -->
</div>
<div id="footer">
Ernæring og Helse, Strandgaten 223, 5004 Bergen<br><strong><span style="color: #ff6600; font-size: small;">Webdesign: Asbjørn Sundal</span></strong></div>
</div>
</div>
<__body>
</__html>
Here is a strange problem. I made a web site on my Mac (using MAMP). Uplopaded it to the server and everything was swell. Then got a technical problem and had to reinstall ther whole site. My problem is that I cannot get the design to look like before. I tried copying the template from my mac (where is works fine), but when I upload to the server, the content comes after the footer. It looks fine in code, but doesnt work as it should. I simply cannot fine the error. Any help would be greatly appreciated.
Website address: http://ernaringoghelse.no
Here is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<__html>
{literal}
<__script__ type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22843993-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</__script>
{/literal}
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>{sitename} - {title}</title>
{metadata}
{stylesheet}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{literal}
<__script__ type="text/JavaScript">
<!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
var nw="auto",w=document.documentElement.clientWidth;
if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</__script>
<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
</style>
<![endif]-->
{/literal}
</head>
</__body>
<div id="outer">
<div id="upbg"></div>
<div id="inner">
<div id="header"<a href="http://ernaringoghelse.no/"><IMG SRC="/uploads/TerraFirma/logogreen.jpg" width="200" height="78"" border=0></a></div>
<div id="splash">{Showtime show='2'}</div>
<div id="menu">
{menu template='minimal_menu.tpl' number_of_levels='1'}
</div>
<div id="primarycontent">
<!-- primary content start --> {content}
<!-- primary content end -->
</div>
<div id="footer">
Ernæring og Helse, Strandgaten 223, 5004 Bergen<br><strong><span style="color: #ff6600; font-size: small;">Webdesign: Asbjørn Sundal</span></strong></div>
</div>
</div>
<__body>
</__html>