ethersec Posted November 5, 2009 Share Posted November 5, 2009 Wondering if anyone can help on this, basically just want anyone that hits the default whmcs homepage (index.php) to have to login to see anything. This is what I have in homepage.tpl.. {if $loggedin} <table> " table data " </table> {else} <!-- not sure about this part --> {include file="secur_portal/login.tpl"} {/if} ...this does show the login page however after loging in it still only shows the login page and not the {if $loggedin} table data..ie: knowledge base, serverstatus, announcements, ...? I should note that I also have a {if $loggedin} in the header.tpl that controls the client menu that works fine. Now im just trying to add in this for the home page data. Any help would be greatly appreciated! Thanks. 0 Quote Link to comment Share on other sites More sharing options...
ethersec Posted November 5, 2009 Author Share Posted November 5, 2009 Wondering if anyone can help on this, basically just want anyone that hits the default whmcs homepage (index.php) to have to login to see anything. This is what I have in homepage.tpl.. {if $loggedin} <table> " table data " </table> {else} <!-- not sure about this part --> {include file="secur_portal/login.tpl"} {/if} ...this does show the login page however after loging in it still only shows the login page and not the {if $loggedin} table data..ie: knowledge base, serverstatus, announcements, ...? I should note that I also have a {if $loggedin} in the header.tpl that controls the client menu that works fine. Now im just trying to add in this for the home page data. Any help would be greatly appreciated! Thanks. -------------------------------------- I should correct/clarify that it does not appear to actually login as the header.tpl {$if loggedin} client menu function (that works on it own) does not work with the homepage.tpl {$if loggedin} bit added now. again, Thanks.. 0 Quote Link to comment Share on other sites More sharing options...
sino Posted November 5, 2009 Share Posted November 5, 2009 Wondering if anyone can help on this, basically just want anyone that hits the default whmcs homepage (index.php) to have to login to see anything. How about create your own index page? 0 Quote Link to comment Share on other sites More sharing options...
sino Posted November 6, 2009 Share Posted November 6, 2009 More elaboration: Create a custom index page first, then rename the whmcs original index page to supportcenter.php and update the index.php link to supportcenter.php on footer.tpl. Example: http://www.sinoland.com/whmcs/?language=English Hope this helps. 0 Quote Link to comment Share on other sites More sharing options...
ethersec Posted November 7, 2009 Author Share Posted November 7, 2009 Sino, Ive taken your advise as a work around and its worked great, I was brain locked on making the other way work but this makes more sense and is working fine. Thanks for your help! 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 7, 2009 Share Posted November 7, 2009 {if $loggedin}XXXX{else}ZZZZ{/if} will work in the homepage.tpl If its not then maybe you might have an un-closed {/if} from when you installed the client menu That would probably explain why the menu doesn't work on the homepage correctly. Double check your client menu tags. 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.