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)
-   -   Version 4.2.2 Hide Username and Password area (https://forum.x-cart.com/showthread.php?t=49881)

benhoffman 09-25-2009 06:35 AM

Version 4.2.2 Hide Username and Password area
 
1 Attachment(s)
Please see the attachment for what i want to do.

Any help would be so greatly appreciated!

Thanks!

Ben Hoffman

pauldodman 09-25-2009 06:47 AM

Re: Version 4.2.2 Hide Username and Password area
 
Suggest you fire up Webmaster mode from Admin.
Then you'll see which templates to edit - and that will help with this, and your future changes.

benhoffman 09-25-2009 07:38 AM

Re: Version 4.2.2 Hide Username and Password area
 
I know what to edit (auth.tpl) i just dont know how to kide it without getting this error:

Error: Smarty error: [in customer/auth.tpl line 32]: syntax error: mismatched tag {/if}. (Smarty_Compiler.class.php, line 2303) in /home/rlstamer/public_html/store/include/lib/smarty/Smarty.class.php on line 1092

pauldodman 09-25-2009 07:41 AM

Re: Version 4.2.2 Hide Username and Password area
 
Well what do you want there exactly?
Do you just want a blue bar?
Or do you want it do show anything when logged in?

benhoffman 09-25-2009 07:42 AM

Re: Version 4.2.2 Hide Username and Password area
 
Here is the code:
{*
$Id: auth.tpl,v 1.9 2008/12/08 08:40:12 svowl Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{if $main ne "login_incorrect" and $main ne "antibot_error" and $main ne "disabled" or $config.Security.use_secure_login_page eq "Y"}
<form action="{$auth_form_url}/include/login.php" method="post" name="authform" class="item">
<input type="hidden" name="{$XCARTSESSNAME}" value="{$XCARTSESSID}" />
{if $config.Security.use_secure_login_page eq "Y"}
<div class="login-buttons">
<label><a href="{$slogin_url}">{$lng.lbl_secure_login}</a></label>
<div class="register-button vertical-align">
{include file="customer/buttons/create_profile_menu.tpl" style="link"}
</div>
</div>
{elseif $active_modules.Image_Verification and $show_antibot.on_login eq 'Y' && $login_antibot_on}
<label><a href="error_message.php?need_login">{$lng.lbl_logi n}</a></label>
{else}
<input type="hidden" name="mode" value="login" />
<input type="hidden" name="usertype" value="{$auth_usertype}" />
<input type="hidden" name="redirect" value="{$redirect|amp}" />
<label for="auth_username">{$lng.lbl_username}</label>
<input type="text" id="auth_username" name="username" size="16" value="{#default_login#|default:$username}" class="input-text" />
<label for="auth_password">{$lng.lbl_password}</label>
<input type="password" id="auth_password" name="password" size="16" maxlength="64" value="{#default_password#}" class="input-text" />
{include file="customer/buttons/login_menu.tpl" style="image"}
<div class="register-button vertical-align">
{include file="customer/buttons/create_profile_menu.tpl" style="link"}
</div>
{/if}
</form>
{/if}

But how do i make it go away with out an error?

THanks

benhoffman 09-25-2009 07:42 AM

Re: Version 4.2.2 Hide Username and Password area
 
I just want the blue bar

Thanks

pauldodman 09-25-2009 07:44 AM

Re: Version 4.2.2 Hide Username and Password area
 
Well you will have an include statement, probably in head.tpl that calls auth.tpl
It is that that you want to remove/comment out.

However, when logged in, that will be replaced by the contents of authbox.tpl, so you need to remove/comment out all of that.

benhoffman 09-25-2009 07:57 AM

Re: Version 4.2.2 Hide Username and Password area
 
Thank You So Much!!!


All times are GMT -8. The time now is 03:40 PM.

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