Gemster Posted March 9, 2010 Share Posted March 9, 2010 Hi, I have followed the guide to creat custom client pages. http://wiki.whmcs.com/Creating_Pages This all works fine. But... How would i go about making it so a client has to login to access this page ? Thanks Gemster 0 Quote Link to comment Share on other sites More sharing options...
D9Hosting Posted March 9, 2010 Share Posted March 9, 2010 You can use the following in your template: {if $loggedin} User is logged in so display client only information {else} User is not logged in so display this {/if} Taken from: http://wiki.whmcs.com/Template_Syntax#Displaying_Text_to_Logged_In_Users_Only 0 Quote Link to comment Share on other sites More sharing options...
Gemster Posted March 9, 2010 Author Share Posted March 9, 2010 Thanks D9Hosting, But i need this for a full page not just text. If i add {if $loggedin} at the top of the html/php code in the .tpl, would this work ? Thanks Gemster 0 Quote Link to comment Share on other sites More sharing options...
Wiredremix Posted March 9, 2010 Share Posted March 9, 2010 Yes simply add {if $loggedin} at the top of the custom page, and {else} You need to be logged in to view this page. {/if} At the bottom of the custom page. 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.