Revolution Posted August 28, 2008 Share Posted August 28, 2008 This is the special code I use in the client area for logins. How can I use this on my regular .php homepage of my site? How do I change the formatting of this to make it work. The regular integration code shonw in WHMCS for adding a login to a homepage will not work for this code is much more complex. <td><table align="right" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="loginbox_bg"><table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="loginbox">{if !$loggedin}<form method="post" action="dologin.php?goto=clientarea"><strong>User Name :</strong> <input name="username" type="text" size="18" /> <strong>Password :</strong> <input name="password" type="password" size="18" /> <input name="image" type="image" src="templates/{$template}/images/go.png" style="padding:0px;" /></form>{else}<strong>Hi {$clientsdetails.firstname}, You are Logged-on</strong> <a href="logout.php">( Click Here to Logout )</a>{/if}</td> </tr> </table></td> </tr> </table></td> </tr> </table></td> 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted August 28, 2008 Share Posted August 28, 2008 Here a topic on that -->> http://forum.whmcs.com/showthread.php?t=12933 0 Quote Link to comment Share on other sites More sharing options...
Revolution Posted August 28, 2008 Author Share Posted August 28, 2008 The problem now is that for some reason it still wants to go to the client area page. How do you get it to stay on current page? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted August 28, 2008 Share Posted August 28, 2008 Try this, it should solve your problem <td>{if !loggedin}<table align="right" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="loginbox_bg"><table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="loginbox">{if !$loggedin}<form method="post" action="dologin.php?goto=clientarea"><strong>User Name :</strong> <input name="username" type="text" size="18" /> <strong>Password :</strong> <input name="password" type="password" size="18" /> <input name="image" type="image" src="templates/{$template}/images/go.png" style="padding:0px;" /></form>{else}<strong>Hi {$clientsdetails.firstname}, You are Logged-on</strong> <a href="logout.php">( Click Here to Logout )</a>{/if}</td> </tr> </table></td> </tr> </table></td> </tr> </table>{/if}</td> 0 Quote Link to comment Share on other sites More sharing options...
Revolution Posted August 28, 2008 Author Share Posted August 28, 2008 Try this, it should solve your problem For some reason, the code is not displaying correctly 0 Quote Link to comment Share on other sites More sharing options...
Revolution Posted August 28, 2008 Author Share Posted August 28, 2008 Try this, it should solve your problem Tried this and it did not work. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted August 30, 2008 Share Posted August 30, 2008 @Revolution - I did not pick up that your login form was outside of the WHMCS directory. I did search through the forums and found this post by Matt http://forum.whmcs.com/showpost.php?p=67488&postcount=10 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.