Bucket Posted April 8, 2009 Share Posted April 8, 2009 I would like to create a custom admin page with the admin header and footer. Something like the custom pages for the client area or main WHMCS directory. Link: http://wiki.whmcs.com/Creating_Pages PHP: <?php define("CLIENTAREA",true); require("dbconnect.php"); require("includes/functions.php"); require("includes/clientareafunctions.php"); $pagetitle = $_LANG['clientareatitle']; $pageicon = "images/support/clientarea.gif"; $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>'; $breadcrumbnav .= ' > <a href="mypage.php">My Page</a>'; initialiseClientArea($pagetitle,$pageicon,$breadcrumbnav); if ($_SESSION['uid']) { # User is Logged In - put any code you like here } # To assign variables in Smarty use the following syntax. # This can then be used as {$variablename} in the template $smartyvalues["variablename"] = $value; # Define the template filename to be used without the .tpl extension $templatefile = "homepage"; outputClientArea($templatefile); ?> Maybe modify it to work with Admin area template. Thank You! 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted April 8, 2009 WHMCS CEO Share Posted April 8, 2009 Check out Utilities > Addon Modules - that's the intended way to create admin pages Matt 0 Quote Link to comment Share on other sites More sharing options...
Bucket Posted April 8, 2009 Author Share Posted April 8, 2009 Thank You. I am now working on it, I will show a picture of my work in about a day and you guys will tell me what you think. 0 Quote Link to comment Share on other sites More sharing options...
Bucket Posted April 8, 2009 Author Share Posted April 8, 2009 Ok I have figured it out, but you know how on the modules you can only have one link in a certain folder, how do I allow multiple links for one module? 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.