Jump to content

Only login and password reminder on index.php?


meeven

Recommended Posts

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.

Link to comment
Share on other sites

  • WHMCS CEO

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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">

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated