Jump to content

Intergration


Recommended Posts

Hey

 

When I updated my WHMCS to v4, I forgot to take a backup of my template files :shock:

 

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 by thehost5968
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated