Smilie Posted April 7, 2008 Share Posted April 7, 2008 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? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted April 7, 2008 Share Posted April 7, 2008 What's your header code? 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted April 7, 2008 Share Posted April 7, 2008 Sounds like there's an error. If you've any php you need to put {php} and {/php} tags around it. 0 Quote Link to comment Share on other sites More sharing options...
Smilie Posted April 8, 2008 Author Share Posted April 8, 2008 Heres my 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> 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted April 9, 2008 Share Posted April 9, 2008 Try: <!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"> [color=red] {literal} [/color] <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> [color=red] {/literal} [/color] <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> 0 Quote Link to comment Share on other sites More sharing options...
Willx Posted April 9, 2008 Share Posted April 9, 2008 Also, delete all files in tempaltes_c folder.. This may be a reason for the blank page! 0 Quote Link to comment Share on other sites More sharing options...
Smilie Posted April 9, 2008 Author Share Posted April 9, 2008 Didn't work, still display a blank page, also after i cleared the template_c folder any more suggestions? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted April 9, 2008 WHMCS Developer Share Posted April 9, 2008 put in your configuration.php and reload the page: $display_errors = "on"; 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted April 9, 2008 Share Posted April 9, 2008 Try this they were some tags that weren't closed and mis matched: <!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> 0 Quote Link to comment Share on other sites More sharing options...
Smilie Posted April 13, 2008 Author Share Posted April 13, 2008 Still shows in a blank page 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted April 14, 2008 Share Posted April 14, 2008 You might have to replace: <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')"> With: <body> 0 Quote Link to comment Share on other sites More sharing options...
michael-zitrox Posted April 14, 2008 Share Posted April 14, 2008 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 http://www.zitrox.com/client/ at the top there is an ajax Menu <!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" /> [b][color="Red"]{literal}[/color][/b] <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> [b][color="Red"]{/literal}[/color][/b] <tr /> <td class="content" style="padding-right: 23px" /> <table style="margin-top: 5px;"> <tr> </tr> <tr> </tr> 0 Quote Link to comment Share on other sites More sharing options...
Smilie Posted April 16, 2008 Author Share Posted April 16, 2008 Thanks, that worked very well 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.