| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
#31
|
|||||||
|
|||||||
![]() I would love to have a separate login page as well but I get a Runtime Error when I try to login from the new page. Login from old method which still is using auth.tpl works fine. I know this looks very simple but I can't figure it out. Any help appreciated.
New PHP file customer_login.php in my Customer folder (not skin1/customer): <? require "./auth.php"; require $xcart_dir."/include/categories.php"; $smarty->assign("main", "customer_login"); $smarty->assign("location",$location); $smarty->display("customer/home.tpl"); ?> ************************************************** New .tpl file customer_login.tpl in my skin1/customer/main folder: {* $Id: customer_login.tpl Exp $ *} {assign var="last_location" value="My Account"} { include file="location.tpl" last_location=$last_location } {capture name=dialog} <TABLE border=0 cellPadding=0 cellSpacing=0 width=100%> <FORM action="{$xcart_web_dir}/include/login.php" method=post name=authform> <tr> <td class=VertMenuItems colspan=2> <font class=VertMenuItems>{$lng.lbl_username}</font> <input type=text name=username size="14" style="font-family: Verdana; font-size: 9px; border: 1px solid #0099CC; background-color: #FFFFFF; color:#000000"> <font class=VertMenuItems>{$lng.lbl_password}</font> <input type=password name=password size="14" style="font-family: Verdana; font-size: 9px; border: 1px solid #0099CC; background-color: #FFFFFF; color:#000000"> {if $js_enabled} {include file="buttons/go.tpl" style="button" type="input"} {else} {include file="buttons/go.tpl" style="button" type="input" align="middle"} {/if} <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> {if $usertype eq "C" or ($usertype eq "B" and $config.Modules.partner_register eq "Y")} <td height=24 align=left nowrap class=VertMenuItems><font size="0">Register {$lng.lbl_recover_password}</font></td> </tr> {/if} </td> </form> </table> {/capture} {include file="dialog.tpl" title="Returning Customer Login" content=$smarty.capture.dialog extra="width=100%"} ************************************************** **** Change made to common_templates.tpl: {elseif $main eq "customer_login"} {include file="customer/main/customer_login.tpl"} ************************************* The error I get is A Runtime Error Has Occurred... Line: 0 Error: Object doesn't support this property or method Running x-cart 3.5.1
__________________
---------------------------------------------------- X-Cart 3.5.1 \"Heavily Modified\" Win2000 Advanced Server/Apache 2.0.54 w/OpenSSL 0.9.7g PHP 4.4.0/MySQL 4.1.14-nt |
|||||||
#32
|
|||||||
|
|||||||
![]() Quote:
Thanks for this "shortcut" Problem is I after I log in, the page still displays the "secure login form" How do I get rid of that. My site: https://www.hrpolicyanswers.com/xstore/home.php Click on "Your Account"
__________________
Policies R Us |
|||||||
#33
|
|||||||
|
|||||||
![]() I am using x-cart 4.0.6 GOLD and when I follow the steps that laureon has given I get the following error:
ERROR: Can not initiate application! Please check configuration. Can anyone explain, or fix the script to run with my version? Thank you |
|||||||
#34
|
|||||||
|
|||||||
![]() Hello,
I believe that my walk-through may need to be adjusted to work on v4.x.x. I am currently using v4.x.x so might have a look at this myself at somepoint in the near future. Cheers, Leon
__________________
X-Cart Gold Version: 4.0.17 X-Configurator X-AOM X-FancyCategories X-RMA X-Offers |
|||||||
#35
|
|||||||
|
|||||||
![]() You anyone be interested in getting this to work? Or if it could be purchased? I need this asap. Someone on here must be able to get this to work
|
|||||||
#36
|
|||||||||
|
|||||||||
![]() Why not use customer/secure_login.php or customer/error_message.php?login_incorrect
Either that or just copy the form into a static page. vwhalla ![]() |
|||||||||
#37
|
|||||||
|
|||||||
![]() If use the customer/secure_login.php... how can I make it so that its not secure, or both?
Can you post the code that I would need to place into a page? Can I make a myaccount.php page and past the code from the login form? *note: I don't have a customer/secure_login.php page? |
|||||||
#38
|
|||||||||
|
|||||||||
![]() Here is mine from cart-lab [3.5.5]
Code:
secure_login.php in 4.0.x is in the root / |
|||||||||
#39
|
|||||||
|
|||||||
![]() My hair is starting to fall out. Maybe, I'm just being stupid, but I am running out of time here.
This is what I am trying to do. I copied the code from the home.tpl and made a myaccount.tpl: Code:
Then I made a myaccount.php file and copied some code from the home.php file Code:
I made a login_form.tpl to include the login form. I when I do this I can't get the location to display or the categories, why? Its this to intense? Can I just make a myaccount.php page, copy the code from the home.tpl and change some stuff? [/code] |
|||||||
#40
|
|||||||
|
|||||||
![]() Has someone made Leon's mod work with 4.013?
I got openning failed errors...
__________________
x-cart 4.1.8 Gold Linux |
|||||||
|
|||
X-Cart forums © 2001-2020
|