ditto Posted September 23, 2009 Share Posted September 23, 2009 I have WHMCS on a subdomain using the "Portal" template. I don't want to show anything else then the log in form on the front page (https://sub.domain.tld/). To do this I have replaced all the content on the homepage.tpl with the log in form. The problem with this, is that when somebody already is logged in and visit https://sub.domain.tld/ they is just presented with the log in form, but they should be presented with the content like they is when visiting https://sub.domain.tld/clientarea.php The question is: How can I change the homepage.tpl to be exact the same as clientarea.php? I have tried to just copy the content from clientarea.php to homepage.tpl, but that did not work. At the moment I need to link all my pages and email templates to https://sub.domain.tld/clientarea.php , but I really would like to link them to just https://sub.domain.tld/ Thanks for any ideas and help on this! 0 Quote Link to comment Share on other sites More sharing options...
ditto Posted September 23, 2009 Author Share Posted September 23, 2009 Sorry, I mixed up clientarea.php and clientareahome.tpl. It should be: "I have tried to just copy the content from clientareahome.tpl to homepage.tpl, but that did not work." 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted September 23, 2009 Share Posted September 23, 2009 In your login form put dologin.php?goto=client area (or whatever the pagetitle is for that page is) 0 Quote Link to comment Share on other sites More sharing options...
ditto Posted September 23, 2009 Author Share Posted September 23, 2009 I am sorry I was not being clear of what my problem is. I already have dologin.php?goto=clientarea in the log in form. The problem is that when you already is logged in and you go to https://sub.domain.tld/ you are presented with the log in form in spite of that you already is logged in. Therefore I have to link to https://sub.domain.tld/clientarea.php , but I would like to link to https://sub.domain.tld/ if I can find a fix for this. Thanks! 0 Quote Link to comment Share on other sites More sharing options...
turbex Posted September 23, 2009 Share Posted September 23, 2009 you need use conditionals in your template... {if $login} show links... other thing... {else} show form {/if} 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted September 23, 2009 Share Posted September 23, 2009 {if $loggedin} Show content {else} Show Login Form {/if} 0 Quote Link to comment Share on other sites More sharing options...
meneketehe Posted September 23, 2009 Share Posted September 23, 2009 here is what I did on my .htaccess file DirectoryIndex clientarea.php index.html index.php 0 Quote Link to comment Share on other sites More sharing options...
ditto Posted September 24, 2009 Author Share Posted September 24, 2009 here is what I did on my .htaccess file DirectoryIndex clientarea.php index.html index.php Thank you, meneketehe! This fixed the problem, and did exact what I was trying to do. 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.