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)
-   -   Allowing admin to see customers password (https://forum.x-cart.com/showthread.php?t=3268)

jaymon 06-19-2003 12:41 PM

Allowing admin to see customers password
 
Thought I'd post this in case anyone else wanted something similar. Not sure if this is the best way to achieve it, but it definitely works.

Edit your main/register.tpl and look for the parts where the user enters and confirms their password. Below is the change I made.

Quote:

<tr valign=middle>
<td align=right>Password</td>
<td><font class=Star>*</font></td>
<td nowrap>
{if $smarty.get.mode eq "update" and $smarty.get.usertype eq "C"}
<input name=passwd1 size=32 maxlength=32 value="{$userinfo.passwd1}">
{else}
<input type=password name=passwd1 size=32 maxlength=32 value="{$userinfo.passwd1}">
{/if}
{if $reg_error ne "" and $userinfo.passwd1 eq ""}<font class=Star>&lt;&lt;</font>{/if}
</td>
</tr>

<tr valign=middle>
<td align=right>Confirm Password</td>
<td><font class=Star>*</font></td>
<td nowrap>
{if $smarty.get.mode eq "update" and $smarty.get.usertype eq "C"}
<input name=passwd2 size=32 maxlength=32 value="{$userinfo.passwd2}">
{else}
<input type=password name=passwd2 size=32 maxlength=32 value="{$userinfo.passwd2}">
{/if}
{if $reg_error ne "" and $userinfo.passwd2 eq ""}<font class=Star>&lt;&lt;</font>{/if}
</td>
</tr>

Now when the admin looks at a user's detail in the admin screen the passwords are shown in the password fields instead of the usual bullets. When users sign up, they'll see the obfuscated password fields.

If someone's got a cleaner way to do this, I'm all ears. If not, then this works well enough for me.

HTH

shan 06-19-2003 01:43 PM

moved to custom templates :wink:

DataViking 08-09-2003 08:38 PM

Thank you
 
nice 8)
thank you

wild boar 09-24-2003 08:17 PM

thanks! it worked..

Is there a website that has all of the hacks, fixes and mods for x-cart?

If not someone should start up a website called x-cart hacks..

I'd help out on a site like this if several people helped out.. I don't have time to do another website..

something like phpbbhacks.com (which I use when in need of mods)

If anyone wants to go in like a site like this, pm me or something.. It would most likely be non-profit.. Just a site to help out all of the webmasters that use x-cart

If there's already a site like this, what's the url.. I'd be interested in going there

shan 09-25-2003 01:40 AM

Thats pretty much what the custom templates forum here is for

wild boar 09-25-2003 01:43 AM

I understand that.. but something more organized..

It would be nice to go to a site and see all the mods listed and such and just go to it

In the forums you don't know what mods there are without looking at each post

it was just an idea

shan 09-25-2003 02:03 AM

yeh, its just that there are so many versions / mods etc it gets hard.

We tried to only allow cutom mods to go in the custom templates folder and ask for people to always add the version numbers it will work for and write a useful, descriptive title.

DataViking 09-26-2003 01:39 AM

Quote:

Originally Posted by wild boar
thanks! it worked..

Is there a website that has all of the hacks, fixes and mods for x-cart?

If not someone should start up a website called x-cart hacks..

I'd help out on a site like this if several people helped out.. I don't have time to do another website..

something like phpbbhacks.com (which I use when in need of mods)

If anyone wants to go in like a site like this, pm me or something.. It would most likely be non-profit.. Just a site to help out all of the webmasters that use x-cart

If there's already a site like this, what's the url.. I'd be interested in going there


I think is a good idea, I got the name.
But I need your opinion.
WHat would be the best type of site for this;
a portal like nuke, xoops, etc...
or like a forum

V/R
bmaworld

wild boar 09-26-2003 02:06 AM

php nuke sucks.. every site looks the same that uses it.. the 3 colum stage..

I think you should go with a file download database with sql

and sort by author / date / version and categorize it by mod.

I saw you bought the name! Awsome! If you need my help with anything (design related, and ideas) I will help a little bit on my free time.. but only if it's non-profit.. I dont' believe it profiting from other people's mod's..

Also your going to have to get permission to put other people's mods on the site, and probably have a file upload on the page where other's can upload..

ask me if you need anything..

Gibberish 09-26-2003 02:52 PM

Quote:

Originally Posted by wild boar
php nuke sucks.. every site looks the same that uses it.. the 3 colum stage..


X cart is the exact same layout. Header, column on left, mid space, column on right, footer.


All times are GMT -8. The time now is 09:31 AM.

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