neemisha Posted November 15, 2007 Share Posted November 15, 2007 I have to add new pages to whmcs. I created the page and placed in the root directory with the provided code from the whmcs knowledgebase .I also created the .tpl file which is reqired to be displayed on the index page and placed the file in the template forder inside the default template. still i am not able to get which step m i missing as the page I am not able to display the new page. 0 Quote Link to comment Share on other sites More sharing options...
bdwarr6 Posted November 16, 2007 Share Posted November 16, 2007 Say you want to make a new page called new1.php You will link all links that are going to new1.php to yourdomain.com/whmcs/new1.php or if you have installed whmc s in the public_html or httpdocs folders the root web directory it would be: yourdomain.com/new1.php you need to place the new1.tpl file inside the /templates/(theme)/ folder Then when editing the new1.php page it should look like this: <?php require("dbconnect.php"); require("includes/functions.php"); $pagetitle = $_LANG['clientareatitle']; $pageicon = "images/support/clientarea.gif"; $breadcrumbnav=''.$_LANG['globalsystemname'].''; require("init.php"); if ($_SESSION['loggedinstatus']=="true") { # User is Logged In - put any code you like here } # Define the template filename to be used without the .tpl extension $templatefile = "new1"; /* To assign variables in Smarty use the following syntax. $smarty->assign('variablename', $value); This can then be used as {$variablename} in the template */ include("display.php"); ?> The page new1.php that you created must be in the whmcs root directory 0 Quote Link to comment Share on other sites More sharing options...
fwebs Posted November 16, 2007 Share Posted November 16, 2007 how about if we want to make a page for the admin area instead and dont want to use the addons method 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted November 16, 2007 WHMCS CEO Share Posted November 16, 2007 how about if we want to make a page for the admin area instead and dont want to use the addons method If you don't want to use the addon modules method specifically designed for it then you can't do it. Matt 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.