datamerc Posted March 18, 2010 Share Posted March 18, 2010 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! 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted March 18, 2010 Share Posted March 18, 2010 Please refer to the following wiki, it explains what you want: http://wiki.whmcs.com/Creating_Pages 0 Quote Link to comment Share on other sites More sharing options...
datamerc Posted March 18, 2010 Author Share Posted March 18, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.