View Single Post
  #9  
Old 03-09-2004, 03:11 AM
 
idesign123 idesign123 is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 58
 

Default

Thanks so much for the code.
Unfortunately, after pasting in the code I get nothing except the following error message...

Quote:
Parse error: parse error, unexpected T_ELSE in /www/hosts/com/s/mysite/www.mysite.com/docs/templates_c/customer^main^register.tpl on line 187

I'm pretty sure I pasted it in the right place.

Here is the full register.tpl code after I paste your snippet in...

Code:
{* $Id: register.tpl,v 1.7.2.1 2003/12/16 13:14:43 mclap Exp $ *} {include file="check_email_script.tpl"} {include file="check_zipcode_js.tpl"} {if $smarty.get.mode eq "update" or $smarty.post.mode eq "update"} {assign var="last_location" value=$lng.lbl_modify_profile} {elseif $smarty.get.mode eq "delete" or $smarty.post.mode eq "delete"} {assign var="last_location" value=$lng.lbl_delete_profile} {elseif $last_location eq ""} {assign var="last_location" value=$lng.lbl_new_member} {/if} {if $usertype ne "C"} This section allows you to {if $smarty.get.mode eq "add"}create{else}modify{/if} customer's profile. Please remember that the fields marked with '<font class=Star>*</font>' are mandatory and must be filled. {/if} {if $newbie eq "Y"} {if $registered eq ""} {if $smarty.get.mode eq "update"} {$lng.txt_modify_profile_msg} {else} <font class=Text> {if $usertype eq "B"} {$lng.txt_create_profile_msg_partner} {else} {$lng.txt_create_profile_msg} {/if} </font> {/if} {/if} {/if} {capture name=dialog} {if $registered eq ""} {if $reg_error eq "F" } <font class=Star> {$lng.txt_registration_error} </font> {elseif $reg_error eq "E" } <font class=Star>{$lng.txt_email_already_exists} </font> {elseif $reg_error eq "U" } <font class=Star>{$lng.txt_user_already_exists}</font> {/if} {if $error ne ""} <font class=Star>{$error}</font> {/if} <table width=100% border=0 cellspacing=0 cellpadding=2> <form action="{ $register_script_name }?{ $smarty.server.QUERY_STRING }" method=post name=registerform> {if $config.General.use_https_login eq "Y"} <input type=hidden name="{$XCARTSESSNAME}" value="{$XCARTSESSID}"> {/if} {include file="main/register_personal_info.tpl" userinfo=$userinfo} {include file="main/register_billing_address.tpl" userinfo=$userinfo} {include file="main/register_shipping_address.tpl" userinfo=$userinfo} {include file="main/register_contact_info.tpl" userinfo=$userinfo} {if $usertype eq "C" or $smarty.get.usertype eq "C"} {if $config.General.disable_cc ne "Y"} {include file="main/register_ccinfo.tpl"} {/if} {/if} <tr valign=middle> <td height=20 colspan=3>{$lng.lbl_username_n_password}<hr size=1 noshade></td> </tr> {if $userinfo.login eq $login and $login and $userinfo.usertype ne "C"} <input type=hidden name=membership value="{$userinfo.membership}"></d> <input type=hidden name=pending_membership value="{$userinfo.pending_membership}"></d> {else} {if $config.General.membership_signup eq "Y" and ($usertype eq "C" or ($active_modules.Simple_Mode ne "" and $usertype eq "P") or $usertype eq "A")} {include file="admin/main/membership_signup.tpl"} {/if} {if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode ne "")} {include file="admin/main/membership.tpl"} {/if} {/if} {if $anonymous ne "" and $config.General.disable_anonymous_checkout ne "Y"} {* Anonymous account *} {* <tr> <td colspan=3>{$lng.txt_anonymous_account_msg}</TD> </tr> <tr valign=middle> <td align=right>{$lng.lbl_username}</td> <td></td> <td nowrap> <input type=text name=uname size=32 maxlength=32 value="{$userinfo.login}"> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_password}</td> <td></td> <td nowrap><input type=password name=passwd1 size=32 maxlength=32 value="{$userinfo.passwd1}"> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_confirm_password}</td> <td></td> <td nowrap><input type=password name=passwd2 size=32 maxlength=32 value="{$userinfo.passwd2}"> </td> </tr>*} {else} {* NOT anonymous account *} {*<tr valign=middle> <td align=right>{$lng.lbl_username}</td> <td><font class=Star>*</font></td> <td nowrap> {if $smarty.get.mode eq "update" or $smarty.post.mode eq "update"} {$userinfo.login} <input type=hidden name=uname value="{$userinfo.login}"> {else} <input type=text name=uname size=32 maxlength=32 value="{$userinfo.login}"> {if $reg_error ne "" and $userinfo.login eq ""}<font class=Star>&lt;&lt;</font>{/if} {/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_password}</td> <td><font class=Star>*</font></td> <td nowrap><input type=password 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> <tr valign=middle> <td align=right>{$lng.lbl_confirm_password}</td> <td><font class=Star>*</font></td> <td nowrap><input type=password name=passwd2 size=32 maxlength=32 value="{$userinfo.passwd2}"> {if $reg_error ne "" and $userinfo.passwd2 eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> {/if} {* <tr valign=middle> <td align=right>{$lng.lbl_password_hint}</td> <td></td> <td nowrap><input type=text name=password_hint size=32 maxlength=32 value="{$userinfo.password_hint}"></td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_password_hint_answer}</td> <td></td> <td nowrap><input type=text name=password_hint_answer size=32 maxlength=32 value="{$userinfo.password_hint_answer}"></td> </tr> *} <tr valign=middle> <td></td> <td></td> <td> {if $newbie eq "Y"} {$lng.txt_you_are_agree} <font class=Text>{$lng.lbl_terms_n_conditions}</font>. {/if} <font class=FormButton> {if $smarty.get.mode eq "update"} <input type=hidden name=mode value=update> {/if} <input type=hidden name=anonymous value={$anonymous}> {if $js_enabled} [img]../../../images/products/submit.gif[/img] {else} {include file="submit_wo_js.tpl" value=$lng.lbl_submit} {/if} </td> </tr> <input type=hidden name=usertype value="{if $smarty.get.usertype ne ""}{$smarty.get.usertype|escape:"html"}{else}{$usertype}{/if}"> </form> </table> {if $newbie eq "Y"} {$lng.txt_newbie_registration_bottom} <nobr><font class=Text>{$lng.lbl_terms_n_conditions}</font>{include file="buttons/go.tpl"}</nobr> {/if} {else} {if $smarty.post.mode eq "update" or $smarty.get.mode eq "update"} {$lng.txt_profile_modified} {elseif $smarty.get.usertype eq "B" or $usertype eq "B"} {$lng.txt_partner_created} {else} {$lng.txt_profile_created} {/if} {/if} {/capture} {if $smarty.post.mode eq "update" or $smarty.get.mode eq "update"} {include file="dialog.tpl" title=$lng.lbl_modify_profile content=$smarty.capture.dialog extra="width=100%"} {else} {include file="dialog.tpl" title=$lng.lbl_new_member content=$smarty.capture.dialog extra="width=100%"} {/if}


Any idea on what needs to be fixed?
I appreciate your help with this,

:Stacey
__________________
version 4.0.18 (+ several cool mods)
Reply With Quote