| ||||||||||
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 |
#31
|
|||||||
|
|||||||
Thanks man !!
Aldo
__________________
www.furniturevision.com Version 3.2.2 retired Updated to 4.0.8 - retired Updated to 4.1.9 - retired Updated to 4.4 |
|||||||
#32
|
|||||||
|
|||||||
I created the
Login.tpl index.tpl auth_mod.tpl menu_profile_mod.tpl authbox_mod.tpl and inserted the code posted code by mmfowler into my skin1/help directory but when I key in the address on my site I get the following error. Error msg: Warning: Smarty error: unable to read resource: "auth_mod.tpl" in /home/rmbmco/public_html/m/xcart/Smarty-2.6.9/Smarty.class.php on line 1088 I checked to make sure that all my files were in the right folder and I just don't know what is going on. I tried to overited the auth_mod.tpl file several times and nothing. Need some help, don't know what to do? http://www.michaelmoskva.com/xcart/help.php?section=Login
__________________
x-cart 4.0.16v linux server |
|||||||
#33
|
|||||||
|
|||||||
Here is the code that I have embedded within the Listed TLP files; It might make it easier to view my problem. Thanks for the help.
Login.tpl index.tpl auth_mod.tpl menu_profile_mod.tpl authbox_mod.tpl Login.tpl {* $Id: Login.tpl,v 1.0 2004/11/14 16:03:50 mclap Exp $ *} {$lng.txt_login_header_1} {capture name=dialog} {if $login eq "" } <TABLE width="100%" cellpadding="0" cellspacing="0" border="0"> <TR><TD>{$lng.txt_login_header_2}</TD></TR> <TR> <TD>{ include file="auth_mod.tpl" }</TD> </TR> </TABLE> {else} <TABLE width="100%" cellpadding="0" cellspacing="0" border="0"> <TR> <TD width="50%">{ include file="menu_profile_mod.tpl" }</TD> <TD width="50%">{ include file="authbox_mod.tpl" }</TD> </TR></TABLE> {/if} {/capture} {include file="dialog.tpl" title=$lng.lbl_login_account content=$smarty.capture.dialog extra="width=100%"} index.tpl {* $Id: index.tpl,v 1.6 2004/03/16 10:43:08 svowl Exp $ *} {include file="page_title.tpl" title=$lng.lbl_help_zone} {if $section eq "Login"} {include file="help/Login.tpl"} {elseif $section eq "Login_message"} {include file="help/Login_message.tpl"} {elseif $section eq "Login_error"} {include file="help/Login.tpl"} {elseif $section eq "Password_Recovery"} {include file="help/Password_Recovery.tpl"} {elseif $section eq "Password_Recovery_message"} {include file="help/Password_Recovery_message.tpl"} {elseif $section eq "Password_Recovery_error"} {include file="help/Password_Recovery.tpl"} {elseif $section eq "FAQ"} {include file="help/FAQ_HTML.tpl"} {elseif $section eq "contactus"} {include file="help/contactus.tpl"} {elseif $section eq "about"} {include file="help/about.tpl"} {elseif $section eq "business"} {include file="help/business.tpl"} {elseif $section eq "conditions"} {include file="help/conditions.tpl"} {elseif $section eq "publicity"} {include file="help/publicity.tpl"} {else} {include file="help/general.tpl"} {/if} auth_mod.tpl {* $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="100%"> {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> {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> <TABLE width="100%" border="0" align="right"> <TR><TD align="right">{$lng.lbl_username}</TD><TD align="left"><INPUT type="text" name="username" size="16" value="{#default_login#}"></TD></TR> <TR><TD align="right">{$lng.lbl_password}</TD><TD align="left"><INPUT type="password" name="password" size="16" 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"></TD> <TD height="50" align="left"> {if $js_enabled} {include file="buttons/login_menu.tpl"}[img]{$ImagesDir}/resources/dot_clear.gif[/img]{else} {include file="buttons/login_menu.tpl"} {/if} {/if} {* use_secure_login_page *} {if $usertype eq "C" or ($usertype eq "B" and $config.XAffiliate.partner_register eq "Y")} {include file="buttons/create_profile_menu.tpl"} {/if} </TD> </TR> {if $login eq ""} <TR> <TD></TD> <TD height="24" nowrap align="left"> {$lng.lbl_recover_password} </TD> </TR> {/if} </TD></TR></TABLE> {if $usertype eq "P" and $active_modules.Simple_Mode eq "Y" or $usertype eq "A"} <TR> <TD colspan="2"> <DIV align="left">{$lng.lbl_insecure_login} </DIV> </TD> </TR> {/if} {if $usertype eq "C"} <TR> <TD align="right" colspan="2"> {if $js_enabled} {$lng.txt_javascript_disabled} {else} {$lng.txt_javascript_enabled} {/if} </TD> </TR> {/if} </FORM> </TABLE> {/capture} { include file="menu_mod.tpl" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu } menu_profile_mod.tpl {* $Id: menu_profile_mod.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *} {capture name=menu} <TABLE width="85%" align="center" border="0"> <TR><TD> {include file="buttons/button_vunc.tpl" button_title=$lng.lbl_modify_details href="register.php?mode=update"} {$lng.txt_menu_profile_option1} {include file="buttons/button_vunc.tpl" button_title=$lng.lbl_delete_profile href="register.php?mode=delete"} {$lng.txt_menu_profile_option2} {if ($usertype eq 'A' || ($usertype eq 'P' && $active_modules.Simple_Mode)) && $is_merchant_password eq 'Y'} {$lng.lbl_change_mpassword} {/if} {if $usertype eq "C"} {include file="buttons/button_vunc.tpl" button_title=$lng.lbl_orders_history href="orders.php"} {$lng.txt_menu_profile_option3} {if $user_subscription ne ""} {include file="modules/Subscriptions/subscriptions_menu.tpl"}</A> {/if} {/if} </TD></TR></TABLE> {/capture} { include file="menu_mod.tpl" menu_title=$lng.lbl_your_profile menu_content=$smarty.capture.menu } authbox_mod.tpl {* $Id: authbox_mod.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *} {capture name=menu} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <FORM action="{$xcart_web_dir}/include/login.php" method="post" name="loginform"> <TR> <TD></TD> <TD valign="top"> <h1>{$login}{$lng.txt_logged_in}</h1> {if $js_enabled} {include file="buttons/logout_menu.tpl"} {else} {include file="buttons/logout_menu.tpl"} {/if} </TD> </TR> {if $usertype eq "C"} <TR> <TD colspan="2" align="right"> {if $js_enabled} {$lng.txt_javascript_disabled} {else} {$lng.txt_javascript_enabled} {/if} </TD> </TR> {/if} <INPUT type="hidden" name="mode" value="logout"> <INPUT type="hidden" name="redirect" value="{$redirect}"> </FORM> </TABLE> {/capture} {include file="menu_mod.tpl" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu}
__________________
x-cart 4.0.16v linux server |
|||||||
#34
|
|||||||
|
|||||||
Make sure that file is in the correct place, and make sure it has the correct permissions.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#35
|
|||||||
|
|||||||
Thanks Ryan,
I got it.
__________________
x-cart 4.0.16v linux server |
|||||||
#36
|
|||||||
|
|||||||
Thanks for this mod!!
I am totally confused though. I did everything in the first post as well as updating it for XC 4. Now when I go to login, the URL is completely off after you sign in and it says the page does not exist. This is the page it tries to take you to after you press 'submit' : https://www.beachgirlbeauty.com/storehttp://www.beachgirlbeauty.com/store/secure_login.php ha! Where do I edit this link at? Also, the "My Account" link doesn't go to a login page when you're NOT logged in. http://www.beachgirlbeauty.com/store/help.php?section=login What could I have wrong? TIA!
__________________
X-Cart version 4.0.18 |
|||||||
#37
|
|||||||
|
|||||||
First off, you are calling:
http://www.beachgirlbeauty.com/store/help.php?section=login When you created the section for: http://www.beachgirlbeauty.com/store/help.php?section=Login (Note the capital L in Login). But, you are still getting a smarty error: Quote:
Either:
See if those are the issues. - Mike
__________________
4.1.9 |
|||||||
#38
|
|||||||
|
|||||||
Thanks so much for the reply!
Edited - I created a menu_mod.tpl and copy/pasted the code from menu.tpl to the mod file. Now it appears to be working! The only thing is - once you are logged in, it forwards you to the home page, and not the 'my account' page. How can I fix that? Thank you again for your help. I would have never known it was the menu_mod.tpl if it wasn't for you!
__________________
X-Cart version 4.0.18 |
|||||||
#39
|
|||||||
|
|||||||
Try enabling the general setting: Do not redirect customers from HTTPS to HTTP.
- Mike
__________________
4.1.9 |
|||||||
#40
|
|||||||
|
|||||||
Thank you...however, I'm not so sure that worked. Also my login page is completely screwed up and it's messing up my table code. I can't figure out how to fix it. Wahhh...
Also, please don't kill me for all the questions...but how do I make the Login.tpl have the actual login forms on it instead of them having to go through that extra step of clicking on "Secure Login" and all of that? Thank you in advance!!!!
__________________
X-Cart version 4.0.18 |
|||||||
|
|||
X-Cart forums © 2001-2020
|