Jump to content

Show client Account Information


Bucket

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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