ScottPlunkett Posted January 16, 2012 Share Posted January 16, 2012 Hi Guys, At the top of my website I want to display some messages based on if the user is logged in to the client area or not. In example used below: Welcome to PrivaHost, Your Not Logged In! - (Not Logged in User Message) Welcome Back To PrivaHost, {$loggedinuser.firstname} (Would Show First Name) - (Logged In Message) But, My WHMCS is in another directory. It's at domain.com/manage instead of domain.com.. How would I link my variables to the WHMCS directory so that it will show their first name and know if they are logged in. Thanks alot for your help and replies, Scott P. 0 Quote Link to comment Share on other sites More sharing options...
Payton Designs Posted January 18, 2012 Share Posted January 18, 2012 Scott, What you basically need to do is shift your pages to be apart of WHMCS. Here is the link to the documentation: http://docs.whmcs.com/Creating_Pages 0 Quote Link to comment Share on other sites More sharing options...
Sitepearl Posted January 18, 2012 Share Posted January 18, 2012 Payton is correct, but forgot to add that when you create your custom pages, you will need to modify the PHP includes on the page. So instead of: require("dbconnect.php");require("includes/functions.php"); require("includes/clientareafunctions.php"); you would have something like: require("whmcs/dbconnect.php");require("whmcs/includes/functions.php"); require("whmcs/includes/clientareafunctions.php"); 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.