IHC Posted November 26, 2007 Share Posted November 26, 2007 Hello all, I like to make some custom pages on the whmcs. like the terms of service and my web host plans with some pics, but I`m wondering how I can do that. It is very important for me to do that so that i can continue with my web host site. Greetings, IHC 0 Quote Link to comment Share on other sites More sharing options...
uberhost Posted November 26, 2007 Share Posted November 26, 2007 Hope this link helps: Adding your own pages to the system 0 Quote Link to comment Share on other sites More sharing options...
TerrasIOI Posted November 27, 2007 Share Posted November 27, 2007 Hope this link helps: Adding your own pages to the system Man, Which part of code shall I use for simplest integration. Do I need to add something in navbar of header or home file? Regards. 0 Quote Link to comment Share on other sites More sharing options...
IHC Posted November 27, 2007 Author Share Posted November 27, 2007 To add your own pages to the WHMCS system which utilise the WHMCS templating system, you may use the following code. This code is designed to work with files placed in the root whmcs directory. <?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 = "homepage"; /* 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"); ?> if i use this for the php file do I need to make a template file to like display.tpl ? Greetz, IHC 0 Quote Link to comment Share on other sites More sharing options...
TerrasIOI Posted November 28, 2007 Share Posted November 28, 2007 OK, I will try that. Thanks. 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.