Jump to content

adding new pages to whmcs


neemisha

Recommended Posts

I have to add new pages to whmcs. I created the page and placed in the root directory with the provided code from the whmcs knowledgebase .I also created the .tpl file which is reqired to be displayed on the index page and placed the file in the template forder inside the default template.

 

still i am not able to get which step m i missing as the page I am not able to display the new page.

Link to comment
Share on other sites

Say you want to make a new page called new1.php

 

You will link all links that are going to new1.php to

 

yourdomain.com/whmcs/new1.php or if you have installed whmc s in the public_html or httpdocs folders the root web directory it would be:

yourdomain.com/new1.php

 

you need to place the new1.tpl file inside the /templates/(theme)/ folder

 

Then when editing the new1.php page it should look like this:

 

<?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 = "new1";

/*
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");

?> 

 

The page new1.php that you created must be in the whmcs root directory

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