View Single Post
  #24  
Old 04-27-2007, 09:52 AM
  shishapipe's Avatar 
shishapipe shishapipe is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: London
Posts: 47
 

Default Re: Displaying customer passwords to admin

Quote:
Originally Posted by BCSE
Here's another quick mod I find useful. Good for sites that the admin frequently need customer's passwords.

For 4.0.8, find main/register_account.tpl (other versions I think it's just in main/register.tpl)
and look for this code:
Code:
<TR> <TD align="right">{$lng.lbl_password}</TD> <TD><FONT class="Star">*</FONT></TD> <TD nowrap><INPUT type="password" id="passwd1" name="passwd1" size="32" maxlength="32" value="{$userinfo.passwd1}"> {if $reg_error ne "" and $userinfo.passwd1 eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR>

And make the <input> tag look like this:
Code:
<INPUT {if $usertype eq "A" or $usertype eq "P"} type=text {else} type="password" {/if} id="passwd1" name="passwd1" size="32" maxlength="32" value="{$userinfo.passwd1}">

This should work in all 3.x and 4.x versions of X-cart. All you have to do is find similar code and add the {if}{else}{/if} statement in the <input> tag.

Carrie



Works well in 4.1.6 Thanks
__________________
Regards Maxking

SERVER: Microsoft-IIS/5.0
MYSQL Server: 4.0.18-NT
PERL: 5.006001
PHP: 4.3.6
X-CART pro: 4.3
X-AOM: 4..3
X-RMA: 4..3X-FancyCategories 4.3
Skin: Own Design
Marketing Manager Professional 3.0 Bundle
Reply With Quote