VertigoAeroplanes Posted February 12, 2012 Share Posted February 12, 2012 Hello, Is there a way that I can fetch the currently logged in user's name and put it in a Javascript variable? Would I also be able to create an if statement, so if user is logged in it does something and if the user is not logged in, it would do something else. This should all be done in Javascript. Help is much appreciated, thanks! 0 Quote Link to comment Share on other sites More sharing options...
tomb Posted February 12, 2012 Share Posted February 12, 2012 Take a look at this documentation http://docs.whmcs.com/Template_Syntax#Displaying_Text_if_Certain_Conditions_Are_Met {if $loggedin} User is logged in so display client only information {else} User is not logged in so display this {/if} 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.