criat Posted November 17, 2013 Share Posted November 17, 2013 I know there are some questions about this already, but I did my homework and still couldn't make it work I'm building a HTML version of my site, after being warned that WHMCS was bad for SEO. Now I have to convert chunks of code like this to HTML: {if $loggedin} Hello {$clientsdetails.firstname} {else} Login Form {/if} I know it should be something like: mysite.com = WHMCS Installation mysite.com/br = My html website require("../dbconnect.php"); require("../includes/functions.php"); require("../includes/clientareafunctions.php"); $firstname = $GLOBALS['clientsdetails']['firstname']; if ($_SESSION['uid']) { echo "Hello $firstname"; } else { echo "Login Form"; } But I can't make it work... What can I do? 0 Quote Link to comment Share on other sites More sharing options...
criat Posted November 17, 2013 Author Share Posted November 17, 2013 Update: By using $_SESSION ['ui'] I can tell if the user is logged in or not into WHMCS. Now I just need to echo the variables 0 Quote Link to comment Share on other sites More sharing options...
thewebmaster Posted November 21, 2013 Share Posted November 21, 2013 Update: By using $_SESSION ['ui'] I can tell if the user is logged in or not into WHMCS. Now I just need to echo the variables I also checked the same and it is working fine in a normal php page. However if trying to call that page in joomla it gives error. 0 Quote Link to comment Share on other sites More sharing options...
alinford Posted November 27, 2013 Share Posted November 27, 2013 I am also stuck on this. I used the WHMCS integration code to put a login button on the nav bar outside of WHMCS, but would like to change that to a logout button if the client is logged in. What code can be added to tell if a client is logged in? 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.