View Single Post
  #1  
Old 06-02-2003, 11:56 PM
 
StylinFX StylinFX is offline
 

Advanced Member
  
Join Date: Oct 2002
Location: US
Posts: 36
 

Default This is driving me crazy!!

I know this is probably really easy but for some reason it's not working. I've made some changes to my register.php makeing some the phone number not required. Now the trouble I'm haveing is I trying to remove the RED Astrix next to the phone box. Everytime I do this the table goes off the page the the entire form is removed.

Below is the code I've been editing if someone can get this to would please let me know thanks,

Code:
{* $Id: register.tpl,v 1.56 2003/04/21 10:28:48 svowl Exp $ *} {include file="check_email_script.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} {include file="location.tpl" last_location=$last_location} {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> <script> {literal} function check_zip_code_field(cnt, zip){ if (cnt.options[cnt.selectedIndex].value=="US") { if (zip.value.length!=5 && zip.value!="") { alert("Ensure that you have 5 digits in your postal code") zip.focus() return false } }else if (cnt.value=="CA") { if (zip.value.length!=6 && zip.value!="") { alert("Ensure that you have 6 digits in your postal code") zip.focus() return false } } return true } function check_zip_code(){ return check_zip_code_field(document.forms["registerform"].b_country, document.forms["registerform"].b_zipcode) && check_zip_code_field(document.forms["registerform"].s_country, document.forms["registerform"].s_zipcode); } {/literal} </script> <form action="{ $register_script_name }?{ $smarty.server.QUERY_STRING }" method=post name=registerform> <tr valign=middle> <td height=20 colspan=3>{$lng.lbl_personal_information}<hr size=1 noshade></td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_title}</td> <td><font class=Star>*</font></td> <td nowrap> <select name=title> {section name=title loop=$name_titles} <option {if $userinfo.title eq $name_titles[title]}selected{/if}>{$name_titles[title]}</option> {/section} </select> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_first_name}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=firstname size=32 maxlength=32 value="{$userinfo.firstname}"> {if $reg_error ne "" and $userinfo.firstname eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_last_name}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=lastname size=32 maxlength=32 value="{$userinfo.lastname}"> {if $reg_error ne "" and $userinfo.lastname eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_company}</td> <td></td> <td nowrap> <input type=text name=company size=32 maxlength=32 value="{$userinfo.company}"> </td> </tr> {* <TR valign=middle> *} {* <TD align=right>{$lng.lbl_ssn}</TD> *} {* <TD></TD> *} {* <TD nowrap> *} {* <INPUT type=text name=ssn size=32 maxlength=32 value="{$userinfo.ssn}"> *} {* </TD> *} {* </TR> *} {if $usertype eq "A" or $usertype eq "P"} <tr valign=middle> <td align=right>Refered by:</td> <td></td> <td nowrap> {$userinfo.referer} </td> </tr> {/if} <tr valign=middle> <td height=20 colspan=3>{$lng.lbl_billing_address}<hr size=1 noshade></td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_address}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=b_address size=32 maxlength=64 value="{$userinfo.b_address}"> {if $reg_error ne "" and $userinfo.b_address eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_city}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=b_city size=32 maxlength=64 value="{$userinfo.b_city}"> {if $reg_error ne "" and $userinfo.b_city eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_state}</td> <td>{if $states ne ""}<font class=Star>*</font>{/if}</td> <td nowrap> {include file="main/states.tpl" states=$states name="b_state" default=$userinfo.b_state} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_country}</td> <td><font class=Star>*</font></td> <td nowrap> <select name=b_country onChange="check_zip_code()"> {section name=country_idx loop=$countries} <option value={$countries[country_idx].country_code} {if $userinfo.b_country eq $countries[country_idx].country_code}selected{elseif $countries[country_idx].country_code $config.General.default_country and ""}selected{/if}>{$countries[country_idx].country}</option> {/section} </select> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_zip_code}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=b_zipcode size=32 maxlength=32 value="{$userinfo.b_zipcode}" onChange="check_zip_code()" > {if $reg_error ne "" and $userinfo.b_zipcode eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td height=20 colspan=3>{$lng.lbl_shipping_address_registration}<hr size=1 noshade></td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_address}</td> <td></td> <td nowrap> <input type=text name=s_address size=32 maxlength=64 value="{$userinfo.s_address}"> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_city}</td> <td></td> <td nowrap> <input type=text name=s_city size=32 maxlength=64 value="{$userinfo.s_city}"> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_state}</td> <td></td> <td nowrap> {include file="main/states.tpl" states=$states name="s_state" default=$userinfo.s_state} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_country}</td> <td></td> <td nowrap> <select name=s_country size=1 onChange="check_zip_code()"> {section name=country_idx loop=$countries} <option value={$countries[country_idx].country_code} {if $userinfo.s_country eq $countries[country_idx].country_code}selected{elseif $countries[country_idx].country_code $config.General.default_country and $userinfo.b_country ""}selected{/if}>{$countries[country_idx].country}</option> {/section} </select> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_zip_code}</td> <td></td> <td nowrap> <input type=text name=s_zipcode size=32 maxlength=32 value="{$userinfo.s_zipcode}" onChange="check_zip_code()" > </td> </tr> <tr valign=middle> <td height=20 colspan=3>{$lng.lbl_contact_information}<hr size=1 noshade></td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_phone}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=phone size=32 maxlength=32 value="{$userinfo.phone}"> {if $reg_error ne "" and $userinfo.phone eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_email}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=email size=32 maxlength=128 value="{$userinfo.email}"> {if $reg_error ne "" and $userinfo.email eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_fax}</td> <td></td> <td nowrap> <input type=text name=fax size=32 maxlength=128 value="{$userinfo.fax}"></td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_web_site}</td> <td></td> <td nowrap> <input type=text name=url size=32 maxlength=128 value="{$userinfo.url}"></td> </tr> {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}"> <input type=hidden name=pending_membership value="{$userinfo.pending_membership}"> {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 height=20 colspan=3>{$lng.lbl_newsletter}<hr size=1 noshade></td> </tr> <tr valign=middle> <td></td> <td></td> <td> <input type=checkbox name=newsletter {if $userinfo.newsletter eq "Y"}checked{/if}> {$lng.txt_newsletter_msg} </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} {include file="buttons/submit.tpl"} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_submit} {/if} </font></td> </tr> <input type=hidden name=usertype value="{if $smarty.get.usertype ne ""}{$smarty.get.usertype}{else}{$usertype}{/if}"> </form> </table> {if $newbie eq "Y"} {$lng.txt_newbie_registration_bottom} <font class=Text>{$lng.lbl_terms_n_conditions}</font>{include file="buttons/go.tpl"} {/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}
Reply With Quote