Yanix Posted February 19, 2008 Share Posted February 19, 2008 Hey. I'm pretty new and I've had my WHMCS license for nearly a month now but I'm redesigning the site and I wondered if there was a way to do the following: Add A Login-Logout Button - See if they're logged in, if so, display a logout button and a login form if they're logged out etc. Add a My-Cart Section so they can see all products in the cart from my actual site. Thanks It's greatly appreciated, R. Stubbs, Yanix Web Solutions 0 Quote Link to comment Share on other sites More sharing options...
Jordan Posted February 19, 2008 Share Posted February 19, 2008 {if $loggedin} <a href="logout.php">{$LANG.logouttitle}</a> {else} <a href="clientarea.php">{$LANG.loginbutton}</a>{/if} Unless you really do want the form then you can just do: {if $loggedin} <a href="logout.php">{$LANG.logouttitle}</a> {else} <form action="{$formaction}" method="post"> {if $incorrect}<p class="error">{$LANG.loginincorrect}</p>{/if} <table id="funds" cellspacing="0" cellpadding="0"> <tr> <td class="fieldarea">{$LANG.loginemail}:</td> <td><input type="text" name="username" size="40" value="{$username}" /></td> </tr> <tr> <td class="fieldarea">{$LANG.loginpassword}:</td> <td><input type="password" name="password" size="25" value="{$password}" /></td> </tr> </table> <p align="center"><input type="submit" value="{$LANG.loginbutton}" /><br /><input type="checkbox" name="rememberme"{if $rememberme} checked="checked"{/if} /> {$LANG.loginrememberme}</p> </form> {/if} 0 Quote Link to comment Share on other sites More sharing options...
Yanix Posted February 19, 2008 Author Share Posted February 19, 2008 Is there a way to do this on my actual website? I mean, like include a certain file and be able to access user stuff? 0 Quote Link to comment Share on other sites More sharing options...
dstemper Posted February 19, 2008 Share Posted February 19, 2008 my recommendation is to place a support ticket, Matt is affordable, fast, and 100% top teired in all aspects of this program. I have asked for a few things, he delivered within hours for a job that would have taken days to complete. If this is important to you and your site, have Matt do it. This is one of the best programs, support and community I have ever dealt with. 0 Quote Link to comment Share on other sites More sharing options...
Jordan Posted February 19, 2008 Share Posted February 19, 2008 Is there a way to do this on my actual website? I mean, like include a certain file and be able to access user stuff? You have to edit the template files (.tpl) in order for changes to take effect in your client area. You'll find them under: whmcsdirectory/templates/templatename/filename.tpl. You'll open that up, and edit it. 0 Quote Link to comment Share on other sites More sharing options...
JasonO Posted February 19, 2008 Share Posted February 19, 2008 I think he means to check if someone is logged in / logged out ouside WHMCS itself? You would need to check the session somehow and you would need a lot of the WHMCS code to know what to check etc. 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.