Jump to content

Custom site!


Recommended Posts

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.




Link to comment
Share on other sites

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.







$pagetitle = $_LANG['clientareatitle'];

$pageicon = "images/support/clientarea.gif";





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







if i use this for the php file do I need to make a template file to like display.tpl ?




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated