meeven Posted October 5, 2007 Share Posted October 5, 2007 I would like to show just the login form and the password reminder field on index.php In effect, something like this: http://portal.servint.net Should I just copy the relevant stuff from login.tpl and passwordreminder.tpl into homepage.tpl and remove everything else? If I did this, will a customer still be taken to the client area on logging in? Not too many changes there. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted October 5, 2007 WHMCS CEO Share Posted October 5, 2007 You can copy the code but make sure you update the form action code from the login.tpl template file to submit to "dologin.php" as the {$formaction} variable it uses in the login.tpl template file won't be available on the homepage.tpl template page. Matt 0 Quote Link to comment Share on other sites More sharing options...
meeven Posted October 5, 2007 Author Share Posted October 5, 2007 Thank you for that important tip. I see the following in login.tpl: {$LANG.loginintrotext}</p> <p align="center"> <form action="{$formaction}" method="POST"> {if $incorrect} <p align="center">{$LANG.loginincorrect}</p> Should I change <form action="{$formaction}" method="POST"> to <form action="{$dologin.php}" method="POST"> in homepage.tpl? Thanks, Meeven 0 Quote Link to comment Share on other sites More sharing options...
Neil Hennigan Posted October 5, 2007 Share Posted October 5, 2007 Meeven - I think you'll find code for this in your WHMCS admin area. Utilities > Integration Code Neil 0 Quote Link to comment Share on other sites More sharing options...
DigitalEnigma Posted October 5, 2007 Share Posted October 5, 2007 Thank you for that important tip. I see the following in login.tpl: {$LANG.loginintrotext}</p> <p align="center"> <form action="{$formaction}" method="POST"> {if $incorrect} <p align="center">{$LANG.loginincorrect}</p> Should I change <form action="{$formaction}" method="POST"> to <form action="{$dologin.php}" method="POST"> in homepage.tpl? Thanks, Meeven Change it to: <form action="dologin.php" method="POST"> 0 Quote Link to comment Share on other sites More sharing options...
meeven Posted October 7, 2007 Author Share Posted October 7, 2007 Neil and Neil-UKWSD, many thanks. Your suggestions worked. 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.