Jump to content

Custom site!


IHC

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.

 

Greetings,

IHC

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.

 

<?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

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.

Guest
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