BullsoftHosting - Tom Posted August 19, 2009 Share Posted August 19, 2009 Hey When I updated my WHMCS to v4, I forgot to take a backup of my template files I know its the header.tpl and footer.tpl files I need to edit, but Im not sure what I take from my design and put in the header and footer. Can anybody help me out? Thanks Tom 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 19, 2009 Share Posted August 19, 2009 Is this from you mane sit? if so can you ether post the full page or give a url? 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 (edited) Hey When I updated my WHMCS to v4, I forgot to take a backup of my template files I know its the header.tpl and footer.tpl files I need to edit, but Im not sure what I take from my design and put in the header and footer. Can anybody help me out? Thanks Tom Give this a try: Working off http://www.bullsofthosting.co.uk/ I HAVE NOT REMOVED THE CENTRE CONTENT BUT I AM SURE YOU CAN WORK THAT OUT. Here is your header file: <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/> <title>Bullsoft Hosting | Fast - Secure - Reliable</title> <link rel="stylesheet" type="text/css" href="style.css"/> <!--[if IE 6]> <link rel="stylesheet" type="text/css" href="iecss.css" /> <![endif]--> <script type="text/javascript" src="js/boxOver.js"></script> <style type="text/css"> <!-- .style2 { font-size: 10px; font-family: Arial, Helvetica, sans-serif; } --> </style> </head> <body> <div id="main_container"> <div id="header"> <div class="top_right"> <div class="big_banner"> </div> </div> <div id="logo"> <a href="index.html"><img src="images/logo.png" alt="" title="" border="0" width="300" height="60"/></a> </div> </div> <div id="main_content"> <div id="menu_tab"> <ul class="menu"> <li> <a href="index.html" class="nav">Home</a></li> <li class="divider"></li> <li> <a href="about.html" class="nav">About Us</a></li> <li class="divider"></li> <li> <a href="services.html" class="nav">Our Services</a></li> <li class="divider"></li> <li> <a href="http://www.bullsofthosting.co.uk/clients" class="nav">Client Area</a></li> <li class="divider"></li> <li> <a href="contact.html" class="nav">Contact Us</a></li> </ul> </div><!-- end of menu tab --> <div class="left_content"> <div class="title_box">Side Menu</div> <ul class="left_menu"> <li class="odd"><a href="shared.html">Shared</a></li> <li class="odd"><a href="reseller.html">Reseller</a></li> <li class="odd"><a href="proxy.html">Proxy</a></li> <li class="odd"><a href="shoutcast.html">Shoutcast</a></li> <li class="odd"><a href="vps.html">VPS</a></li> <li class="odd"><a href="dedicated.html">Dedicated</a></li> </ul> <div class="title_box">Client Login</div> <ul class="left_menu"> <form method="post" action="http://bullsofthosting.co.uk/clients/dologin.php?goto=clientarea"> <div align="center">Email Address: <input type="text" name="username" size="25"> <br> Password:<br /> <input type="password" name="password" size="25"> <br> <input type="submit" value="Login"></div> </form></li> </ul> </div> <!-- end of left content --> <div class="center_content"> And Here is your footer: </div><!-- end of center content --> <div class="right_content"> <div class="shopping_cart"> <div class="title_box">Shared Basic </div> <div class="package"> <span class="package_item">1GB Disk Space</span> <span class="package_item">10GB Monthly Bandwidth</span> <span class="package_item">cPanel 11</span><span class="package_item">1 MySQL Database </span><span class="package_item">1 E-Mail Account</span> <span class="package_item"><strong>Only £0.99 Per Month!</strong></span></div> </div> <br/><br/><br/><br/><br/><br/> <div class="shopping_cart"> <div class="title_box">Reseller Basic</div> <div class="package"> <span class="package_item">20GB Disk Space</span> <span class="package_item">200GB Monthly Bandwidth</span> <span class="package_item">cPanel / WHM 11</span><span class="package_item">Private Nameservers </span><span class="package_item">Anonymous Server Name</span><span class="package_item"><strong>Only £9.99 Per Month!</strong></span> </div> </div> <br/><br/><br/><br/><br/><br/><br/> <div class="shopping_cart"> <div class="title_box">Shoutcast Basic </div> <div class="package"> <span class="package_item">128Kbps</span> <span class="package_item">25 Slots</span><span class="package_item">CastControl Panel</span><span class="package_item"><strong>Only £2.49 Per Month!</strong></span></div> </div> <br/><br/><br/><br/><br/><br/><br/> <!-- end of right content --> </div><!-- end of main content --> <div class="footer"> <div class="left_footer"> </div> <div class="center_footer"> Bullsoft Hosting - All Rights Reserved 2008-2009<br/> <img src="images/payment.gif" alt="" title=""/> </div> <div class="right_footer"> <a href="index.html">Home</a> <a href="about.html">About Us</a> <a href="services.html">Our Services</a> <a href="contact.html">Contact Us</a> </div> </div> </div> <!-- end of main_container --> </body> </html> Edited August 20, 2009 by thehost5968 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 just updated the code 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 Just looking at your site have you see this : http://forum.whmcs.com/showthread.php?t=19827 Page Manager Module this would possable make it quicker for you? also you said "I forgot to take a backup of my template files" you are renaming your template folder aren't you? 0 Quote Link to comment Share on other sites More sharing options...
BullsoftHosting - Tom Posted August 20, 2009 Author Share Posted August 20, 2009 So with that code of the header and footer, do I just add that to the header.tpl and footer.tpl or replace all it of? Sorry if im being dumb lol Just looking at your site have you see this : http://forum.whmcs.com/showthread.php?t=19827 Page Manager Module this would possable make it quicker for you? Ill check that out, thanks also you said "I forgot to take a backup of my template files" you are renaming your template folder aren't you? No, Ive always kept it named as default. Should I re-name it? 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 1. rename the template. 2. Try this for you header remove what is there : <!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"> <head> <meta http-equiv="content-type" content="text/html; charset={$charset}" /> <title>{$companyname} - {$pagetitle}{if $kbarticle.title} - {$kbarticle.title}{/if}</title> {if $systemurl}<base href="{$systemurl}" /> {/if}<link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" /> <script type="text/javascript" src="includes/jscript/jquery.js"></script> <link rel="stylesheet" type="text/css" href="style.css"/> <!--[if IE 6]> <link rel="stylesheet" type="text/css" href="iecss.css" /> <![endif]--> <script type="text/javascript" src="js/boxOver.js"></script> <style type="text/css"> <!-- .style2 { font-size: 10px; font-family: Arial, Helvetica, sans-serif; } --> </style> </head> <body> <div id="main_container"> <div id="header"> {if $loggedin} <p align="right" class="clientarealinks"><a href="clientarea.php"><img src="images/clientarea.gif" border="0" hspace="5" align="absmiddle" alt="" />{$LANG.clientareanavhome}</a><a href="clientarea.php?action=details"><img src="images/details.gif" border="0" hspace="5" align="absmiddle" alt="" />{$LANG.clientareanavdetails}</a><a href="clientarea.php?action=products"><img src="images/products.gif" border="0" hspace="5" align="absmiddle" alt="" />{$LANG.clientareaproducts}</a><a href="clientarea.php?action=domains"><img src="images/domains.gif" border="0" hspace="5" align="absmiddle" alt="" />{$LANG.clientareanavdomains}</a><a href="clientarea.php?action=invoices"><img src="images/invoices.gif" border="0" hspace="5" align="absmiddle" alt="" />{$LANG.invoices}</a><a href="supporttickets.php"><img src="images/supporttickets.gif" border="0" hspace="5" align="absmiddle" alt="" />{$LANG.clientareanavsupporttickets}</a><a href="affiliates.php"><img src="images/affiliates.gif" border="0" hspace="5" align="absmiddle" alt="" />{$LANG.affiliatestitle}</a><a href="clientarea.php?action=emails"><img src="images/emails.gif" border="0" hspace="5" align="absmiddle" alt="" />{$LANG.clientareaemails}</a></p> {/if} <div class="top_right"> <div class="big_banner"> </div> </div> <div id="logo"> <a href="index.html"><img src="images/logo.png" alt="" title="" border="0" width="300" height="60"/></a> </div> </div> <div id="main_content"> <div id="menu_tab"> <ul class="menu"> <li> <a href="index.html" class="nav">Home</a></li> <li class="divider"></li> <li> <a href="about.html" class="nav">About Us</a></li> <li class="divider"></li> <li> <a href="services.html" class="nav">Our Services</a></li> <li class="divider"></li> <li> <a href="http://www.bullsofthosting.co.uk/clients" class="nav">Client Area</a></li> <li class="divider"></li> <li> <a href="contact.html" class="nav">Contact Us</a></li> </ul> </div><!-- end of menu tab --> <div class="left_content"> <div class="title_box">Side Menu</div> <ul class="left_menu"> <li class="odd"><a href="shared.html">Shared</a></li> <li class="odd"><a href="reseller.html">Reseller</a></li> <li class="odd"><a href="proxy.html">Proxy</a></li> <li class="odd"><a href="shoutcast.html">Shoutcast</a></li> <li class="odd"><a href="vps.html">VPS</a></li> <li class="odd"><a href="dedicated.html">Dedicated</a></li> </ul> <div class="title_box">Client Login</div> <ul class="left_menu"> <form method="post" action="http://bullsofthosting.co.uk/clients/dologin.php?goto=clientarea"> <div align="center">Email Address: <input type="text" name="username" size="25"> <br> Password:<br /> <input type="password" name="password" size="25"> <br> <input type="submit" value="Login"></div> </form></li> </ul> </div> <!-- end of left content --> <div class="center_content"> <span class="heading">{$pagetitle}</span><br /> {$LANG.globalyouarehere}: {$breadcrumbnav}</p> 3. Try this for your footer replace: </div><!-- end of center content --> <div class="right_content"> <div class="shopping_cart"> <div class="title_box">Shared Basic </div> <div class="package"> <span class="package_item">1GB Disk Space</span> <span class="package_item">10GB Monthly Bandwidth</span> <span class="package_item">cPanel 11</span><span class="package_item">1 MySQL Database </span><span class="package_item">1 E-Mail Account</span> <span class="package_item"><strong>Only £0.99 Per Month!</strong></span></div> </div> <br/><br/><br/><br/><br/><br/> <div class="shopping_cart"> <div class="title_box">Reseller Basic</div> <div class="package"> <span class="package_item">20GB Disk Space</span> <span class="package_item">200GB Monthly Bandwidth</span> <span class="package_item">cPanel / WHM 11</span><span class="package_item">Private Nameservers </span><span class="package_item">Anonymous Server Name</span><span class="package_item"><strong>Only £9.99 Per Month!</strong></span> </div> </div> <br/><br/><br/><br/><br/><br/><br/> <div class="shopping_cart"> <div class="title_box">Shoutcast Basic </div> <div class="package"> <span class="package_item">128Kbps</span> <span class="package_item">25 Slots</span><span class="package_item">CastControl Panel</span><span class="package_item"><strong>Only £2.49 Per Month!</strong></span></div> </div> <br/><br/><br/><br/><br/><br/><br/> <!-- end of right content --> </div><!-- end of main content --> <div class="footer"> <div class="left_footer"> {if $langchange} <br /> <div class="contentbox">{$setlanguage}</div> {/if} </div> <div class="center_footer"> Bullsoft Hosting - All Rights Reserved 2008-2009<br/> <img src="images/payment.gif" alt="" title=""/> </div> <div class="right_footer"> <a href="index.html">Home</a> <a href="about.html">About Us</a> <a href="services.html">Our Services</a> <a href="contact.html">Contact Us</a> </div> </div> </div> <!-- end of main_container --> </body> </html> 4. Now what the above code does not take in to account is if you have any script code with in your home page and if you want to you any of the smarty tags now to see what tags you could use add this {debug} to the last line of the header within the WHMCS template BUT DO REMEMBER TO REMOVE IT ELSE YOUR CLIENTS WILL GET TO SEE IT ALSO. 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 also the above code is untested 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 Also you need to look at your SSL it is not working well in FireFox: This Connection is Untrusted You have asked Firefox to connect securely to http://www.bullsofthosting.co.uk,'>http://www.bullsofthosting.co.uk, but we can't confirm that your connection is secure. Normally, when you try to connect securely, sites will present trusted identification to prove that you are going to the right place. However, this site's identity can't be verified. What Should I Do? If you usually connect to this site without problems, this error could mean that someone is trying to impersonate the site, and you shouldn't continue. Technical Details http://www.bullsofthosting.co.uk uses an invalid security certificate. The certificate is only valid for http://www.themacoutlet.com. (Error code: ssl_error_bad_cert_domain) I Understand the Risks 0 Quote Link to comment Share on other sites More sharing options...
BullsoftHosting - Tom Posted August 20, 2009 Author Share Posted August 20, 2009 Thanks, ive added the code and im just waiting for WHMCS support to get back to me on a problem thats prevent it loading so ill let you know if it works. The SSL is because ive just moved hosts and im getting a new SSL. Giving my site a "makeover" if you like 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 is your "templates_c" folder 777 0 Quote Link to comment Share on other sites More sharing options...
BullsoftHosting - Tom Posted August 20, 2009 Author Share Posted August 20, 2009 Yes but its not in public view, its in home/whmcsdir/templates_c/ Ive added that to the configuration.php to tell it where it is but it doesnt work so thats why WHMCS support are on to it. 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 but it should read this in the configuration.php: $templates_compiledir = "/home/*serverusername*/templates_c/"; 0 Quote Link to comment Share on other sites More sharing options...
BullsoftHosting - Tom Posted August 20, 2009 Author Share Posted August 20, 2009 Ohh how stupid of me Thanks a lot, thats fixed the loading problem When I switch to the intergration theme though, it doesnt load again. 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 *serverusername* = the frist part of $db_name up to _ 0 Quote Link to comment Share on other sites More sharing options...
BullsoftHosting - Tom Posted August 20, 2009 Author Share Posted August 20, 2009 Yup got that bit working now. Just the template/intergration, this is the error I get: Fatal error: Template error: [in intergration/header.tpl line 16]: syntax error: unrecognized tag: font-size: 10px; font-family: Arial, Helvetica, sans-serif; (Smarty_Compiler.class.php, line 439) in /home2/bullsoft/public_html/clients/includes/smarty/Smarty.class.php on line 1095 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 can you post the block of code at "intergration/header.tpl line 16" 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 please when you post file paths remove / replace your user name's as these posts get in to google in about 10 mins of posting? 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 OK got it: replace this: <style type="text/css"> <!-- .style2 { font-size: 10px; font-family: Arial, Helvetica, sans-serif; } --> </style> with : {literal}<style type="text/css"> <!-- .style2 { font-size: 10px; font-family: Arial, Helvetica, sans-serif; } --> </style> {/literal} 0 Quote Link to comment Share on other sites More sharing options...
BullsoftHosting - Tom Posted August 20, 2009 Author Share Posted August 20, 2009 Getting somewhere now, it actually loads, just not as expected lol. http://clients.bullsofthosting.co.uk How do I edit my posts? I seem to see the edit link? 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 now it is 2 thing, 1. a css file is missing just look at your home page to see which one and put the file path in but not the domain name. 2. I missed putting the closing </div> from the left column in the footer. 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 you can only when you see the edit link but you only get x amount of time to do it in so it may just be to late to edit it now not to big but next time. 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 home page to see = home page code 0 Quote Link to comment Share on other sites More sharing options...
BullsoftHosting - Tom Posted August 20, 2009 Author Share Posted August 20, 2009 I can get the css to work if I link it via the domain, but not if I link it locally eg, ../../../style.css 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted August 20, 2009 Share Posted August 20, 2009 OK 2 thing: 1. just use the full link 2. also remove this from the header: </div><!-- end of left content --> and add it to the first line of the footer. 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.