Jump to content

Additional content pages (accessible only after login)


datamerc

Recommended Posts

Hi,

 

I've gotten the stock client area of WHMCS customized to our website very nicely and now i am working on the final part.

 

We currently have a separate website where clients login to update their website (e.g. listings, inventory, etc). I would like to integrate the content of this website with their WHMCS client area. This will consolidate login info and integrate the look and feel (essentially adding another navigation link in the header.tpl file).

 

How do I create a new page(s) that will...

1) integrate the header.tpl and footer.tpl files so the navigation is seamless.

 

2) verify user is logged in and is the proper user to be viewing the page - I think I have solved this by using the following at the top of each page

define("CLIENTAREA",true);
require("../../dbconnect.php");
require("../../includes/functions.php");
require("../../includes/clientareafunctions.php");

if($_SESSION['uid'] == $someUserID)
{
  valid user
}
else
{
  //not a valid user
}

 

Thank you in advance!

Link to comment
Share on other sites

Please refer to the following wiki, it explains what you want:

http://wiki.whmcs.com/Creating_Pages

That's exactly what I'm looking to do, with the exception of having the content in a subdirectory of root because each client will have unique content. So for example, I would like to have the new content structured like this:

 

domain.com/whmcs/manage/client1pages/

domain.com/whmcs/manage/client2pages/

domain.com/whmcs/manage/client3pages/

...and so on

 

 

That wiki article mentioned the php files would need to be located in root and the tpl files in templates directory. Is it possible to have the structure I've described; putting the php and tpl files in their clientpages directory?

 

Thanks

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