Vertimyst Posted May 24, 2010 Share Posted May 24, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
striddy Posted May 24, 2010 Share Posted May 24, 2010 Have you set Setup > General Settings > Template to your template folder? 0 Quote Link to comment Share on other sites More sharing options...
Vertimyst Posted May 24, 2010 Author Share Posted May 24, 2010 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"> <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> 0 Quote Link to comment Share on other sites More sharing options...
tomdchi Posted May 24, 2010 Share Posted May 24, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
Vertimyst Posted May 24, 2010 Author Share Posted May 24, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
tomdchi Posted May 25, 2010 Share Posted May 25, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
Vertimyst Posted May 25, 2010 Author Share Posted May 25, 2010 Changing it to 'require file' resulted in a blank page. I added the full path, didn't seem to make a difference either way. 0 Quote Link to comment Share on other sites More sharing options...
netswitch Posted May 28, 2010 Share Posted May 28, 2010 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... 0 Quote Link to comment Share on other sites More sharing options...
Vertimyst Posted May 28, 2010 Author Share Posted May 28, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
tomdchi Posted May 29, 2010 Share Posted May 29, 2010 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? 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.