Results 1 to 10 of 10

Thread: WHMCS template changes not appearing

  1. #1
    Join Date
    May 2010
    Location
    Canada
    Posts
    26

    Unhappy WHMCS template changes not appearing

    Hi,

    I'm trying to customize the 'Portal' template to match my site's design. I've tried doing what's described in this thread: http://www.webhostingtalk.com/showthread.php?t=940480

    But it didn't do anything. So I tried editing random things in the header.tpl and footer.tpl files, for example, changing <div id="company_title">{$companyname}</div> from $companyname to 'Random title', or in footer.tpl, editing the links in the right-side menu. I even went so far as to upload a blank header.tpl file with the text 'blah blah blah'. Nothing changed, all I see is the default 'portal' template, no matter what I do. I have my template files uploaded in the template directory (in a folder called 'vs_aqua'), and the url I'm using is 'www.mydomain.com/whmcs/?systpl=vs_aqua'. I tried changing that to 'systpl=default' and that changed the template, but any changes I make to my template don't appear, even in other browsers with the cache cleared.

    If someone could tell me how to properly go about this, that would be greatly appreciated.

  2. #2
    Join Date
    Sep 2008
    Location
    /home/australia/earth
    Posts
    521

    Default

    Have you set Setup > General Settings > Template to your template folder?
    - David

  3. #3
    Join Date
    May 2010
    Location
    Canada
    Posts
    26

    Default

    Yes, I tried that. I did it again now though, and my edit to the 'company title' field came through this time. According to the wiki, though: 'You can then preview your new template by specifying it "on the fly" using an url such as www.yourdomain.com/whmcs/?systpl=xxxxx where xxxxx is the name of your new template.' But that doesn't work for my template for whatever reason.

    So now I've added this line:
    Code:
    {include file="templates/vs_aqua/header.php"}
    Just after the <head> tag in header.tpl. Nothing changes on the actual page, though.

    Here's what I have in that file (header.php):

    Code:
    <!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=utf-8" />
    
    <title>Vertimyst Solutions - Coming Soon</title>
    
    <link href="css/styles.css" rel="stylesheet" type="text/css" media="screen" />
    
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    
    </head>
    
    
    
    <div id="logo">
    
    <img src="images/logo.png" alt="Vertimyst Solutions" height="100" width="200"  />
    
    </div>
    
    
    
    <div id="banner">
    
    <img src="images/banner.png" alt="Hosting Building Creating Designing Solving." height="100" width="824" />
    
    </div>
    
    
    
    <div id="filler">
    
    <img src="images/filler.png" height="100" width="100%" />
    
    </div>
    
    
    
    <div id="top_shadow">
    
    <img src="images/top_shadow.png" height="10" width="100%" />
    
    </div>
    
    
    
    <div id="navBarContainer">
    
    	<ul id="navBar">
    
        	<li id="navBarHome"><a href="#">Home</a></li>
    
            <li id="navBarServices"><a href="#">Services</a></li>
    
            <li id="navBarRegister"><a href="#">Register</a></li>
    
            <li id="navBarSupport"><a href="#">Support</a></li>
    
            <li id="navBarCommunity"><a href="#">Community</a></li>
    
            <li id="navBarBlog"><a href="#">Blog</a></li>
    
            <li id="navBarAbout"><a href="#">About</a></li>
    
        </ul>
    
    </div>

  4. #4
    Join Date
    Mar 2008
    Posts
    215

    Default

    well its gotta be pulling from one of the template subdirectories. Rename one and see what happens. Keep doing that till you find the right one. Also try clearing out your templates_c folder.
    Rapid Payment Solutions
    eProcessing Network Authorized Agent

  5. #5
    Join Date
    May 2010
    Location
    Canada
    Posts
    26

    Default

    Quote Originally Posted by tomdchi View Post
    well its gotta be pulling from one of the template subdirectories. Rename one and see what happens. Keep doing that till you find the right one. Also try clearing out your templates_c folder.
    Do you mean rename the individual template folders (default, portal, vs_aqua)?

    It's definitely using the files in the vs_aqua template folder, I renamed it and when I refreshed I just got a blank page. Changes made manually to the template work, but my included header.php stuff isn't appearing at all.

  6. #6
    Join Date
    Mar 2008
    Posts
    215

    Default

    i misunderstood how you where modifying the templates. I have never attempted to have templates in another folder be used. I always just edit, replace, or add templates to the portal folder.
    you may want to try using the full path to your included file. I have never tried it with a smarty tag but maybe if you used require instead of include it may give an error message.
    Rapid Payment Solutions
    eProcessing Network Authorized Agent

  7. #7
    Join Date
    May 2010
    Location
    Canada
    Posts
    26

    Default

    Changing it to 'require file' resulted in a blank page. I added the full path, didn't seem to make a difference either way.

  8. #8
    Join Date
    Jan 2007
    Posts
    13

    Default

    There is some kind of caching of the rendered template files.
    I had the same problem you describe, I just deleted all content of template_c folder and my changes are now taken into account, I guess you have to empty this folder every time you make changes to your templates files...

  9. #9
    Join Date
    May 2010
    Location
    Canada
    Posts
    26

    Default

    I cleared that cache, and my direct changes are appearing, but my problem is the line:

    Code:
    {include file="http://www.vertimystsolutions.com/whmcs/templates/vs_aqua/header.php"}
    It doesn't appear to have any effect, and I have no idea why.

  10. #10
    Join Date
    Mar 2008
    Posts
    215

    Default

    its either a path error or a coding error(php or smarty). Have you turned errors on in configuration.php? Have you looked at the error logs on the server. Your pretty much flying blind here. Also check out this on smarty.net http://www.smarty.net/manual/en/chap...ng.console.php.
    Also is there any particular reason why you don't just edit the header.tpl that does appear?
    Rapid Payment Solutions
    eProcessing Network Authorized Agent

Similar Threads

  1. VAT number, et al. appearing on invoice
    By stugster in forum Pre-Sales Questions
    Replies: 7
    Last Post: 02-04-11, 10:33 AM
  2. verifyimage not appearing
    By djxtc in forum Customisation & Integration Questions
    Replies: 3
    Last Post: 06-20-08, 07:26 PM