Jump to content

Login from client area shown on homepage


Revolution

Recommended Posts

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>

Link to comment
Share on other sites

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>

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