Jump to content

WHMCS template changes not appearing

Recommended Posts



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. :)

Link to comment
Share on other sites

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 http://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:

{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):


<!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">


<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">


<div id="logo">

<img src="images/logo.png" alt="Vertimyst Solutions" height="100" width="200"  />


<div id="banner">

<img src="images/banner.png" alt="Hosting Building Creating Designing Solving." height="100" width="824" />


<div id="filler">

<img src="images/filler.png" height="100" width="100%" />


<div id="top_shadow">

<img src="images/top_shadow.png" height="10" width="100%" />


<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>



Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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


{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.

Link to comment
Share on other sites

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/chapter.debugging.console.php.

Also is there any particular reason why you don't just edit the header.tpl that does appear?

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.

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