robertg0123 Posted August 5, 2008 Share Posted August 5, 2008 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 More sharing options...
chickendippers Posted August 5, 2008 Share Posted August 5, 2008 Look under Utilities > Integration Code Link to comment Share on other sites More sharing options...
robertg0123 Posted August 5, 2008 Author Share Posted August 5, 2008 That wont work. I need it to be in this coding. If I do it that way it comes out as a button which is what I do not want. I want it to be text like designed in the template and using the code I provided. Link to comment Share on other sites More sharing options...
DataHosts Posted August 6, 2008 Share Posted August 6, 2008 <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 More sharing options...
robertg0123 Posted August 6, 2008 Author Share Posted August 6, 2008 I need the <div class="margin-right"><a href="#">Login</a></div> to work as the login button. Thats all I need. Link to comment Share on other sites More sharing options...
DataHosts Posted August 6, 2008 Share Posted August 6, 2008 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 More sharing options...
robertg0123 Posted August 6, 2008 Author Share Posted August 6, 2008 I want the "<a href" login part to be the login button. I dont want an additional login button after that. Link to comment Share on other sites More sharing options...
BAJI26 Posted August 6, 2008 Share Posted August 6, 2008 Do the below: <div class="margin-right"><a href="dologin.php">Login</a></div> Link to comment Share on other sites More sharing options...
robertg0123 Posted August 6, 2008 Author Share Posted August 6, 2008 If I do that all it does is go to that page. it doesn't log me in using the boxes below that button. Link to comment Share on other sites More sharing options...
BAJI26 Posted August 6, 2008 Share Posted August 6, 2008 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 More sharing options...
robertg0123 Posted August 6, 2008 Author Share Posted August 6, 2008 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 More sharing options...
DataHosts Posted August 6, 2008 Share Posted August 6, 2008 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 More sharing options...
joe123 Posted August 6, 2008 Share Posted August 6, 2008 and a "Thank you guys for trying to help" wouldn't do any harm Link to comment Share on other sites More sharing options...
juiced Posted August 7, 2008 Share Posted August 7, 2008 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 More sharing options...
BAJI26 Posted August 7, 2008 Share Posted August 7, 2008 I guess it works never really paid any attention to it. Link to comment Share on other sites More sharing options...
joe123 Posted August 7, 2008 Share Posted August 7, 2008 How does the remember me work? i.e. do i need to add a script somewhere for this function to work from outside whmcs? you need an external script to store a cookie in the user's computer. here is one for you , and with a little modification you can make it work http://javascript.internet.com/forms/remember-me.html Link to comment Share on other sites More sharing options...
juiced Posted August 7, 2008 Share Posted August 7, 2008 Thanks Joe123 Link to comment Share on other sites More sharing options...
magga Posted August 8, 2008 Share Posted August 8, 2008 I really wonder about hosting providers who have issues with a standard login form using a cake template and then act like this. Agreed on that one. Link to comment Share on other sites More sharing options...
cafreamoroso Posted August 8, 2008 Share Posted August 8, 2008 this form would have problems if user posts incorrect data as it would redirect them to the normal login and there it would show the error msg. Link to comment Share on other sites More sharing options...
robertg0123 Posted August 9, 2008 Author Share Posted August 9, 2008 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 More sharing options...
bear Posted August 10, 2008 Share Posted August 10, 2008 This has gone far enough, I think. The OP has his solution, let others decide what they want to about the way it went down. </thread> Link to comment Share on other sites More sharing options...
Recommended Posts