Jump to content

Custom Login Page HELP!!!


Recommended Posts

Hello.. I reciently purchased a template and was told you could intergrade WHMCS into it.

 

Can you help me code it correctly..

 

HERES THE CODE IT HAS:

<div id="login-box">
<div class="login">cPanel and Webmail</div>
<div class="margin-right"><a href="#">Login</a></div>

<form action="#" method="post" id="form">
<input type="text" name="username" value="Username" class="textbox" />
<input type="text" name="password" value="Password" class="textbox" />
</form>

</div>
</div>
</div>

Link to comment
Share on other sites


<div id="login-box">
<div class="login">cPanel and Webmail</div>
<div class="margin-right"><a href="#">Login</a></div>

<form action="http://clients.gopherhosts.com/dologin.php?goto=clientarea" method="post" id="form">
Email Address: <input type="text" name="username" size="50">
<input type="text" name="username" class="textbox" />
<input type="password" name="password" password" size="20" class="textbox" />
<input type="submit" value="Login">
</form>

</div>
</div>
</div>

 

 

You will need to clean it up, but this is the basic

Link to comment
Share on other sites

Above code is way wrong as it has an extra textbox not needed....need to sleep some as things are getting blurry

 


<div id="login-box">
<div class="login">Client Area Login</div>
<div class="margin-right"><a href="http://your.whmcspath.tld/dologin.php?goto=clientarea">Login</a></div>

<form action="http://your.whmcspath.tld/dologin.php?goto=clientarea" method="post" id="form">
<input type="text" name="username" class="textbox" />
<input type="password" name="password" password" size="20" class="textbox" />
<input type="submit" value="Login">
</form>

</div>
</div>
</div>

Link to comment
Share on other sites

If I do that all it does is go to that page. it doesn't log me in using the boxes below that button.

 

Here's what I use:

 


        <form method="post" action="dologin.php">
           <div>
            <img src="images/spacer.gif" width="1" height="5" alt="" /><br /><br />
             <div><table border="0" cellspacing="0" cellpadding="1">
              <tr><td><div><span>Email:</span></div></td>
              <td><input name="username" type="text" class="navinput" /></td></tr>
              <tr></tr>
              <tr><td><div><span>Password:</span></div></td><td><input name="password" type="password" class="navinput" /></td></tr>
             </table></div>
            <input type="checkbox" name="rememberme" /> Remember Me   <input type="submit" class="submitbutton" value="Login" />
           </div>
         </form>

Link to comment
Share on other sites

I figured it out myself...

 

<div id="login-box">
<div class="login">cPanel and Webmail</div>
<div class="margin-right"><a href="#" onclick="document.forms[0].submit()">Login</a></div>

<form action="http://www.xcellenthost.com/whmcs/dologin.php?goto=clientarea" method="post" id="form">
<input type="text" name="username" value="Username" class="textbox" />
<input type="text" name="password" value="Password" class="textbox" />
</form>

</div>
</div>
</div>

Link to comment
Share on other sites

Yourself....I am sorry but it appears that you did not know what you were doing at the start asking for help. I see you may have figured out the button you wanted, but for you to say you figured out yourself is just harsh.

 

I really wonder about hosting providers who have issues with a standard login form using a cake template and then act like this.

 

Note to self....let user figure out on own next time

Link to comment
Share on other sites

How does the remember me work? i.e. do i need to add a script somewhere for this function to work from outside whmcs?

 

Here's what I use:

 


        <form method="post" action="dologin.php">
           <div>
            <img src="images/spacer.gif" width="1" height="5" alt="" /><br /><br />
             <div><table border="0" cellspacing="0" cellpadding="1">
              <tr><td><div><span>Email:</span></div></td>
              <td><input name="username" type="text" class="navinput" /></td></tr>
              <tr></tr>
              <tr><td><div><span>Password:</span></div></td><td><input name="password" type="password" class="navinput" /></td></tr>
             </table></div>
            <input type="checkbox" name="rememberme" /> Remember Me   <input type="submit" class="submitbutton" value="Login" />
           </div>
         </form>

Link to comment
Share on other sites

Yourself....I am sorry but it appears that you did not know what you were doing at the start asking for help. I see you may have figured out the button you wanted, but for you to say you figured out yourself is just harsh.

 

I really wonder about hosting providers who have issues with a standard login form using a cake template and then act like this.

 

Note to self....let user figure out on own next time

 

See this type of host is just embarrassing to be in competition with. They have to go on the forums and make other hosts look bad so that they themselves can feel superior and as a way to advertise their own website as your name, is well, pathetic. Also to say I figured it out myself isn't really harsh because I, myself, did figure it out. I had a few suggestions from other people on the forum and I thank them. Although I thank them, I do not feel they did much to help anyway because I stated i did not want an additional button and all gave me one without even paying much attention to my post.

 

So before you go on the forums trying to make other people look bad, just think your making yourself look pathetic as well.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • 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