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)
-   -   customize login box... please HELP!! (https://forum.x-cart.com/showthread.php?t=16943)

houkim 09-28-2005 10:14 PM

customize login box... please HELP!!
 
hi all!

i'm customizing the auth.tpl.. and the little spaces in login box on the right side is really bugging me.. so bad..

you would know what i'm talking about if you see this..
http://ekmomo.com/cart/home.php

and this is my code for auth.tpl
Code:

{* $Id: auth.tpl,v 1.39.2.1 2005/01/11 14:30:09 mclap Exp $ *}
{capture name=menu}
<TABLE border="0" cellpadding="0" cellspacing="0" width="150">
{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 width="150" border="0" cellspacing="0" cellpadding="0">
{assign var="slogin_url_add" value=""}
{if $usertype eq "C"}
{assign var="slogin_url" value=$catalogs_secure.customer}
{if $catalogs_secure.customer ne $catalogs.customer}
{assign var="slogin_url_add" value="?`$XCARTSESSNAME`=`$XCARTSESSID`"}
{/if}
{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 width="150" border="0" cellspacing="0" cellpadding="0" align="left">
<table align="left" width="150" border="0" cellspacing="0" cellpadding="0" background="{$ImagesDir}/id_back.gif">

  <tr>
    <td width="44" height="29" border="0" cellspacing="0" cellpadding="0">[img]{$ImagesDir}/id.gif[/img]</td>
    <td width="106" height="29" valign="middle" border="0" cellspacing="0" cellpadding="0">
        <INPUT type="text" name="username" size="16" value="{#default_login#}"></td>
  </tr>
  <tr>
    <td width="44" height="32" border="0" cellspacing="0" cellpadding="0">[img]{$ImagesDir}/pass.gif[/img]</td>
    <td width="106" height="32" valign="top" border="0" cellspacing="0" cellpadding="0">
        <INPUT type="password" name="password" size="16" value="{#default_password#}"></td>
  </tr>
  <tr>
  <td colspan="2" width="150" border="0" cellspacing="0" cellpadding="0" >
  <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>
</table>


</TD></TR>



<TR>
<TD width="150" border="0" cellspacing="0" cellpadding="0" height="26">

<table width="150" border="0" cellspacing="0" cellpadding="0" height="26">
  <tr>
    <td width="44" border="0" cellspacing="0" cellpadding="0" height="26">
        [img]{$ImagesDir}/login_left.gif[/img]
        </td>

       
        <td width="43" border="0" cellspacing="0" cellpadding="0" height="26">
        {if $js_enabled}
        {include file="buttons/login_menu.tpl"}
{else}
{include file="buttons/login_menu.tpl"}
        {/if}
        </td>

{/if} {* use_secure_login_page *}

    <td width="63" border="0" cellspacing="0" cellpadding="0" height="26">
{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>
  <tr>
  <td colspan="3" width="150" border="0" cellspacing="0" cellpadding="0" height="21" background="{$ImagesDir}/login_bottom.gif">
  {if $login eq ""}
  {$lng.lbl_recover_password}
  {/if}</td></tr>
</table>


</TD>
</TR>


{if $usertype eq "P" and $active_modules.Simple_Mode eq "Y" or $usertype eq "A"}

<TR>
<TD width="150" border="0" cellspacing="0" cellpadding="0" class="VertMenuItems">


<DIV align="left">{$lng.lbl_insecure_login}
</DIV>
</TD>
</TR>

{/if}
{if $usertype eq "C"}
<TR>
<TD width="150" border="0" cellspacing="0" cellpadding="0" class="VertMenuItems" align="right">


{if $js_enabled}
{$lng.txt_javascript_disabled}
{else}
{$lng.txt_javascript_enabled}
{/if}
</TD>
</TR>
{/if}
</FORM>
</TABLE>
{/capture}
{ include file="menu.tpl" dingbats="dingbats_login.gif" menu_content=$smarty.capture.menu }


Please help me to get rid of those spaces.. anyone..
thanks.!!

balinor 09-29-2005 03:49 AM

Looks to be the height of the table cells...try removing those.

houkim 09-29-2005 09:40 PM

Quote:

Originally Posted by balinor
Looks to be the height of the table cells...try removing those.


thanks for quick reply..
i removed all the height of the table cells...
but it stays same as it was...
....
there are tiny spaces between rows..
and also it seems like there are cell padding or something like that on that login box...
any idea??? i'm going crazy...
thanks.

houkim 09-30-2005 12:41 AM

i want jus like this uptight.. no spaces at all..
it supposed to just like this
http://www.k-momo.com/Untitled-1.gif


and this is what actually happened on my site.
http://ekmomo.com/cart/home.php

Please!! Anyone help me out..!!

STORed 09-30-2005 09:17 AM

This might be a wild guess but try this:

Quote:

<TD width="150" border="0" cellspacing="0" cellpadding="0" height="26"><table ...

instead of

Quote:

<TD width="150" border="0" cellspacing="0" cellpadding="0" height="26">

<table...

balinor 09-30-2005 10:36 AM

That would make absolutely no difference at all I'm afraid....you can have as many spaces in the code as you want, browsers don't read blank space :)

STORed 09-30-2005 11:04 AM

That's a statement of a true developer.

I personally think it's a minimum effort that's worth a shot

Go ahed houkim and prove me wrong.

;)

balinor 09-30-2005 12:04 PM

Ok, I'll just ignore that statement above as it makes absolutely no sense at all. Doesn't matter if I'm a developer or a used car salesman, it doesn't change the fact that html doesn't register carriage returns in the code.

In any event, the problem with your site appears to be that you have two body tags and a head tag mixed in with the body tag. Take a look at home.tpl in particular and make sure you haven't duplicated any includes anywhere. View the source of your page and you'll see what I'm talking about.

houkim 10-03-2005 10:40 PM

thank you all.. helping me out..
but, nothing would work properly...
anybody has any answer??
i think it's not about the home.tpl..
because..
when i log in as admin...
there also are spaces just like that in home.php..
any idea.. anyone???
please help~~~!!!!!

shan 10-04-2005 04:56 AM

you realy want to check the source of the code youve added.

as balinor said you have 2 sets of head tags, body tags html tags

houkim 10-04-2005 08:44 AM

i checked my home.tpl thoroughly. however, i couldn't find any mistake on that about pairing the tags..
And.. as i mentioned, just same thing happened on the admin login page. so, i think it's not the problem of 'customer/home.tpl'.
please... help me.

just in case, here is my customer/home.tpl
Code:

{* $Id: home.tpl,v 1.67.2.8 2005/06/15 06:14:26 max Exp $ *}
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{config_load file="$skin_config"}
<HTML>
<HEAD>
<TITLE>
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
</TITLE>
{ include file="meta.tpl" }
<LINK rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">
</HEAD>
<BODY leftmargin="0" topmargin="0" rightmargin="0" bottomargin="0" marginwidth="0" marginheight="0"{if $body_onload ne ''} onload="{$body_onload}"{/if}>
{ include file="rectangle_top.tpl" }
{ include file="head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}

<TABLE border="0" width="950" cellpadding="0" cellspacing="0" align="left">
<TR>

<TD width="150" valign="top" border="0" cellspacing="0" cellpadding="0">


<table width="150" valign="top" border="0" cellspacing="0" cellpadding="0">
<tr><td>{if $usertype eq "C"}
      { include file="customer/search.tpl" }
      {/if}
</td></tr>
  <tr>
    <td width="150" height="1">[img]{$ImagesDir}/spacer.gif[/img]</td>
  </tr>
  <tr>
    <td background="{$ImagesDir}/left_back.gif" width="150" height="70" border="0" cellspacing="0" cellpadding="0">
                {if $active_modules.Manufacturers ne "" and $config.Modules.manufacturers_menu eq "Y"}
      { include file="modules/Manufacturers/menu_manufacturers.tpl" }
      {/if}
</td>
  </tr>
<tr>
    <td width="150" height="1">[img]{$ImagesDir}/spacer.gif[/img]</td>
  </tr>
  <tr>
    <td background="{$ImagesDir}/left_back.gif" width="150" height="70" border="0" cellspacing="0" cellpadding="0">
                {if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{ include file="customer/categories.tpl" }
{/if}
</td>
  </tr>
<tr>
    <td width="150" height="1">[img]{$ImagesDir}/spacer.gif[/img]</td>
  </tr>
  <tr>
    <td background="{$ImagesDir}/left_back.gif" width="150" height="70" border="0" cellspacing="0" cellpadding="0">
                {include file="customer/special.tpl"}
</td>
  </tr>
<tr>
    <td width="150" height="1">[img]{$ImagesDir}/spacer.gif[/img]</td>
  </tr>
  <tr>
    <td background="{$ImagesDir}/left_back.gif" width="150" height="70" border="0" cellspacing="0" cellpadding="0">
                { include file="help.tpl" }
</td>
  </tr> 
 
 
</table>

</TD>



<TD valign="top">

{include file="customer/home_main.tpl"}


</TD>

<TD width="150" valign="top" border="0" cellspacing="0" cellpadding="0">
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/button.tpl"}


{/if}
{if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''}
{ include file="modules/Feature_Comparison/product_list.tpl" }


{/if}
{if $active_modules.Users_online ne ""}
{ include file="modules/Users_online/menu_users_online.tpl" }

{/if}

{if $login eq "" }
{ include file="auth.tpl" }

{else}
{ include file="authbox.tpl" }

{/if}
{ include file="customer/menu_cart.tpl" }
{ include file="news.tpl" }
{if $active_modules.Interneka ne ""}


{ include file="modules/Interneka/menu_interneka.tpl" }
{/if}


{ include file="poweredby.tpl" }


[img]{$ImagesDir}/spacer.gif[/img]
</TD>

</TR>
</TABLE>
{ include file="rectangle_bottom.tpl" }
</BODY>
</HTML>
{/if}


shan 10-04-2005 08:47 AM

then try rectangle_top.tpl or head.tpl


All times are GMT -8. The time now is 01:46 PM.

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