ravenau Posted December 23, 2008 Share Posted December 23, 2008 Hi guys, I tried creating some custom pages within my WHMCS install (3.7.2) following the instructions outlined in the wiki manual. No matter what I add into the .tpl file, when calling the php file it returns blank (no code, html etc whatsoever). I've made sure to change the $templatefile variable to match the template file I created and I've even tried specifying other .tpl files that were included in the installation without any luck - same result. I did notice the example given in the wiki includes a file called clientareafunctions.php, which I can't locate either on the filesystem or the whmcs_372 zip file I installed from. The closest file I could find is clientfunctions.php, located in the same directory Am I missing a file I should have (clientareafunctions.php? I'm Wondering if someone has come across this issue previously or has any advice? 0 Quote Link to comment Share on other sites More sharing options...
ravenau Posted December 23, 2008 Author Share Posted December 23, 2008 Never mind, worked it out clientareafunctions.php is included in 3.8.0. 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted December 23, 2008 Share Posted December 23, 2008 A blank page is a sign that something's wrong in the .tpl file. Do you have any php code or similar? 0 Quote Link to comment Share on other sites More sharing options...
ravenau Posted December 24, 2008 Author Share Posted December 24, 2008 Hi CD, It worked after I copied the clientareafunctions.php file into the includes directory, as it was only included in 3.8.x and above, I'm running 3.7.2 still. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted December 24, 2008 Share Posted December 24, 2008 Here is an example of the old custom page code <?phpdefine("CLIENTAREA",true); require("dbconnect.php"); require("includes/functions.php"); $pagetitle = "Hosting"; $pageicon = "images/supporttickets_big.gif"; $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a> > <a href="hosting.php">Hosting Plans</a>'; require("init.php"); # Define the template filename to be used without the .tpl extension $templatefile = "hosting"; require("display.php"); ?> 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.