| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
My Account Login | ||||
|
|
Thread Tools | Search this Thread |
#61
|
|||||||||
|
|||||||||
Re: My Account Login
I think I had a cup too much of caffeine, I jump right to the code without reading that part. Thanks for your prompt answer, that solved the problem.
__________________
"The point is, to make so much money, that money isn't the point anymore." Pro Version 4.0.19 Gold Version 4.1.3 Linux |
|||||||||
#62
|
|||||||
|
|||||||
Re: Login on separate "My Account" page
Hi,
here is a modified auth_mod.tpl that works very good with my 4.0.17 version. ------------------------------------------------------------------------------------- {* $Id: auth_mod.tpl,v 1.39 2004/06/28 11:38:38 mclap Exp $ *} {capture name=menu} <TABLE border="0" cellpadding="0" cellspacing="1" width="50%"> {if $config.General.use_https_login eq "Y"} {assign var="form_url" value=$https_location} {else} {assign var="form_url" value=$current_location} {/if} <FORM action="{$form_url}/include/login.php" method="post" name="authform"> <INPUT type="hidden" name="{$XCARTSESSNAME}" value="{$XCARTSESSID}"> {if $config.General.use_secure_login_page eq "Y"} {* use_secure_login_page *} <TR> <TD align="left"> {if $usertype eq "C"} {assign var="slogin_url" value=$catalogs_secure.customer} {elseif $usertype eq "P" and $active_modules.Simple_Mode eq "Y" or $usertype eq "A"} {assign var="slogin_url" value=$catalogs_secure.admin} {elseif $usertype eq "P"} {assign var="slogin_url" value=$catalogs_secure.provider} {elseif $usertype eq "B"} {assign var="slogin_url" value=$catalogs_secure.partner} {/if} {include file="buttons/secure_login.tpl"} </TD> </TR> {else} {* use_secure_login_page *} <TR> <TD align="left"> <TABLE width="100%" border="0" align="left"> <TR><TD align="left">{$lng.lbl_username}</TD><TD align="left"><INPUT type="text" name="username" size="28" value="{#default_login#}"></TD></TR> <TR><TD align="left">{$lng.lbl_password}</TD><TD align="left"><INPUT type="password" name="password" size="28" value="{#default_password#}"> <INPUT type="hidden" name="mode" value="login"> {if $active_modules.Simple_Mode ne "" and $usertype ne "C" and $usertype ne "B"} <INPUT type="hidden" name="usertype" value="P"> {else} <INPUT type="hidden" name="usertype" value="{$usertype}"> {/if} <INPUT type="hidden" name="redirect" value="{$redirect}"></TD></TR> <TR> <TD height="50" align="left"></TD> <TD height="50" align="left"> {if $js_enabled} <A href="javascript: document.authform.submit()" class="VertMenuItems"> {include file="buttons/login_menu.tpl"}</A> {else} {include file="buttons/login_menu.tpl"} {/if} {/if} {if $usertype eq "C" or ($usertype eq "B" and $config.XAffiliate.partner_register eq "Y")} <br><br> <A href="register.php" class="VertMenuItems"> {include file="buttons/create_profile_menu.tpl"}</A> </TD> </TR> {/if} {if $login eq ""} <TR> <TD height="24" nowrap class="VertMenuItems"> <A href="help.php?section=Password_Recovery" class="VertMenuItems">{$lng.lbl_recover_password}< /A> </TD> </TR> {/if} </TD></TR></TABLE> <br><br> {if $usertype eq "P" and $active_modules.Simple_Mode eq "Y" or $usertype eq "A"} <TR> <TD colspan="2" align="left"> <DIV align="left">{$lng.lbl_insecure_login} </DIV> </TD> </TR> {/if} {if $usertype eq "C"} <TR> <TD align="left" colspan="2"> {if $js_enabled} <A href="{$js_update_link}" class="SmallNote"> {$lng.txt_javascript_disabled}</A> {else} <A href="{$js_update_link}" class="SmallNote">{$lng.txt_javascript_enabled}</A> {/if} </TD> </TR> {/if} </FORM> </TABLE> {/capture} { include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu }
__________________
4.0.17 fancy cat. aom sns |
|||||||
#63
|
|||||||
|
|||||||
Re: My Account Login
Can someone tell me why my javascript buttons don't seem to work when I use this MOD? There is a hole in my wall from the continual banging of my head!
auth_mod.tpl as follows: Code:
TIA
__________________
X-Cart Gold v4.0.17 ~ EWD Hosting! |
|||||||
#64
|
|||||||
|
|||||||
Re: My Account Login
First of all Ranger, when someone posts a mod always look at their signature to see what version of X-Cart they are running, the writer of this mod is on 4.1.x. When I first put the mod in place, a lot of the java buttons didn't work for me at all, so I just took my existing auth.tpl and made a copy of it into auth_mod.tpl now everything worked but didn't quite look the way I wanted so I edited it to look how I wanted it to. Simple.
Just get creative and look at the instructions first (the important part to notice was version 4.1.x) Since I noticed that I didn't even attempt to look at his code and figure out what was wrong, I just copied in code that I knew was correct. Just take it a little slow, and save the dry wall in your office from the head imprints Nice mod by the way, nothing fancy, just simple and functional. Opens a lot of possibilities.
__________________
Jason Diehl Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/ |
|||||||
#65
|
|||||||
|
|||||||
Re: My Account Login
Got it working...
Thanks! I've already done some customizing with much more to go with this one!
__________________
X-Cart Gold v4.0.17 ~ EWD Hosting! |
|||||||
#66
|
|||||||
|
|||||||
Re: My Account Login
That's one thing thatr should be noted in each post: Not what version your sig says, but what version the mod was written for. This was one of my ealier attempts and is a bit antiquated.
Thanks, Mike
__________________
4.1.9 |
|||||||
#67
|
|||||||
|
|||||||
Re: My Account Login
Quote:
Thanks for this! Works great!
__________________
X-Cart Version 4.1.3 |
|||||||
#68
|
|||||||
|
|||||||
Re: Login on separate "My Account" page
Quote:
This got it working for v. 4.0.19 as well...thanks a lot!
__________________
Version 4.0.19 |
|||||||
#69
|
|||||||
|
|||||||
Re: Login on separate "My Account" page
Works well with X-cart 4.1.3
__________________
X-Cart Gold version 4.4.4 X-Cart directory /home/web/u/ugchweb/cart PHP 5 MySQL server 5 |
|||||||
#70
|
|||||||
|
|||||||
Re: My Account Login
thundernugs THANKS
In 4.1.3 your solution seems to work great! My only need is to have the user be redirected after successfully creating a new, or modifying an existing profile - (in my cart) they remain on the Modify Profile page. I think the right flow would be to go back to thundernugs "Login to Your Account" page. any ideas? Quote:
__________________
Version 4.1.3 |
|||||||
|
|||
X-Cart forums © 2001-2020
|