X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Displaying customer passwords to admin (https://forum.x-cart.com/showthread.php?t=10846)

BCSE 08-02-2006 05:26 AM

Quote:

Originally Posted by equinetackstore
Great Mod Carrie:

Worked well in 4.018. Will be a great asset when we open live.


Great! Glad we could help!

Carrie

kevinrm 10-04-2006 09:46 PM

Re: Displaying customer passwords to admin
 
Works in 4.1.3 as well...

zachvenice 03-02-2007 09:48 AM

Re: Displaying customer passwords to admin
 
thanks for this nice mod, but is there also a way for the password to show up in the 'fulfillment staff' view of the order? since this level of user cannot see/modify user profiles, they can't get to the page where this post's mod shows the password. any help would be great!

shishapipe 04-27-2007 09:52 AM

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

shishapipe 05-16-2007 05:02 AM

Re: Displaying customer passwords to admin
 
Just to confirm BCSE Work

for 4.1.7

skin1/main/register_account.tpl

find this section

<tr>
<td align="right">{$lng.lbl_password}</td>
<td><font class="Star">*</font></td>
<td nowrap="nowrap"><input type="password" id="passwd1" name="passwd1" size="32" maxlength="64" value="{$userinfo.passwd1}" />
{if $reg_error ne "" and $userinfo.passwd1 eq ""}<font class="Star">&lt;&lt;</font>{/if}
</td>
</tr>

and replace with


<tr>
<td align="right">{$lng.lbl_password}</td>
<td><font class="Star">*</font></td>
<td nowrap="nowrap"><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}" />
{if $reg_error ne "" and $userinfo.passwd1 eq ""}<font class="Star">&lt;&lt;</font>{/if}
</td>
</tr>


Works a treat thanks go out to BSCE

hoosierglass 05-22-2007 04:41 AM

Re: Displaying customer passwords to admin
 
Quote:

Originally Posted by shishapipe
Just to confirm BCSE Work for 4.1.7


I had this working in 2 minutes. It works like a charm.

Thanks for the work Carrie and thanks to shishapipe for bringing it up to date by verifying it worked on 4.1.7

BCSE 05-22-2007 09:05 AM

Re: Displaying customer passwords to admin
 
Great! Glad this is still useful! :)

Carrie

premieroffroad 07-20-2007 11:31 AM

Re: Displaying customer passwords to admin
 
very nice. thanks

vtonya 07-25-2007 11:56 AM

Re: Displaying customer passwords to admin
 
Dear shishapipe,
i did it for 4.1.7, works great!
Thanks to you and BSCE )))

hironao 08-31-2007 02:07 AM

Re: Displaying customer passwords to admin
 
worked perfect ! 4.0.13 gold.

Thank you so much !


All times are GMT -8. The time now is 06:41 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.