Jump to content

Custom Pages


ravenau

Recommended Posts

Hi guys,

 

I tried creating some custom pages within my WHMCS install (3.7.2) following the instructions outlined in the wiki manual. No matter what I add into the .tpl file, when calling the php file it returns blank (no code, html etc whatsoever).

 

I've made sure to change the $templatefile variable to match the template file I created and I've even tried specifying other .tpl files that were included in the installation without any luck - same result.

 

I did notice the example given in the wiki includes a file called clientareafunctions.php, which I can't locate either on the filesystem or the whmcs_372 zip file I installed from. The closest file I could find is clientfunctions.php, located in the same directory

 

Am I missing a file I should have (clientareafunctions.php? I'm Wondering if someone has come across this issue previously or has any advice?

Link to comment
Share on other sites

Here is an example of the old custom page code

<?php

define("CLIENTAREA",true);

require("dbconnect.php");

require("includes/functions.php");

 

$pagetitle = "Hosting";

 

$pageicon = "images/supporttickets_big.gif";

 

$breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a> > <a href="hosting.php">Hosting Plans</a>';

 

require("init.php");

 

# Define the template filename to be used without the .tpl extension

 

$templatefile = "hosting";

 

require("display.php");

 

?>

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