northfork Posted September 15, 2015 Share Posted September 15, 2015 Hi - how do I display just the client area login form and nothing else? I want to remove the header,top nav and primary nav and only display the client login form. Is it a template syntax or hook? Just want it to be hidden for non logged in users only on this page. Thanks in advance 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 15, 2015 Share Posted September 15, 2015 create you own login form and use the API with it 0 Quote Link to comment Share on other sites More sharing options...
northfork Posted September 15, 2015 Author Share Posted September 15, 2015 Thanks for the reply. Is this the only way? I'm not sure I'll be able to do as you suggested. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 15, 2015 Share Posted September 15, 2015 Thanks for the reply. Is this the only way? I'm not sure I'll be able to do as you suggested. it's probably the best way - but you could modify the header for specific pages... http://forum.whmcs.com/showthread.php?95090-How-to-hide-header-tpl-on-a-page&p=399194#post399194 0 Quote Link to comment Share on other sites More sharing options...
northfork Posted September 15, 2015 Author Share Posted September 15, 2015 Ok that link helped. I'm getting closer, but how do I hide only for non logged in users. If logged in I'd want it to display? Thanks 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 15, 2015 Share Posted September 15, 2015 Ok that link helped. I'm getting closer, but how do I hide only for non logged in users. If logged in I'd want it to display?Thanks {if $loggedin} // Client Loggedin {else} // Visitor {/if} - - - Updated - - - but your visitors can access any page if they have the correct URL for it, if you need to hide everything until your client enter their credentials, you can use Action Hook for it, let me know if this is the case 0 Quote Link to comment Share on other sites More sharing options...
northfork Posted September 15, 2015 Author Share Posted September 15, 2015 No, I just need to hide these only on the clientarea page for non logged in users. Sorry for not understanding but how do I combine this {if loggedin} with {if ($filename!='clientarea')}. I'm sure it's something simple but don't get how to specify hide "this" only on "this page" for non logged in users. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 15, 2015 Share Posted September 15, 2015 {if $loggedin && $filename!='clientarea'} {else} {/if} 0 Quote Link to comment Share on other sites More sharing options...
northfork Posted September 17, 2015 Author Share Posted September 17, 2015 Perfect - Thank you! 0 Quote Link to comment Share on other sites More sharing options...
northfork Posted September 18, 2015 Author Share Posted September 18, 2015 but your visitors can access any page if they have the correct URL for it, if you need to hide everything until your client enter their credentials, you can use Action Hook for it, let me know if this is the case @sentq - ok sorry to backtrack. The more I thought about what you said regarding if a visitor has the correct url they can still access the page. If you're still willing I could use help with those Action Hooks to hide the following pages (Announcements, Knowledgebase, Network Status, Contact Us) for non logged in users. 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.