Hi there,
Ive designed a header in html, which i want to be at the top of every page within whmcs, i tried to copy paste my code into the header.tpl, with the resault that my site got blank.
Can any one help?
Hi there,
Ive designed a header in html, which i want to be at the top of every page within whmcs, i tried to copy paste my code into the header.tpl, with the resault that my site got blank.
Can any one help?
What's your header code?
Sounds like there's an error. If you've any php you need to put {php} and {/php} tags around it.
Valcato Hosting - 8 years in the business
Heres my code:
Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>X12host.net: Web Hosting</title> <link type="text/css" rel="stylesheet" href="http://x12host.com/style.css"> <script type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <style type="text/css"> .style28 { color: #040404; } .style27 { color: #000000; } .style29 { color: #FFFFFF; background-color: #CC0000; } .style30 { color: #000000; font-size: medium; } .style31 { text-decoration: underline; } </style> </head> <body onLoad="MM_preloadImages('http://x12host.com/images/p2_sel.jpg','http://x12host.com/images/p3_sel.jpg','http://x12host.com/images/p4_sel.jpg','http://x12host.com/images/p5_sel.jpg','http://x12host.com/images/p6_sel.jpg')"> <table width="766" align="center"> <tr> <td><table> <tr> </tr> </table> </form> </td> </tr> </table></td> </tr> <tr> <td><table> <tr> <td class="hd_left"> <table> <tr> <td width="223"><a href="#"><img src="http://x12host.com/images/mp_logo.jpg" alt=""></a></td> <td><a href="#"><img src="http://x12host.com/images/mp_1.jpg" style="margin-top:7px;" alt=""></a><br> <a href="#"><img src="http://x12host.com/images/mp_2.jpg" alt=""></a><br> <a href="#"><img src="http://x12host.com/images/mp_3.jpg" style="margin-bottom:14px;" alt=""></a><br> <a href="#"><img src="http://x12host.com/images/mp_4.jpg" alt=""></a><img src="http://x12host.com/images/spacer.gif" width="2" height="1" alt=""><a href="#"><img src="http://x12host.com/images/mp_5.jpg" alt=""></a></td> </tr> </table></td> <td class="hd_right"> </td> </tr> </table></td> </tr> <tr> <td style="height:36px;" class="menu"><img src="http://x12host.com/images/p1_sel.jpg" alt=""><a href="http://x12host.com/index-1.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('http://x12host.com/Image11','','http://x12host.com/images/p2_sel.jpg',1)"><img src="http://x12host.com/images/p2.jpg" alt="" name="http://x12host.com/Image11" width="116" height="35"></a><a href="http://x12host.com/index-2.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('http://x12host.com/Image12','','http://x12host.com/images/p3_sel.jpg',1)"><img src="http://x12host.com/images/p3.jpg" alt="" name="http://x12host.com/Image12" width="116" height="35"></a><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('http://x12host.com/Image13','','http://x12host.com/images/p4_sel.jpg',1)" href="http://forums.x12host.com"><img src="http://x12host.com/images/p4.jpg" alt="" name="Image13" width="116" height="35" style="margin-right:1px;"></a><a href="http://x12host.com/index-4.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('http://x12host.com/Image14','','http://x12host.com/images/p5_sel.jpg',1)"><img src="http://x12host.com/images/p5.jpg" alt="" name="Image14" width="116" height="35"></a><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('http://x12host.com/Image15','','http://x12host.com/images/p6_sel.jpg',1)" href="http://system.x12host.com"><img src="http://x12host.com/images/p6.jpg" alt="" name="http://x12host.com/Image15" width="116" height="35"></a><br></td> </tr> <tr> <td class="content" style="padding-right:23px"> <table style="margin-top:5px;"> <tr> </tr> <tr> </tr>
Try:
Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>X12host.net: Web Hosting</title> <link type="text/css" rel="stylesheet" href="http://x12host.com/style.css"> {literal} <script type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> {/literal} <style type="text/css"> .style28 { color: #040404; } .style27 { color: #000000; } .style29 { color: #FFFFFF; background-color: #CC0000; } .style30 { color: #000000; font-size: medium; } .style31 { text-decoration: underline; } </style> </head> <body onLoad="MM_preloadImages('http://x12host.com/images/p2_sel.jpg','http://x12host.com/images/p3_sel.jpg','http://x12host.com/images/p4_sel.jpg','http://x12host.com/images/p5_sel.jpg','http://x12host.com/images/p6_sel.jpg')"> <table width="766" align="center"> <tr> <td><table> <tr> </tr> </table> </form> </td> </tr> </table></td> </tr> <tr> <td><table> <tr> <td class="hd_left"> <table> <tr> <td width="223"><a href="#"><img src="http://x12host.com/images/mp_logo.jpg" alt=""></a></td> <td><a href="#"><img src="http://x12host.com/images/mp_1.jpg" style="margin-top:7px;" alt=""></a><br> <a href="#"><img src="http://x12host.com/images/mp_2.jpg" alt=""></a><br> <a href="#"><img src="http://x12host.com/images/mp_3.jpg" style="margin-bottom:14px;" alt=""></a><br> <a href="#"><img src="http://x12host.com/images/mp_4.jpg" alt=""></a><img src="http://x12host.com/images/spacer.gif" width="2" height="1" alt=""><a href="#"><img src="http://x12host.com/images/mp_5.jpg" alt=""></a></td> </tr> </table></td> <td class="hd_right"> </td> </tr> </table></td> </tr> <tr> <td style="height:36px;" class="menu"><img src="http://x12host.com/images/p1_sel.jpg" alt=""><a href="http://x12host.com/index-1.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('http://x12host.com/Image11','','http://x12host.com/images/p2_sel.jpg',1)"><img src="http://x12host.com/images/p2.jpg" alt="" name="http://x12host.com/Image11" width="116" height="35"></a><a href="http://x12host.com/index-2.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('http://x12host.com/Image12','','http://x12host.com/images/p3_sel.jpg',1)"><img src="http://x12host.com/images/p3.jpg" alt="" name="http://x12host.com/Image12" width="116" height="35"></a><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('http://x12host.com/Image13','','http://x12host.com/images/p4_sel.jpg',1)" href="http://forums.x12host.com"><img src="http://x12host.com/images/p4.jpg" alt="" name="Image13" width="116" height="35" style="margin-right:1px;"></a><a href="http://x12host.com/index-4.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('http://x12host.com/Image14','','http://x12host.com/images/p5_sel.jpg',1)"><img src="http://x12host.com/images/p5.jpg" alt="" name="Image14" width="116" height="35"></a><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('http://x12host.com/Image15','','http://x12host.com/images/p6_sel.jpg',1)" href="http://system.x12host.com"><img src="http://x12host.com/images/p6.jpg" alt="" name="http://x12host.com/Image15" width="116" height="35"></a><br></td> </tr> <tr> <td class="content" style="padding-right:23px"> <table style="margin-top:5px;"> <tr> </tr> <tr> </tr>
Also, delete all files in tempaltes_c folder.. This may be a reason for the blank page!
Jason
Hosting since 2005 WebHostManaged.net
Hosting - Dedicated Servers - Reseller Hosting - LA Data Center
Didn't work, still display a blank page, also after i cleared the template_c folderany more suggestions?
put in your configuration.php and reload the page:
$display_errors = "on";
Try this they were some tags that weren't closed and mis matched:
Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>X12host.net: Web Hosting</title> <link type="text/css" rel="stylesheet" href="http://x12host.com/style.css" /> {literal} <script type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> {/literal} <style type="text/css"> .style28 { color: #040404; } .style27 { color: #000000; } .style29 { color: #FFFFFF; background-color: #CC0000; } .style30 { color: #000000; font-size: medium; } .style31 { text-decoration: underline; } </style> </head> <body onload="MM_preloadImages('http://x12host.com/images/p2_sel.jpg','http://x12host.com/images/p3_sel.jpg','http://x12host.com/images/p4_sel.jpg','http://x12host.com/images/p5_sel.jpg','http://x12host.com/images/p6_sel.jpg')"> <table width="766" align="center"> <tr> <td> <table> <tr> </tr> </table> </td> </tr> </table> <td></td> <tr></tr> <tr> <td> <table> <tr> <td class="hd_left"> <table> <tr> <td width="223"><a href="#"> <img src="http://x12host.com/images/mp_logo.jpg" alt="" /></a></td> <td><a href="#"> <img src="http://x12host.com/images/mp_1.jpg" style="margin-top: 7px;" alt="" /></a><br /> <a href="#"> <img src="http://x12host.com/images/mp_2.jpg" alt="" /></a><br /> <a href="#"> <img src="http://x12host.com/images/mp_3.jpg" style="margin-bottom: 14px;" alt="" /></a><br /> <a href="#"> <img src="http://x12host.com/images/mp_4.jpg" alt="" /></a><img src="http://x12host.com/images/spacer.gif" width="2" height="1" alt="" /><a href="#"><img src="http://x12host.com/images/mp_5.jpg" alt="" /></a></td> </tr> </table> </td> <td class="hd_right"> </td> </tr> </table> </td> </tr> <tr> <td style="height: 36px;" class="menu"> <img src="http://x12host.com/images/p1_sel.jpg" alt="" /><a href="http://x12host.com/index-1.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('http://x12host.com/Image11','','http://x12host.com/images/p2_sel.jpg',1)"><img src="http://x12host.com/images/p2.jpg" alt="" name="http://x12host.com/Image11" width="116" height="35" /></a><a href="http://x12host.com/index-2.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('http://x12host.com/Image12','','http://x12host.com/images/p3_sel.jpg',1)"><img src="http://x12host.com/images/p3.jpg" alt="" name="http://x12host.com/Image12" width="116" height="35" /></a><a onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('http://x12host.com/Image13','','http://x12host.com/images/p4_sel.jpg',1)" href="http://forums.x12host.com"><img src="http://x12host.com/images/p4.jpg" alt="" name="Image13" width="116" height="35" style="margin-right: 1px;" /></a><a href="http://x12host.com/index-4.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('http://x12host.com/Image14','','http://x12host.com/images/p5_sel.jpg',1)"><img src="http://x12host.com/images/p5.jpg" alt="" name="Image14" width="116" height="35" /></a><a onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('http://x12host.com/Image15','','http://x12host.com/images/p6_sel.jpg',1)" href="http://system.x12host.com"><img src="http://x12host.com/images/p6.jpg" alt="" name="http://x12host.com/Image15" width="116" height="35" /></a><br /> </td> </tr> <tr /> <td class="content" style="padding-right: 23px" /> <table style="margin-top: 5px;"> <tr> </tr> <tr> </tr>
Last edited by BAJI26; 04-09-08 at 03:24 PM.
Still shows in a blank page![]()
You might have to replace:
With:Code:<body onload="MM_preloadImages('http://x12host.com/images/p2_sel.jpg','http://x12host.com/images/p3_sel.jpg','http://x12host.com/images/p4_sel.jpg','http://x12host.com/images/p5_sel.jpg','http://x12host.com/images/p6_sel.jpg')">
Code:<body>
Just put The whole Code into the following Tag..
{literal}
{/literal}
CSS Styles has also to be in this tag, so every java scripting to..
Below your working Code...
I also did this on www.zitrox.com/client/
at the top there is an ajax Menu
Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>X12host.net: Web Hosting</title> <link type="text/css" rel="stylesheet" href="http://x12host.com/style.css" /> {literal} <script type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <style type="text/css"> .style28 { color: #040404; } .style27 { color: #000000; } .style29 { color: #FFFFFF; background-color: #CC0000; } .style30 { color: #000000; font-size: medium; } .style31 { text-decoration: underline; } </style> </head> <body onload="MM_preloadImages('http://x12host.com/images/p2_sel.jpg','http://x12host.com/images/p3_sel.jpg','http://x12host.com/images/p4_sel.jpg','http://x12host.com/images/p5_sel.jpg','http://x12host.com/images/p6_sel.jpg')"> <table width="766" align="center"> <tr> <td> <table> <tr> </tr> </table> </td> </tr> </table> <td></td> <tr></tr> <tr> <td> <table> <tr> <td class="hd_left"> <table> <tr> <td width="223"><a href="#"> <img src="http://x12host.com/images/mp_logo.jpg" alt="" /></a></td> <td><a href="#"> <img src="http://x12host.com/images/mp_1.jpg" style="margin-top: 7px;" alt="" /></a><br /> <a href="#"> <img src="http://x12host.com/images/mp_2.jpg" alt="" /></a><br /> <a href="#"> <img src="http://x12host.com/images/mp_3.jpg" style="margin-bottom: 14px;" alt="" /></a><br /> <a href="#"> <img src="http://x12host.com/images/mp_4.jpg" alt="" /></a><img src="http://x12host.com/images/spacer.gif" width="2" height="1" alt="" /><a href="#"><img src="http://x12host.com/images/mp_5.jpg" alt="" /></a></td> </tr> </table> </td> <td class="hd_right"> </td> </tr> </table> </td> </tr> <tr> <td style="height: 36px;" class="menu"> <img src="http://x12host.com/images/p1_sel.jpg" alt="" /><a href="http://x12host.com/index-1.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('http://x12host.com/Image11','','http://x12host.com/images/p2_sel.jpg',1)"><img src="http://x12host.com/images/p2.jpg" alt="" name="http://x12host.com/Image11" width="116" height="35" /></a><a href="http://x12host.com/index-2.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('http://x12host.com/Image12','','http://x12host.com/images/p3_sel.jpg',1)"><img src="http://x12host.com/images/p3.jpg" alt="" name="http://x12host.com/Image12" width="116" height="35" /></a><a onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('http://x12host.com/Image13','','http://x12host.com/images/p4_sel.jpg',1)" href="http://forums.x12host.com"><img src="http://x12host.com/images/p4.jpg" alt="" name="Image13" width="116" height="35" style="margin-right: 1px;" /></a><a href="http://x12host.com/index-4.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('http://x12host.com/Image14','','http://x12host.com/images/p5_sel.jpg',1)"><img src="http://x12host.com/images/p5.jpg" alt="" name="Image14" width="116" height="35" /></a><a onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('http://x12host.com/Image15','','http://x12host.com/images/p6_sel.jpg',1)" href="http://system.x12host.com"><img src="http://x12host.com/images/p6.jpg" alt="" name="http://x12host.com/Image15" width="116" height="35" /></a><br /> </td> </tr> {/literal} <tr /> <td class="content" style="padding-right: 23px" /> <table style="margin-top: 5px;"> <tr> </tr> <tr> </tr>
Thanks, that worked very well![]()