Bucket Posted May 19, 2009 Share Posted May 19, 2009 Can someone help me out? I would like to make PHP post the persons account information. I want it to show only when the person is logged in. Something in this format. FirstName, LastName Address1 , Address2 State, City, AreaCode Country EMAIL@EMAIL.COM Anyone have a code to be able to show the clients information in the Client Area? Its for 3.8.1 I will be upgrading to v4 soon. 0 Quote Link to comment Share on other sites More sharing options...
hightekhosting Posted May 19, 2009 Share Posted May 19, 2009 Bucket, This is already included in the client area (V4 Portal theme) within V4, but if your using your own theme, you can load the bits of info you need with the following smartys (you should be able to work out what one is for what ): {$clientsdetails.firstname}{$clientsdetails.lastname} {if $clientsdetails.companyname}({$clientsdetails.companyname}){/if}</strong><br /> {$clientsdetails.address1}, {$clientsdetails.address2}<br /> {$clientsdetails.city}, {$clientsdetails.state}, {$clientsdetails.postcode}<br /> {$clientsdetails.countryname} {$clientsdetails.email} Hopefully that helps you a bit. Cheers, Dale 0 Quote Link to comment Share on other sites More sharing options...
hightekhosting Posted May 19, 2009 Share Posted May 19, 2009 FYI, the entire section of code is: {if $loggedin} <p class="header">{$LANG.accountinfo}</p> <p><strong>{$clientsdetails.firstname} {$clientsdetails.lastname} {if $clientsdetails.companyname}({$clientsdetails.companyname}){/if}</strong><br /> {$clientsdetails.address1}, {$clientsdetails.address2}<br /> {$clientsdetails.city}, {$clientsdetails.state}, {$clientsdetails.postcode}<br /> {$clientsdetails.countryname}<br /> {$clientsdetails.email}<br /><br /> {if $addfundsenabled}<img src="templates/{$template}/images/icons/money.gif" alt="Add Funds" width="22" height="22" border="0" class="absmiddle" /> <a href="clientarea.php?action=addfunds">{$LANG.addfunds}</a>{/if}</p> <p class="header">{$LANG.accountstats}</p> <p>{$LANG.statsnumproducts}: <strong>{$clientsstats.productsnumactive}</strong> ({$clientsstats.productsnumtotal})<br /> {$LANG.statsnumdomains}: <strong>{$clientsstats.numactivedomains}</strong> ({$clientsstats.numdomains})<br /> {$LANG.statsnumtickets}: <strong>{$clientsstats.numtickets}</strong><br /> {$LANG.statsnumreferredsignups}: <strong>{$clientsstats.numaffiliatesignups}</strong><br /> {$LANG.statscreditbalance}: <strong>{$clientsstats.creditbalance}</strong><br /> {$LANG.statsdueinvoicesbalance}: <strong>{if $clientsstats.numdueinvoices>0}<span class="red">{/if}{$clientsstats.dueinvoicesbalance}{if $clientsstats.numdueinvoices>0}</span>{/if}</strong></p> {else} <form method="post" action="{$systemsslurl}dologin.php"> <p class="header">{$LANG.clientlogin}</p> <p><strong>{$LANG.email}</strong><br /> <input name="username" type="text" size="25" /> </p> <p><strong>{$LANG.loginpassword}</strong><br /> <input name="password" type="password" size="25" /> </p> <p> <input type="checkbox" name="rememberme" /> {$LANG.loginrememberme}</p> <p> <input type="submit" class="submitbutton" value="{$LANG.loginbutton}" /> </p> </form> <p class="header">{$LANG.knowledgebasesearch}</p> <form method="post" action="knowledgebase.php?action=search"> <p> <input name="search" type="text" size="25" /><br /> <select name="searchin"> <option value="Knowledgebase">{$LANG.knowledgebasetitle}</option> <option value="Downloads">{$LANG.downloadstitle}</option> </select> <input type="submit" value="{$LANG.go}" /> </p> </form> {/if} Comes straight out of the V4 portal theme/template Dale 0 Quote Link to comment Share on other sites More sharing options...
Bucket Posted May 20, 2009 Author Share Posted May 20, 2009 I need it for v3.8.1 Thank You. 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.