X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Broken Registration Form...help Please! (https://forum.x-cart.com/showthread.php?t=44060)

effour 12-04-2008 02:10 PM

Broken Registration Form...help Please!
 
Can anyone please help me fix my broken registration form?

http://www.stockattik.com/help.php?section=Login

Thanks!

balinor 12-04-2008 02:15 PM

Re: Broken Registration Form...help Please!
 
Please be sure to read the guidelines on posting in the bugs forum. This is not the stock registration form, so it is something you have customized. What exactly isn't working?

Moving to Template Editing.

effour 12-04-2008 02:20 PM

Re: Broken Registration Form...help Please!
 
Here is my login.tpl code.

And firebug gives this error:
strng has no properties
rubyCheckPhone(undefined)help.php (line 1798)
check_registerform_fields()help.php (line 1885)
onclick(click clientX=0, clientY=0)help.php (line 1)

[IMG]chrome://firebug/content/blank.gif[/IMG] if (isNaN(parseInt(stripped))) {

Any suggestions? Thx!



PHP Code:

{* $IdLogin.tpl,v 1.0 2004/11/14 16:03:50 mclap Exp $ *}

{if 
$login eq "" }


<
table width="100%" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
<
tbody>

<
tr>
<
td>
</
td>
</
tr>

</
tr>
</
tbody>
</
table>


<
table width="100%" border="0" cellspacing="0" cellpadding="0">
<
tr>
<
td width="40%" valign="top">



<
TABLE width="100%" cellpadding="0" cellspacing="0" border="0">
<
TR>
<
TD style="padding-top:5px;">
<
smheader>LOGIN</smheader>
{ include 
file="auth_mod.tpl" }</TD>
</
TR>
</
TABLE>
<
table width="100%" cellspacing="0" cellpadding="0">
<
tr>
<
td style="background-image: url({$ImagesDir}/underline.gif); background-position: bottom; background-repeat: repeat-x; height:5px;"></td>
</
tr>
<
tr>
<
td><br />
<
smheader>FORGET YOUR PASSWORD?</smheader></td>
</
tr>
</
table>
<
form action="help.php" method="post" name="processform">
<
table cellpadding="0" cellspacing="0" width="95%">
<
tr>
<
td colspan="2"><br>
{
$lng.txt_password_recover} <br>
<
br>
</
td>
</
tr>
<
tr>
<
td height="10" align="right" class="FormButton" valign="top" style="padding-top:3px;"></td>
<
td height="10" align="right"><strong>{$lng.lbl_email}:</strong> &nbsp;&nbsp;
<
input type="text" class="fields" name="email" size="22" value="{$smarty.get.email|escape:"html"}/>
<
br>
{if 
$smarty.get.section eq "Password_Recovery_error"} <br>
<
class="ErrorMessage">{$lng.txt_email_invalid}</p>
{/if} </
td>
</
tr>
<
tr>
<
td height="5">&nbsp;</td>
<
td height="5" align="right"><br>
<
span style="text-transform: uppercase;"> {include file="buttons/submit.tpl" style="button" href="javascript: document.processform.submit()" js_to_href="Y"} </span>&nbsp;&nbsp;&nbsp; </td>
</
tr>
</
table>
<
input type="hidden" name="action" value="recover_password" />
</
form></td>
<
td valign="top"  style="background-image: url({$ImagesDir}/custom/vert_line.gif);background-repeat: repeat-y;" width="2%">&nbsp;</td>
<
td width="55%" valign="top" style="padding-top:5px;"> {if $login eq "" } <smheader>CREATE A NEW ACCOUNT</smheader><br />
{include 
file="customer/main/register.tpl" register_script_name="register.php"}
<
div id="reg_dlg"> <a name="regdlg"></a> {******************** REGISTER FORMBEGIN ************************}
                
                
                
                {******************** 
REGISTER FORMEND ************************} </div>
{if 
$av_error ne 1 && $js_enabled && $top_message.reg_error eq ''}
<
script type="text/javascript">
                    <!--
                    
document.getElementById('reg_dlg').style.display 'none';
                    -->
                    </
script>
{/if}
              {if 
$top_message.reg_error ne '' or $av_error eq 1}
<
script type="text/javascript">
                    <!--
                    
self.location.hash 'regdlg';
                    -->
                    </
script>
{/if} 
      
      {else}
      
      
Loggedin
      
      
{/if} </td>
</
tr>
</
table>
{else}

<
table width="100%" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
<
tbody>
<
tr>
<
td valign="top">

</
td>
</
tr>
<
tr>
<
td style="background-image: url(/skin1/images/underline.gif); background-position: center bottom; background-repeat: repeat-x; height: 5px;"/>
</
tr>
</
tbody>
</
table>



<
TABLE width="100%" cellpadding="0" cellspacing="0" border="0">

<
TR>
<
TD width="35%" align="left" valign="top">{ include file="authbox_mod.tpl" }<br />
{ include 
file="menu_profile_mod.tpl" }

<
form action="{$xcart_web_dir}/include/login.php" method="post" name="loginform">
<
div style="position:relative;left:0; top:0px" align="right"> {if $usertype eq "C"}
        {include 
file="buttons/logout_menu.tpl" style="button"}
        {else}
        {include 
file="buttons/logout_menu.tpl"}
        {/if} </
div>
<
input type="hidden" name="mode" value="logout" />
<
input type="hidden" name="redirect" value="{$redirect}/>
</
form>

</
TD>
<
TD width="70%" valign="top"></TD>
</
TR>
</
TABLE>
{/if} 


balinor 12-04-2008 02:23 PM

Re: Broken Registration Form...help Please!
 
Is this something you did yourself?

effour 12-04-2008 02:24 PM

Re: Broken Registration Form...help Please!
 
Yes, it was working then somewhere along the line it broke...now i can figure it out...ack!

balinor 12-04-2008 02:26 PM

Re: Broken Registration Form...help Please!
 
Sorry, that one is a mess - could be in the PHP files or the template :(

effour 12-04-2008 02:38 PM

Re: Broken Registration Form...help Please!
 
Oh no! I'll try and wokr my way backwards to fix the problem....
What template file should I restore to get this page working?
https://www.stockattik.com/register.php

Thanks for the help!

JWait 12-09-2008 07:14 AM

Re: Broken Registration Form...help Please!
 
What were you working on when it "broke"? That is the first place to start, then work backwards from there. You can find the original templates in the skin1_original folder to compare with.

effour 12-09-2008 07:49 AM

Re: Broken Registration Form...help Please!
 
I figured it out...
I have the ruby mods fedex plugin iunstalled and it was conflicting with my registration form...i disabled the ruby mods check postal code, telephone, etc and it works again...


Quote:

Originally Posted by JWait
What were you working on when it "broke"? That is the first place to start, then work backwards from there. You can find the original templates in the skin1_original folder to compare with.



All times are GMT -8. The time now is 11:26 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.